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
devbox add dotnet-sdk_10, or add the following to your devbox.json:
"packages": [
"dotnet-sdk_10@latest"
],This will install the latest .NET 10 SDK. You can find other installable versions of the dotnet SDK by running devbox search dotnet-sdk.
If you need a specific version of the .NET SDK, you can search on Nixhub
dotnet new console -lang "C#" -o <name>