Shaun Luttin, NrD

.NET Command Line Cheatsheet

This presents an opinionated cheatsheet about how to use .NET from the command line.

.NET Core

dotnet build
dotnet test
dotnet test --logger "console;verbosity=normal" --no-build
dotnet test --filter PartialTestName

.NET Framework (Legacy)

dotnet msbuild
dotnet vstest

Extras

Format new files with cshariper.

git diff develop --name-only --diff-filter=A -- *.cs `
| ForEach-Object { $files = @() } { $files += $_ } { dotnet csharpier $files }