Mike_R Posted June 12, 2007 Posted June 12, 2007 Hi guys, I was wondering if anyone knew of a way to prevent the VS IDE from automatically saving my assemblies when I choose 'Build'? Yes, I do realize that saving the source code at the same time that the exe or dll is compiled makes sense. This ensures that they are the same version... But it can also make sense to *not* have this behavior. While VB.NET has background compilation, C# does not. So if using VB.NET, any change that causes a code break is flagged immediately. In C#, however, one is forced to manually chose 'Build' to see if there are any problems... So let's say that I do some sort of complex Regex-based find/replace operation. I'm careful, and among other things I save my work before performing the Regex find-replace. This way if the find/replace somehow goes wildly wrong and causes dozens of code breaks (or even one, really), then I can either Undo or to be really safe, close without saving the most recent (bad) change. It's just a good safety precaution. But using C#, there's a problem: there is no way to know for certain if there are any code breaks without first choosing 'Build'. But choosing 'Build' not only compiles the solution, but also saves the unsaved changes. This is not good for this scenario... Does anyone know of a way to achive a build/compile operation without saving at the same time? Thanks for any thoughts in advance... Mike Quote Posting Guidelines Avatar by Lebb
Administrators PlausiblyDamp Posted June 12, 2007 Administrators Posted June 12, 2007 Under Options -> Projects And Solutions -> Build and Run there is a setting to handle what happens before building. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Mike_R Posted June 12, 2007 Author Posted June 12, 2007 Ah, thanks so much PD, that was perfect. :) I had looked under the Project Properties > Build page, but there's not setting for this there. Thanks a ton for pointing out the correct location! Mike Quote Posting Guidelines Avatar by Lebb
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.