.NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET 5.0 (recommended) x64 | .NET 5.0 (recommended) x86 |
---|---|
dotnet-sdk-5.0.202-win-x64.exe | dotnet-sdk-5.0.202-win-x86.exe |
windowsdesktop-runtime-5.0.5-win-x64.exe | windowsdesktop-runtime-5.0.5-win-x86.exe |
.NET Core is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Core 3.1 (LTS) x64 | .NET Core 3.1 (LTS) x86 |
---|---|
dotnet-sdk-3.1.408-win-x64.exe | dotnet-sdk-3.1.408-win-x86.exe |
windowsdesktop-runtime-3.1.14-win-x64.exe | windowsdesktop-runtime-3.1.14-win-x86.exe |
## Init new project with auto generated hello-world demo
dotnet new console
## Add or modify *.cs files
## Run project
dotnet run
dotnet publish --output "c:/temp/myapp" --runtime win-x64 --configuration Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true
## build executable
csc -out:myProgram.exe Program.cs
Locate the path of csc.exe and add it your PATH environment variable: \
- the path for 64-bit C# compiler is C:\Windows\Microsoft.NET\Framework64\v4.0.30319 \
- 32-bit C# compiler in C:\Windows\Microsoft.NET\Framework