Skip to content

Build from Source

Gabe Stocco edited this page May 4, 2023 · 10 revisions

DevSkim CLI

This page describes the build process for DevSkim 0.8 or later.

Requirements

Building the CLI from source only requires an existing installation of the .NET 7.0 or later SDK.

How to Build

  1. Download or clone a local copy of the DevSkim repository

    git clone https://github.com/microsoft/DevSkim.git

  2. Navigate to your local DevSkim repository, and into the DevSkim-DotNet folder

    cd c:\path\to\repos\DevSkim\DevSkim-DotNet

  3. Build the DevSkim CLI DLL

    dotnet build Microsoft.DevSkim.CLI

  4. Run devskim dotnet Microsoft.DevSkim.CLI\bin\debug\net7.0\devskim.dll

Visual Studio Extension

WIP

Visual Studio Code Plugin

Building the VS Code Plugin requires NodeJS.

In the DevSkim-VsCode-Plugin directory run

  1. npm i to install dependencies
  2. npm run pack-ext to generate a vsix package.

Clone this wiki locally