Umo
Umo

Reputation: 342

Build without running build script

I have a build script, either the "pre-build" or "post-build" script options available on a project in visual studio starting an external program that loads the C# class library I am writing, its basically just a path and some command line arguments. Once in a while i want to test build without running the pre-build or post-build script to see if i got any errors, is there any way to toggle it off or do i have to remove it manually?

Ive tried to change the post-build settings to run only on successfull builds and removing semicolons (;) after method calls but it still runs.

I also tried looking in the options for visual studio and searched stack overflow and the web with no success, please help me!

Thanks in advance!

Upvotes: 0

Views: 181

Answers (1)

Luaan
Luaan

Reputation: 63772

You can do this with build configurations, since build events are configuration-specific.

So clone your Debug configuration, name it Debug Without Events and remove the build events in that configuration. Then, while you're working as usual, you'll just build in Debug, and when you want to check without the events, switch to Debug Without Events and rebuild.

Upvotes: 2

Related Questions