Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posting Guidelines

 

Avatar by Lebb

Posted

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

Posting Guidelines

 

Avatar by Lebb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...