Skip to content

@nx/dotnet - Generators

The @nx/dotnet plugin provides various generators to help you create and configure dotnet projects within your Nx workspace. Below is a complete reference for all available generators and their options.

ci-workflow

Setup a CI Workflow to run Nx in CI.

Usage:

Terminal window
nx generate @nx/dotnet:ci-workflow [options]

Arguments:

Terminal window
nx generate @nx/dotnet:ci-workflow <name> [options]

Options

OptionTypeDescriptionDefault
cistring [required]CI provider.

init

Initializes a .NET project in the current workspace.

Usage:

Terminal window
nx generate @nx/dotnet:init [options]

Options

OptionTypeDescriptionDefault
keepExistingVersionsbooleanKeep existing dependencies versionsfalse
skipFormatbooleanSkip formatting files.false
skipPackageJsonbooleanDo not add dependencies to package.json.false
updatePackageScriptsbooleanUpdate package.json scripts with inferred targetsfalse
## Getting Help
You can get help for any generator by adding the `--help` flag:
```bash
nx generate @nx/dotnet:<generator> --help
```