Table of Contents

.NET SDK

Build, test, pack, restore, format, watch, and manage tools with the installed .NET SDK.

Entry points

Tools.DotNet.Build

Compiles the workspace solution or selected projects and their dependencies.

public static DotNetBuild Build { get; }

Property Value

DotNetBuild

Tools.DotNet.Clean

Removes build outputs produced for the workspace solution or selected projects.

public static DotNetClean Clean { get; }

Property Value

DotNetClean

Tools.DotNet.Restore

Resolves project dependencies and writes restore assets for the workspace.

public static DotNetRestore Restore { get; }

Property Value

DotNetRestore

Tools.DotNet.Test

Builds and runs tests in the workspace solution or selected projects.

public static DotNetTest Test { get; }

Property Value

DotNetTest

Tools.DotNet.Pack

Builds projects and produces NuGet packages.

public static DotNetPack Pack { get; }

Property Value

DotNetPack

Tools.DotNet.Format

Applies or verifies whitespace, style, and analyzer formatting across a workspace.

public static DotNetFormat Format { get; }

Property Value

DotNetFormat

Tools.DotNet.Watch

Rebuilds or hot-reloads an application when watched source files change.

public static DotNetWatch Watch { get; }

Property Value

DotNetWatch

Tools.DotNet.DevCerts

Creates, checks, trusts, imports, exports, or removes HTTPS development certificates.

public static DotNetDevCerts DevCerts { get; }

Property Value

DotNetDevCerts

Tools.DotNet.NuGetPush

Uploads NuGet packages and optional symbol packages to a package source.

public static DotNetNuGetPush NuGetPush { get; }

Property Value

DotNetNuGetPush

Tools.DotNet.PackageSearch

Searches configured NuGet feeds and returns structured package results.

public static DotNetPackageSearch PackageSearch { get; }

Property Value

DotNetPackageSearch

Tools.DotNet.ToolRestore

Installs local tools declared by the applicable tool manifest.

public static DotNetToolRestore ToolRestore { get; }

Property Value

DotNetToolRestore

Tools.DotNet.ToolUpdate

Updates a global, local-manifest, or explicit-path .NET tool package.

public static DotNetToolUpdate ToolUpdate { get; }

Property Value

DotNetToolUpdate

Related types