Build/Test Issues

1.41b: Post build step being run for vcxproj.

Started by andrewb on 6,398 views

The pre- & post- build events for my C# projects are disabled as expected. However, the post build step for a C++/CLI (vcxproj) is being run. I have confirmed that the NCrunch configuration for this project has both pre- & post- build events are set to false.
Thanks for making me aware of this. The C++/CLI build events likely use a different configuration setting and need to be disabled differently. If this is causing you problems, try adding a Condition="$(NCrunch) == ''" attribute in the property representing them in the build file. I'll see what I can do about fixing this in a future version.

Cheers,

Remco
I couldn't get the additional conditional PropertyGroup to work, though I'm not an MS Build expert (plus I'm not a fan of having build directives that don't appear in the project property sheet).

Instead I prefixed the post-build command with [size=8]if '$(NCrunch)'=='' which seemed to work OK.
This post has been deleted.

Post a reply

Log in to reply.