@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.
Initializes a .NET project in the current workspace.
Usage:
nx generate @nx/dotnet:init [options]Options
Section titled “Options”| Option | Type | Description | Default |
|---|---|---|---|
--keepExistingVersions | boolean | Keep existing dependencies versions | false |
--skipFormat | boolean | Skip formatting files. | false |
--skipPackageJson | boolean | Do not add dependencies to package.json. | false |
--updatePackageScripts | boolean | Update package.json scripts with inferred targets | false |
Getting Help
Section titled “Getting Help”You can get help for any generator by adding the --help flag:
nx generate @nx/dotnet:<generator> --help