How to do it...

  1. Start Visual Studio and click on File | New| Project... and create a new Visual C# | Web | ASP.NET Web Application with the Web Forms template, say WebApplication:
  1. Install the Puma.Security.Rules analyzers NuGet package (at the time of writing, the latest stable version is 1.0.4). For guidance on how to search and install analyzer NuGet package to a project, refer to the recipe, Searching and installing analyzers through the NuGet package manager, in Chapter 2, Consuming Diagnostic Analyzers in .NET Projects.
  2. Select Web.config in the solution explorer and change its build action from Content to AdditionalFiles using the ...

Get Roslyn Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.