Skip to content

Commit e57df2f

Browse files
authored
Update create-test-project.md
1 parent 78e4c82 commit e57df2f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/site/docs/getting-started/create-test-project.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ If using Visual Studio, add the test project to your solution (`.sln`), and add
102102

103103
```dotnetcli
104104
dotnet sln <NAME OF PROJECT>.sln add <NAME OF TEST PROJECT>
105-
dotnet add <NAME OF COMPONENT PROJECT>.csproj reference <NAME OF TEST PROJECT>.csproj
105+
dotnet add <NAME OF TEST PROJECT>.csproj reference <NAME OF COMPONENT PROJECT>.csproj
106106
```
107107

108108
The result should be a test project with a `.csproj` that looks like this (non bUnit packages may have different version numbers):
@@ -127,6 +127,10 @@ The result should be a test project with a `.csproj` that looks like this (non b
127127
</PackageReference>
128128
</ItemGroup>
129129

130+
<ItemGroup>
131+
<ProjectReference Include="<PATH TO COMPONENT LIB>.csproj" />
132+
</ItemGroup>
133+
130134
</Project>
131135
```
132136

@@ -218,7 +222,7 @@ If using Visual Studio, add the test project to your solution (`.sln`), and add
218222

219223
```dotnetcli
220224
dotnet sln <NAME OF PROJECT>.sln add <NAME OF TEST PROJECT>
221-
dotnet add <NAME OF COMPONENT PROJECT>.csproj reference <NAME OF TEST PROJECT>.csproj
225+
dotnet add <NAME OF TEST PROJECT>.csproj reference <NAME OF COMPONENT PROJECT>.csproj
222226
```
223227

224228
This will allow the test project to see and test the components in the component project.

0 commit comments

Comments
 (0)