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