Plugins
.NET
Plugin for .NET projects
@bjb-forge/nx-dotnet-project
Installation
npx forge add @bjb-forge/nx-dotnet-projectPlugin Options
{
"plugin": "@bjb-forge/nx-dotnet-project/nx-plugin",
"options": {}
}| Option | Type | Description |
|---|---|---|
build.targetName | string | The name of the build target |
serve.targetName | string | The name of the serve target |
test.targetName | string | The name of the test target |
Inferred Targets
build
Builds the .NET project using dotnet build.
Condition: All .NET projects with a .csproj file
test
Runs unit tests using dotnet test.
Condition: Projects whose name contains .Tests or .Test
serve
Runs the .NET application with dotnet watch run.
Condition: Executable/web projects (OutputType is Exe or contains Sdk Microsoft.NET.Sdk.Web)
Generators
dotnet-project
Generate a .NET project structure.
nx g @bjb-forge/nx-dotnet-project:dotnet-project [options]| Option | Type | Required | Default | Description |
|---|---|---|---|---|
directory | string | Yes | - | A directory where the project is placed. |