Build events - configuration disabled

R

rob

I'm using C#/VS2005 and I'm trying to insert a different 'Postbuild event'
depending on whether I'm building for release or debug. The problem I have is
that the configuration setting is disabled, so I can currently only insert
one set of post build events.

I've Googled for an answer but drawn a blank. I already have the
'options-Projects and solutions-show advanced build configurations' ticked,
but this still doesn't enable the configuration drop down setting.

Thanks for your help.
 
P

Peter Duniho

rob said:
I'm using C#/VS2005 and I'm trying to insert a different 'Postbuild event'
depending on whether I'm building for release or debug. The problem I have is
that the configuration setting is disabled, so I can currently only insert
one set of post build events.

I've Googled for an answer but drawn a blank. I already have the
'options-Projects and solutions-show advanced build configurations' ticked,
but this still doesn't enable the configuration drop down setting.

The only time I've ever seen that drop-down disabled is when there's
only one configuration. Silly question, but…are you sure you have more
than one?

Pete
 
R

rob

Well, that's a fair question - Always check the bleeding obvious!

When I go to the 'Build' tab I can indeed select from Active (Debug), Debug,
Release, All Configurations. I also get the correct files output to the file
system on hitting F5.

I've also made sure both the solution and project files are not read only.

It's got me foxed!

Thanks for the thought anyway Peter!
 
A

Andy O'Neill

rob said:
Well, that's a fair question - Always check the bleeding obvious!

When I go to the 'Build' tab I can indeed select from Active (Debug),
Debug,
Release, All Configurations. I also get the correct files output to the
file
system on hitting F5.

I've also made sure both the solution and project files are not read only.

It's got me foxed!
I had one build on a dev machine break in a weird way and you couldn't
create new forms.
Maybe it's the vs ide that's broke.
 
R

Rich P

I am tripping too much on this project. I just tried your technique
combined with mine:

var names =
from n in files
where n.Contains("ADT")
select Path.GetFileName(n);

int max = (from name in names
let n = Regex.Replace(name, "[^0-9]+", "")
where n != ""
select int.Parse(n)).Max();

It worked great!

Thanks again for this suggestion.


Rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top