Skip to content

cs compiler

Zeioth edited this page Aug 6, 2023 · 19 revisions

C# can be compiled in two different ways.

The normal way

If your project doesn't have a .csproj file, use the options Build & run, Build, or Run, and C# will be compiled using the command csc (c sharp compiler).

The .NET way

If your project has a .csproj file, use the options Build & run dotfile or Build dotfile, and C# will be compiled using the command dotnet (which also uses csc underhood, actually).

When running Build & run dotfile or Build dotfile, dotnet automatically nugget packages for you. So you don't need to do anything.