Skip to content

Commit 04ca9e3

Browse files
committed
Update a doc
1 parent 675d6b3 commit 04ca9e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/AddingNewProjects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Sample PR of final result: https://github.com/dotnet/aspnetcore/pull/41945
2828
- If VS has not already modified these files, open the `.slnf` you want to add the project to. Create a solution folder for your project if doesn't exist already. Then right click solution folder -> Add -> Existing Project... -> follow the wizard.
2929
1. Run the `eng/scripts/GenerateProjectList.ps1` file to regenerate a number of `eng/*.props` files e.g. ProjectReferences.props.
3030

31-
**Note:** If you are adding a new project to the root `src` directory, you will also need to add a reference in both of the `DotNetProjects` lists of the `eng/Build.props` file. The first list (the one with condition `'$(BuildMainlyReferenceProviders)' != 'true'"`) has items in the format of:
31+
**Note:** If you are adding a new project to the root `src` directory, you will also need to add a reference in both the `ProjectsWithTestsSubsetN` and `DotNetProjects` lists of the `eng/Build.props` file. The `ProjectsWithTestsSubsetN` lists (the one with condition `'$(BuildMainlyReferenceProviders)' != 'true'"`) has items in the format of:
3232
```XML
33-
<DotNetProjects Include="
33+
<ProjectsWithTestsSubsetN Include="
3434
$(RepoRoot)src\[YOUR FOLDER]\**\*.csproj;
3535
...
3636
```
37-
while the second (the one with condition `'$(BuildMainlyReferenceProviders)' == 'true'"`) has them in the format of (note the second `src`):
37+
. You should add your project to whichever `ProjectsWithTestsSubsetN` list is shorter (`ProjectsWithTestsSubset1` or `ProjectsWithTestsSubset2`). The `DotNetProjects` list (the one with condition `'$(BuildMainlyReferenceProviders)' == 'true'"`) has them in the format of (note the second `src`):
3838
```XML
3939
<DotNetProjects Include="
4040
$(RepoRoot)src\[YOUR FOLDER]\**\src\*.csproj;

0 commit comments

Comments
 (0)