I’m obviously developing in debug mode. If I’m starting with the standard run command (F5) my project should start in debug mode but if I publish my project it should automatically switch in release mode. Is this possible somehow, maybe even with scripting?
I’m obviously developing in debug mode. If I’m starting with the standard run command
Share
You could easily write a macro in VBA that was bound to a command in VS which switched to release mode, did your full rebuild, and fired off any other publishing/packaging required. I’ve done this before.
The object model for VS automation is very feature complete.
Edit:
Debug/Release in VS are configuration properties. Here’s the MSDN page on accessing/modifying this.
Once you’ve set that, you should be able to use DTE.ExecuteCommand to start a build (or do anything else that’s available via menus, etc).