Reputation: 1168
How do I set a single C# project to always build in either Release or Debug mode regardless of the solution target mode?
Upvotes: 1
Views: 1200
Reputation: 68717
Inside the Build Options, make the settings the same for Debug and Release. Specifically in Debug uncheck "Define DEBUG constant" and check "Optimize code"
Upvotes: 0
Reputation: 60952
Right-click on the solution in the solution explorer. Select "Configuration Manager". Here, you can specify the project configurations used when the solution config is in 'Debug' or 'Release'.
Upvotes: 6