|
46 | 46 | <SharedFrameworkName Include="Microsoft.AspNetCore.App" />
|
47 | 47 | </ItemGroup>
|
48 | 48 |
|
49 |
| - <ItemGroup> |
50 |
| - <SamplesProject Include="$(RepositoryRoot)src\**\samples\**\*.csproj;"/> |
| 49 | + <Choose> |
| 50 | + <!-- Project selection can be overridden on the command line by passing in -projects --> |
| 51 | + <When Condition="'$(Projects)' != ''"> |
| 52 | + <ItemGroup> |
| 53 | + <ProjectToBuild Include="$(Projects)" Exclude="@(ProjectToExclude)" /> |
| 54 | + </ItemGroup> |
| 55 | + </When> |
| 56 | + <Otherwise> |
| 57 | + <ItemGroup> |
| 58 | + <SamplesProject Include="$(RepositoryRoot)src\**\samples\**\*.csproj;"/> |
51 | 59 |
|
52 |
| - <ProjectToExclude Include="@(SamplesProject)" Condition="'$(BuildSamples)' == 'false' "/> |
| 60 | + <ProjectToExclude Include="@(SamplesProject)" Condition="'$(BuildSamples)' == 'false' "/> |
53 | 61 |
|
54 |
| - <!-- These projects use 'legacy' csproj, which is not supported by dotnet-msbuild. --> |
55 |
| - <ProjectToExclude Include=" |
56 |
| - $(RepositoryRoot)src\Servers\HttpSys\samples\TestClient\TestClient.csproj; |
57 |
| - $(RepositoryRoot)src\Middleware\WebSockets\samples\TestServer\TestServer.csproj; |
58 |
| - " |
59 |
| - Condition=" '$(MSBuildRuntimeType)' == 'Core' " /> |
| 62 | + <!-- These projects use 'legacy' csproj, which is not supported by dotnet-msbuild. --> |
| 63 | + <ProjectToExclude Include=" |
| 64 | + $(RepositoryRoot)src\Servers\HttpSys\samples\TestClient\TestClient.csproj; |
| 65 | + $(RepositoryRoot)src\Middleware\WebSockets\samples\TestServer\TestServer.csproj; |
| 66 | + " |
| 67 | + Condition=" '$(MSBuildRuntimeType)' == 'Core' " /> |
60 | 68 |
|
61 |
| - <!-- Exclude the websockets samples for now because they use classic .csproj, which is not yet supported in our build. --> |
62 |
| - <ProjectToExclude Include=" |
63 |
| - $(RepositoryRoot)src\Middleware\WebSockets\samples\**\*.csproj; |
64 |
| - $(RepositoryRoot)src\Middleware\NodeServices.Sockets\**\*.csproj; |
65 |
| - $(RepositoryRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj; |
66 |
| - $(RepositoryRoot)src\Razor\Razor.Design\test\testassets\**\*.*proj |
67 |
| - " /> |
| 69 | + <!-- Exclude the websockets samples for now because they use classic .csproj, which is not yet supported in our build. --> |
| 70 | + <ProjectToExclude Include=" |
| 71 | + $(RepositoryRoot)src\Middleware\WebSockets\samples\**\*.csproj; |
| 72 | + $(RepositoryRoot)src\Middleware\NodeServices.Sockets\**\*.csproj; |
| 73 | + $(RepositoryRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj; |
| 74 | + $(RepositoryRoot)src\Razor\Razor.Design\test\testassets\**\*.*proj |
| 75 | + " /> |
68 | 76 |
|
69 |
| - <ProjectToBuild Include="@(NativeProjects)" Condition="'$(OS)' == 'Windows_NT'"/> |
70 |
| - <ProjectToBuild Include=" |
71 |
| - $(RepositoryRoot)src\DefaultBuilder\**\*.*proj; |
72 |
| - $(RepositoryRoot)src\Features\JsonPatch\**\*.*proj; |
73 |
| - $(RepositoryRoot)src\DataProtection\**\*.*proj; |
74 |
| - $(RepositoryRoot)src\Antiforgery\**\*.*proj; |
75 |
| - $(RepositoryRoot)src\Hosting\**\*.*proj; |
76 |
| - $(RepositoryRoot)src\Http\**\*.*proj; |
77 |
| - $(RepositoryRoot)src\Html\**\*.*proj; |
78 |
| - $(RepositoryRoot)src\Servers\**\*.csproj; |
79 |
| - $(RepositoryRoot)src\Servers\**\*.pkgproj; |
80 |
| - $(RepositoryRoot)src\Security\**\*.*proj; |
81 |
| - $(RepositoryRoot)src\Shared\**\*.*proj; |
82 |
| - $(RepositoryRoot)src\Tools\**\*.*proj; |
83 |
| - $(RepositoryRoot)src\Middleware\**\*.*proj; |
84 |
| - $(RepositoryRoot)src\Razor\**\*.*proj; |
85 |
| - $(RepositoryRoot)src\Mvc\**\*.*proj; |
86 |
| - " |
87 |
| - Exclude=" |
88 |
| - @(ProjectToExclude); |
89 |
| - $(RepositoryRoot)**\bin\**\*; |
90 |
| - $(RepositoryRoot)**\obj\**\*;" /> |
91 |
| - </ItemGroup> |
| 77 | + <ProjectToBuild Include="@(NativeProjects)" Condition="'$(OS)' == 'Windows_NT'"/> |
| 78 | + <ProjectToBuild Include=" |
| 79 | + $(RepositoryRoot)src\DefaultBuilder\**\*.*proj; |
| 80 | + $(RepositoryRoot)src\Features\JsonPatch\**\*.*proj; |
| 81 | + $(RepositoryRoot)src\DataProtection\**\*.*proj; |
| 82 | + $(RepositoryRoot)src\Antiforgery\**\*.*proj; |
| 83 | + $(RepositoryRoot)src\Hosting\**\*.*proj; |
| 84 | + $(RepositoryRoot)src\Http\**\*.*proj; |
| 85 | + $(RepositoryRoot)src\Html\**\*.*proj; |
| 86 | + $(RepositoryRoot)src\Servers\**\*.csproj; |
| 87 | + $(RepositoryRoot)src\Servers\**\*.pkgproj; |
| 88 | + $(RepositoryRoot)src\Security\**\*.*proj; |
| 89 | + $(RepositoryRoot)src\Shared\**\*.*proj; |
| 90 | + $(RepositoryRoot)src\Tools\**\*.*proj; |
| 91 | + $(RepositoryRoot)src\Middleware\**\*.*proj; |
| 92 | + $(RepositoryRoot)src\Razor\**\*.*proj; |
| 93 | + $(RepositoryRoot)src\Mvc\**\*.*proj; |
| 94 | + $(RepositoryRoot)src\Azure\**\*.*proj; |
| 95 | + " |
| 96 | + Exclude=" |
| 97 | + @(ProjectToExclude); |
| 98 | + $(RepositoryRoot)**\bin\**\*; |
| 99 | + $(RepositoryRoot)**\obj\**\*;" /> |
| 100 | + </ItemGroup> |
| 101 | + </Otherwise> |
| 102 | + </Choose> |
92 | 103 |
|
93 | 104 | <!-- Properties for publishing -->
|
94 | 105 | <PropertyGroup>
|
|
0 commit comments