Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/Xunit.DependencyInjection.Template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@

Used to create a xunit test project with `Xunit.DependencyInjection`

## Install

``` bash
dotnet new install Xunit.DependencyInjection.Template
```

## Use

> Create test project within folder:
> Create a test project within a folder:

``` bash
dotnet new create xunit-di
```

> Create test project with Specific TargetFramework:
> Create a test project with Specific TargetFramework:

By default, we create test project targeted at `net8.0`, you can change the target framework via `-f <targetFrameworkName>` or `--framework <targetFrameworkName>`
By default, we create the test project targeted at `net8.0`, you can change the target framework via `-f <targetFrameworkName>` or `--framework <targetFrameworkName>`

``` bash
dotnet new create xunit-di -f net9.0
Expand Down Expand Up @@ -51,9 +57,3 @@ dotnet pack -o out
```

publish the nupkg file to nuget for release

## Install

``` bash
dotnet new install Xunit.DependencyInjection.Template
```