The Nx Plugin for .NET containing graph support for working with .NET projects in an Nx workspace.
npm install @nx/dotnet

![License]()

![Semantic Release]()



> Note: The @nx/dotnet plugin 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.
#### Step 1: Add the .NET plugin to your Nx workspace
``bash`
nx add @nx/dotnet
#### Step 2: Configure the plugin in your nx.json
`json`
{
"plugins": ["@nx/dotnet"]
}
#### Step 3: Create your .NET projects
`bashCreate a console application
dotnet new console -n MyApp
The plugin will automatically detect your .NET projects and configure appropriate Nx targets.
#### Step 4: Run Build, Test, and other commands
`bash
Build a project
nx build my-appRun tests
nx test my-app-testsBuild with Release configuration
nx build my-app --configuration ReleaseCreate a NuGet package
nx pack my-libraryPublish an application
nx publish my-app
`Getting Started
$3
Using
npx`bash
npx create-nx-workspace
`Using
npm init`bash
npm init nx-workspace
`Using
yarn create`bash
yarn create nx-workspace
`$3
Run:
`bash
npx nx@latest init
``- Nx.Dev: Documentation, Guides, Tutorials
- Intro to Nx
- Official Nx YouTube Channel
- Blog Posts About Nx