Build events - configuration disabled

  • Thread starter Thread starter rob
  • Start date Start date
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.
 
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
 
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!
 
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.
 
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
 
Back
Top