Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Visual Studio 2013 Cookbook

You're reading from   Visual Studio 2013 Cookbook Understanding the latest features of Visual Studio can speed up and streamline your projects. And there's no better learning tool than this collection of focused recipes that gives you the fast, hands-on experience you need.

Arrow left icon
Product type Paperback
Published in Mar 2014
Publisher Packt
ISBN-13 9781782171966
Length 332 pages
Edition Edition
Languages
Arrow right icon
Toc

Table of Contents (17) Chapters Close

Visual Studio 2013 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Discovering Visual Studio 2013 FREE CHAPTER 2. Getting Started with Windows Store Applications 3. Web Development – ASP.NET, HTML5, CSS, and JavaScript 4. .NET Framework 4.5.1 Development 5. Debugging Your .NET Application 6. Asynchrony in .NET 7. Unwrapping C++ Development 8. Working with Team Foundation Server 2013 9. Languages Visual Studio Medley Index

Using a custom rule set


The built-in rule sets that come with Visual Studio cover a variety of usage scenarios and provide a way to use the Code Analysis tool in your projects immediately. Of course, depending on the complexity and needs of your project, the default rules may need to be customized and combined, as this recipe will demonstrate.

Getting ready

We are going to continue with the project we created in the Analyzing your C++ code recipe. You will need Visual Studio Professional or higher in order to modify rule sets.

How to do it…

To use a custom rule set, perform the following steps:

  1. Open the project created in the previous recipe.

  2. Open the AnalyzeThis.cpp file and add the following highlighted code:

    # include "AnalyzeThis.h"
    
    int x = 0;
    
  3. Right-click on the project (not solution) in Solution Explorer and select Properties. The following screenshot will appear:

  4. In the drop-down list indicated in the preceding screenshot, you may select a different individual rule set or pick and choose...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime