Skip to content

Visual Studio Extension

David Alcantar edited this page May 17, 2023 · 4 revisions

The DevSkim Visual Studio extension is a Language Server Protocol client that communicates with the DevSkim Language Server. The language server uses the standard C# DevSkim engine for analysis.

Running DevSkim in Visual Studio

The DevSkim Visual Studio extension can be downloaded from the Visual Studio Extension Marketplace or installed from the Visual Studio extensions manager.

Once installed, you can use the Options panel in Visual Studio to modify DevSkim settings.

Contributing: Getting Started with VS Extension Development

Setup

  1. Clone the DevSkim repository and ideally open in Visual Studio
  2. VS extension code can be found in the DevSkim-DotNet\Microsoft.DevSkim.VisualStudio folder
  3. Build Microsoft.DevSkim.VisualStudio to produce a VSIX package

Debug

  1. Build and debug Microsoft.DevSkim.VisualStudio to produce a VSIX package
  2. Debugging the project will launch the extension in a separate instance of Visual Studio

Reference