Forge
Plugins

.NET

Plugin for .NET projects

@bjb-forge/nx-dotnet-project

Installation

npx forge add @bjb-forge/nx-dotnet-project

Plugin Options

{
  "plugin": "@bjb-forge/nx-dotnet-project/nx-plugin",
  "options": {}
}
OptionTypeDescription
build.targetNamestringThe name of the build target
serve.targetNamestringThe name of the serve target
test.targetNamestringThe 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]
OptionTypeRequiredDefaultDescription
directorystringYes-A directory where the project is placed.

On this page