Skip to content

Commit b7c6062

Browse files
authored
Update create-test-project.md
1 parent e375741 commit b7c6062

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

docs/docs/create-test-project.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,21 @@ dotnet add package bunit.web --version #{VERSION}#
7676

7777
**3. Change project type to `Microsoft.NET.Sdk.Razor`**
7878

79-
Change the first line in project type in the test project's `.csproj` file to:
79+
Changing the project type to `Microsoft.NET.Sdk.Razor` is done by changing first section of the test project's `.csproj` file to look like this:
80+
81+
```xml
82+
<Project Sdk="Microsoft.NET.Sdk.Razor">
83+
84+
<PropertyGroup>
85+
<TargetFramework>netcoreapp3.1</TargetFramework>
86+
<RazorLangVersion>3.0</RazorLangVersion>
87+
</PropertyGroup>
88+
89+
...
90+
91+
</Project>
92+
```
8093

81-
`<Project Sdk="Microsoft.NET.Sdk.Razor">`
8294

8395
**4. Add the test project to your solution**
8496

0 commit comments

Comments
 (0)