Skip to main content

C# and .NET

C# and .NET projects can be easily generated in Devbox by adding the dotnet SDK to your project. You can then create new projects using dotnet new

Example Repo

Open In

Adding .NET to your project

devbox add dotnet-sdk, or add the following to your devbox.json:

  "packages": [

This will install .NET SDK 6.0

Other versions available include:

  • dotnet-sdk_7 (version 7.0)
  • dotnet-sdk_5 (version 5.0)
  • dotnet-sdk_3 (version 3.1)

Creating a new C# Project

dotnet new console -lang "C#" -o <name>