The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Changing Visual Studio's default project settings

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
Changing Visual Studio's default project settings Posted: Apr 2, 2004 12:54 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: Changing Visual Studio's default project settings
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

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.


This Blog Hosted On: http://www.DotNetJunkies.com/

Read: Changing Visual Studio's default project settings

Topic: Right-click subscribe with NewsGator for Firefox Previous Topic   Next Topic Topic: Changes to C# and .NET Framework

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use