| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <Project>
- <PropertyGroup>
- <TargetRuntimeIdentifier Condition="'$(TargetRuntimeIdentifier)' == ''">$(TargetOsName)-$(TargetArchitecture)</TargetRuntimeIdentifier>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(BuildAllProjects)' == 'true' ">
- <BuildNative>true</BuildNative>
- <BuildManaged>true</BuildManaged>
- <BuildNodeJS>true</BuildNodeJS>
- <BuildJava>true</BuildJava>
- </PropertyGroup>
- <!-- These projects are always excluded, even when -projects is specified on command line. -->
- <ItemGroup>
- <!-- These projects use 'legacy' csproj, which is not supported by dotnet-msbuild. -->
- <ProjectToExclude Include="
- $(RepoRoot)src\Components\Blazor\BlazorExtension\src\Microsoft.VisualStudio.BlazorExtension.csproj;
- $(RepoRoot)src\Servers\HttpSys\samples\TestClient\TestClient.csproj;
- $(RepoRoot)src\Middleware\WebSockets\samples\TestServer\WebSockets.TestServer.csproj;
- "
- Condition=" '$(MSBuildRuntimeType)' == 'Core' " />
- <!-- Exclude the websockets samples for now because they use classic .csproj, which is not yet supported in our build. -->
- <ProjectToExclude Include="$(RepoRoot)src\Middleware\WebSockets\samples\**\*.csproj" />
- <!-- These projects are meant to be executed by tests. -->
- <ProjectToExclude Include="
- $(RepoRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj;
- $(RepoRoot)src\Razor\Razor.Design\test\testassets\**\*.*proj;
- $(RepoRoot)src\submodules\**\*.*proj;
- $(RepoRoot)src\Installers\**\*.*proj;
- $(RepoRoot)src\SignalR\clients\ts\**\node_modules\**\*.*proj;
- $(RepoRoot)src\Components\Blazor\Templates\src\content\**\*.*proj;
- $(RepoRoot)src\ProjectTemplates\Web.ProjectTemplates\content\**\*.csproj;
- $(RepoRoot)src\ProjectTemplates\Web.ProjectTemplates\content\**\*.fsproj;
- $(RepoRoot)src\ProjectTemplates\Web.Spa.ProjectTemplates\content\**\*.csproj;
- " />
- <!-- Exclude the benchmarks because they use <PackageReference>. -->
- <ProjectToExclude Include="
- $(RepoRoot)src\Mvc\benchmarkapps\**\*.csproj;
- $(RepoRoot)src\Servers\Kestrel\perf\PlatformBenchmarks\**\*.csproj;
- $(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;
- " />
- </ItemGroup>
- <Choose>
- <!-- Project selection can be overridden on the command line by passing in -projects -->
- <When Condition="'$(ProjectToBuild)' != ''">
- <ItemGroup>
- <ProjectToBuild Include="$(ProjectToBuild)" Exclude="@(ProjectToExclude);$(RepoRoot)**\bin\**\*;$(RepoRoot)**\obj\**\*">
- <RestoreInParallel Condition="'%(Extension)' == '.npmproj'">false</RestoreInParallel>
- </ProjectToBuild>
- </ItemGroup>
- </When>
- <Otherwise>
- <ItemGroup Condition=" '$(BuildInstallers)' == 'true' AND '$(TargetOsName)' == 'win' ">
- <!-- Build the ANCM custom action -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\CustomAction\aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\CustomAction\aspnetcoreCA.vcxproj" AdditionalProperties="Platform=Win32" />
- <!-- Build the ANCM msis -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\ANCMIISExpressV2\AncmIISExpressV2.wixproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\ANCMIISExpressV2\AncmIISExpressV2.wixproj" AdditionalProperties="Platform=x86" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\ANCMV2\ANCMV2.wixproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\ANCMV2\ANCMV2.wixproj" AdditionalProperties="Platform=x86" />
- <!-- Build the targeting pack installers -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\TargetingPack\TargetingPack.wixproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\TargetingPack\TargetingPack.wixproj" AdditionalProperties="Platform=x86" />
- <!-- Build the SharedFramework installers -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\SharedFrameworkBundle\SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\SharedFrameworkBundle\SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x86" />
- <!-- Build the SharedFramework wixlib -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\SharedFrameworkLib\SharedFrameworkLib.wixproj" AdditionalProperties="Platform=x64" />
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\SharedFrameworkLib\SharedFrameworkLib.wixproj" AdditionalProperties="Platform=x86" />
- <!-- Windows hosting bundled -->
- <ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\WindowsHostingBundle\WindowsHostingBundle.wixproj" AdditionalProperties="Platform=x86" />
- </ItemGroup>
- <ItemGroup Condition="'$(BuildInstallers)' == 'true' AND '$(TargetRuntimeIdentifier)' == 'linux-x64'">
- <ProjectToBuild Condition=" '$(LinuxInstallerType)' == 'deb' "
- Include="$(RepoRoot)src\Installers\Debian\**\*.*proj" />
- <ProjectToBuild Condition=" '$(LinuxInstallerType)' == 'rpm' "
- Include="$(RepoRoot)src\Installers\Rpm\**\*.*proj" />
- </ItemGroup>
- <ItemGroup>
- <NativeProjects Condition=" '$(TargetOsName)' == 'win' AND ('$(TargetArchitecture)' == 'x86' OR '$(TargetArchitecture)' == 'x64') "
- Include="$(RepoRoot)src\**\*.vcxproj" Exclude="@(ProjectToExclude)">
- <!-- Required to prevent triggering double-builds. See src\Servers\IIS\ResolveIisReferences.targets for details. -->
- <AdditionalProperties Condition="'$(TargetArchitecture)' == 'x64'">Platform=x64</AdditionalProperties>
- <AdditionalProperties Condition="'$(TargetArchitecture)' == 'x86'">Platform=Win32</AdditionalProperties>
- </NativeProjects>
- <ProjectToBuild Condition=" '$(BuildNative)' == 'true'" Include="@(NativeProjects)" Exclude="@(ProjectToExclude)" />
- <ProjectToExclude Condition=" '$(BuildNative)' != 'true'" Include="@(NativeProjects)" />
- <NodeJsProjects Include="
- $(RepoRoot)src\SignalR\**\*.npmproj;
- $(RepoRoot)src\Middleware\**\*.npmproj;
- "
- RestoreInParallel="false"
- Exclude="@(ProjectToExclude)" />
- <ProjectToBuild Condition=" '$(BuildNodeJS)' == 'true'" Include="@(NodeJsProjects)" Exclude="@(ProjectToExclude)" />
- <ProjectToExclude Condition=" '$(BuildNodeJS)' != 'true'" Include="@(NodeJsProjects)" />
- <JavaProjects Include="$(RepoRoot)src\SignalR\**\*.javaproj"
- Exclude="@(ProjectToExclude)" />
- <ProjectToBuild Condition=" '$(BuildJava)' == 'true'" Include="@(JavaProjects)" Exclude="@(ProjectToExclude)" />
- <ProjectToExclude Condition=" '$(BuildJava)' != 'true'" Include="@(JavaProjects)" />
- <!--
- Use caution to avoid deep recursion. If the globbing pattern picks up something which exceeds MAX_PATH,
- the entire pattern will silently fail to evaluate correctly.
- -->
- <DotNetProjects Include="
- $(RepoRoot)src\Framework\ref\Microsoft.AspNetCore.App.Ref.csproj;
- $(RepoRoot)src\Framework\src\Microsoft.AspNetCore.App.Runtime.csproj;
- $(RepoRoot)src\Framework\test\Microsoft.AspNetCore.App.UnitTests.csproj;
- $(RepoRoot)src\DefaultBuilder\**\*.*proj;
- $(RepoRoot)src\Features\JsonPatch\**\*.*proj;
- $(RepoRoot)src\DataProtection\**\*.*proj;
- $(RepoRoot)src\Antiforgery\**\*.*proj;
- $(RepoRoot)src\Hosting\**\*.*proj;
- $(RepoRoot)src\Http\**\*.*proj;
- $(RepoRoot)src\Html\**\*.*proj;
- $(RepoRoot)src\Identity\**\*.*proj;
- $(RepoRoot)src\Servers\**\*.csproj;
- $(RepoRoot)src\Security\**\*.*proj;
- $(RepoRoot)src\SiteExtensions\Microsoft.Web.Xdt.Extensions\**\*.csproj;
- $(RepoRoot)src\Shared\**\*.*proj;
- $(RepoRoot)src\Tools\**\*.*proj;
- $(RepoRoot)src\Middleware\**\*.csproj;
- $(RepoRoot)src\Razor\**\*.*proj;
- $(RepoRoot)src\Mvc\**\*.*proj;
- $(RepoRoot)src\Azure\**\*.*proj;
- $(RepoRoot)src\MusicStore\**\*.*proj;
- $(RepoRoot)src\SignalR\**\*.csproj;
- $(RepoRoot)src\Components\**\*.csproj;
- $(RepoRoot)src\Analyzers\**\*.csproj;
- $(RepoRoot)src\ProjectTemplates\*\*.csproj;
- $(RepoRoot)src\ProjectTemplates\testassets\*\*.csproj;
- "
- Exclude="
- @(ProjectToBuild);
- @(ProjectToExclude);
- $(RepoRoot)**\node_modules\**\*;
- $(RepoRoot)**\bin\**\*;
- $(RepoRoot)**\obj\**\*;" />
- <ProjectToBuild Condition=" '$(BuildManaged)' == 'true'" Include="@(DotNetProjects)" Exclude="@(ProjectToExclude)" />
- <ProjectToExclude Condition=" '$(BuildManaged)' != 'true'" Include="@(DotNetProjects)" />
- </ItemGroup>
- </Otherwise>
- </Choose>
- </Project>
|