167 lines
9.9 KiB
XML
167 lines
9.9 KiB
XML
<Project>
|
|
<Import Project="..\eng\targets\RuntimeIdentifiers.props" />
|
|
<Import Project="SharedFrameworkOnly.props" />
|
|
|
|
<PropertyGroup>
|
|
<!-- This repo does not have solutions to build -->
|
|
<DisableDefaultTargets>true</DisableDefaultTargets>
|
|
<DisableDefaultItems>true</DisableDefaultItems>
|
|
<BuildSolutions>false</BuildSolutions>
|
|
<BuildSiteExtensions Condition="'$(SharedFxRid)' == 'win-x64' OR '$(SharedFxRid)' == 'win-x86'">true</BuildSiteExtensions>
|
|
|
|
<OverridePackageOutputPath>false</OverridePackageOutputPath>
|
|
|
|
<IsFinalBuild Condition="'$(IsFinalBuild)' == ''">false</IsFinalBuild>
|
|
|
|
<SubmoduleRoot>$(RepositoryRoot)src\</SubmoduleRoot>
|
|
|
|
<ArtifactsShippingPackagesDir>$(ArtifactsDir)packages\$(Configuration)\Shipping\</ArtifactsShippingPackagesDir>
|
|
<ArtifactsNonShippingPackagesDir>$(ArtifactsDir)packages\$(Configuration)\NonShipping\</ArtifactsNonShippingPackagesDir>
|
|
<InstallersOutputPath>$(ArtifactsDir)installers\$(Configuration)\</InstallersOutputPath>
|
|
|
|
<SignCheckExclusionsFile>$(RepositoryRoot)eng\signcheck.exclusions.txt</SignCheckExclusionsFile>
|
|
|
|
<!-- Disable the check which asserts that all managed .NET binaries we distribute are strong-named signed. Workaround for https://github.com/aspnet/AspNetCore-Internal/issues/1501 -->
|
|
<DisableSignCheckStrongName>true</DisableSignCheckStrongName>
|
|
|
|
<SharedSourcesFolder>$(RepositoryRoot)src\Shared\</SharedSourcesFolder>
|
|
</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>
|
|
|
|
<!--
|
|
Excluding the Blazor VSIX because MSBuild.exe currently always fails with "error NETSDK1050: The version of Microsoft.NET.Sdk used by this project is insufficient".
|
|
This VSIX is going to move into aspnet/AspNetCore-Tooling soon
|
|
-->
|
|
<ProjectToExclude Include="$(RepositoryRoot)src\Components\Blazor\BlazorExtension\src\Microsoft.VisualStudio.BlazorExtension.csproj" />
|
|
|
|
<!-- These projects use 'legacy' csproj, which is not supported by dotnet-msbuild. -->
|
|
<ProjectToExclude Include="
|
|
$(RepositoryRoot)src\Servers\HttpSys\samples\TestClient\TestClient.csproj;
|
|
$(RepositoryRoot)src\Middleware\WebSockets\samples\TestServer\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="$(RepositoryRoot)src\Middleware\WebSockets\samples\**\*.csproj" />
|
|
|
|
<!-- These projects are meant to be executed by tests. -->
|
|
<ProjectToExclude Include="
|
|
$(RepositoryRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj;
|
|
$(RepositoryRoot)src\Razor\Razor.Design\test\testassets\**\*.*proj;
|
|
$(RepositoryRoot)src\SignalR\clients\cpp\**\*.*proj;
|
|
$(RepositoryRoot)src\SignalR\clients\ts\**\node_modules\**\*.*proj;
|
|
$(RepositoryRoot)src\Components\Blazor\Templates\src\content\**\*.*proj;
|
|
" />
|
|
</ItemGroup>
|
|
|
|
<Choose>
|
|
<!-- Project selection can be overridden on the command line by passing in -projects -->
|
|
<When Condition="'$(Projects)' != ''">
|
|
<ItemGroup>
|
|
<ProjectToBuild Include="$(Projects)" Exclude="@(ProjectToExclude)">
|
|
<RestoreInParallel Condition="'%(Extension)' == '.npmproj'">false</RestoreInParallel>
|
|
</ProjectToBuild>
|
|
</ItemGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<ItemGroup Condition=" '$(BuildWindowsInstallers)' == 'true' ">
|
|
<!-- Build the ANCM custom action -->
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x86" />
|
|
|
|
<!-- Build the ANCM msis -->
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/AncmIISExpressV1.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV1/AncmIISExpressV1.wixproj" AdditionalProperties="Platform=x86" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/AncmIISExpressV2.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/AncmIISExpressV2.wixproj" AdditionalProperties="Platform=x86" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/ANCMV1.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMV1/ANCMV1.wixproj" AdditionalProperties="Platform=x86" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/ANCMV2.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/ANCMV2.wixproj" AdditionalProperties="Platform=x86" />
|
|
|
|
<!-- Build the SharedFramework installers -->
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/SharedFrameworkBundle/SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/SharedFrameworkBundle/SharedFrameworkBundle.wixproj" AdditionalProperties="Platform=x86" />
|
|
|
|
<!-- Build the SharedFramework wixlib -->
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/SharedFrameworkLib/SharedFrameworkLib.wixproj" AdditionalProperties="Platform=x64" />
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/SharedFrameworkLib/SharedFrameworkLib.wixproj" AdditionalProperties="Platform=x86" />
|
|
|
|
<!-- Windows hosting bundled -->
|
|
<ProjectToBuild Include="$(RepositoryRoot)src/Installers/Windows/WindowsHostingBundle/WindowsHostingBundle.wixproj" AdditionalProperties="Platform=x86" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectToBuild Condition=" '$(OS)' == 'Windows_NT' AND '$(BuildNative)' == 'true' " Include="$(RepositoryRoot)src\Servers\**\*.vcxproj">
|
|
<!-- Required to prevent triggering double-builds. See src\Servers\IIS\ResolveIisReferences.targets for details. -->
|
|
<AdditionalProperties Condition="'$(SharedFxRid)' == 'win-x64'">Platform=x64</AdditionalProperties>
|
|
<AdditionalProperties Condition="'$(SharedFxRid)' == 'win-x86'">Platform=x86</AdditionalProperties>
|
|
</ProjectToBuild>
|
|
|
|
<ProjectToBuild Include="$(RepositoryRoot)src\Servers\**\*.pkgproj" Condition=" '$(_RunPack)' == 'true' OR '$(BuildAllProjects)' == 'true' "/>
|
|
|
|
<ProjectToBuild Condition="'$(BuildNodeJS)' == 'true'"
|
|
Include="
|
|
$(RepositoryRoot)src\SignalR\**\*.npmproj;
|
|
$(RepositoryRoot)src\Middleware\**\*.npmproj;
|
|
"
|
|
RestoreInParallel="false"
|
|
Exclude="
|
|
@(ProjectToBuild);
|
|
@(ProjectToExclude)" />
|
|
|
|
<ProjectToBuild Condition="'$(BuildJava)' == 'true'"
|
|
Include="$(RepositoryRoot)src\SignalR\**\*.javaproj"
|
|
Exclude="
|
|
@(ProjectToBuild);
|
|
@(ProjectToExclude);" />
|
|
|
|
<ProjectToBuild Condition=" '$(BuildManaged)' == 'true' "
|
|
Include="
|
|
$(RepositoryRoot)src\DefaultBuilder\**\*.*proj;
|
|
$(RepositoryRoot)src\Features\JsonPatch\**\*.*proj;
|
|
$(RepositoryRoot)src\DataProtection\**\*.*proj;
|
|
$(RepositoryRoot)src\Antiforgery\**\*.*proj;
|
|
$(RepositoryRoot)src\Hosting\**\*.*proj;
|
|
$(RepositoryRoot)src\Http\**\*.*proj;
|
|
$(RepositoryRoot)src\Html\**\*.*proj;
|
|
$(RepositoryRoot)src\Identity\**\*.*proj;
|
|
$(RepositoryRoot)src\Servers\**\*.csproj;
|
|
$(RepositoryRoot)src\Security\**\*.*proj;
|
|
$(RepositoryRoot)src\Shared\**\*.*proj;
|
|
$(RepositoryRoot)src\Tools\**\*.*proj;
|
|
$(RepositoryRoot)src\Middleware\**\*.csproj;
|
|
$(RepositoryRoot)src\Razor\**\*.*proj;
|
|
$(RepositoryRoot)src\Mvc\**\*.*proj;
|
|
$(RepositoryRoot)src\Azure\**\*.*proj;
|
|
$(RepositoryRoot)src\MusicStore\**\*.*proj;
|
|
$(RepositoryRoot)src\SignalR\**\*.csproj;
|
|
$(RepositoryRoot)src\Components\**\*.csproj;
|
|
"
|
|
Exclude="
|
|
@(ProjectToBuild);
|
|
@(ProjectToExclude);
|
|
$(RepositoryRoot)**\node_modules\**\*;
|
|
$(RepositoryRoot)**\bin\**\*;
|
|
$(RepositoryRoot)**\obj\**\*;" />
|
|
</ItemGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
|
|
<Import Project="runtimes.props" />
|
|
<Import Project="sources.props" />
|
|
<Import Project="external-dependencies.props" />
|
|
<Import Project="artifacts.props" />
|
|
<Import Project="submodules.props" />
|
|
<Import Project="CodeSign.props" />
|
|
</Project>
|