Darrell Norton's Blog [MVP]

Sponsors

The Lounge

Wicked Cool Jobs

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Changing Visual Studio's default project settings

After Jeff Key’s spelunking in the C# wizards, I decided I wanted to change some of the default project settings.  It is actually very easy to do.  The following example shows how you can change the default setting for “Treat Warnings as Errors” from false to true for all new C# library projects.

  1. Navigate to C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\VC#Wizards
  2. Right-click on DefaultDll.csproj and open with notepad.
  3. In the config section (debug or release, or both), add TreatWarningsAsErrors = "true".

Now all your new C# Class Library projects will automatically treat warnings as errors.  Repeat on the other csproj types (or vbproj if you are a VB programmer) to change the default setting for projects of that type too.  There are tons of other settings you can tweak, and this does not prevent anyone from changing it back to false.  But if you are going to use this setting more often than not, it’s quicker.


Posted Fri, Apr 2 2004 11:00 AM by Darrell Norton

[Advertisement]

Comments

Brendan Tompkins wrote re: Changing Visual Studio's default project settings
on Fri, Apr 2 2004 6:12 AM
Nice.
Darrell wrote re: Changing Visual Studio's default project settings
on Fri, Apr 2 2004 6:51 AM
Thanks Brendan, but it's only 99% done. :)
Devlicio.us