packages/dotnet/readme-template.md
{{links}}
<hr>Note: The
@nx/dotnetplugin is currently experimental. Features and APIs may change.
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
The goal of @nx/dotnet is to make it easy and straightforward to build .NET applications in an Nx workspace. It provides intelligent project graph analysis, automatic dependency detection, and smart target configuration using MSBuild.
nx add @nx/dotnet
nx.json{
"plugins": ["@nx/dotnet"]
}
# Create a console application
dotnet new console -n MyApp
# Create a class library
dotnet new classlib -n MyLibrary
# Create a test project
dotnet new xunit -n MyApp.Tests
The plugin will automatically detect your .NET projects and configure appropriate Nx targets.
# Build a project
nx build my-app
# Run tests
nx test my-app-tests
# Build with Release configuration
nx build my-app --configuration Release
# Create a NuGet package
nx pack my-library
# Publish an application
nx publish my-app
{{content}}