56 lines
3.4 KiB
XML
56 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Platform needs to be set with TreatAsLocalProperty since it is a global property and cannot be overridden otherwise. -->
|
|
<Project TreatAsLocalProperty="Platform">
|
|
|
|
<PropertyGroup>
|
|
<BuildArchitecture Condition="'$(BuildArchitecture)' == ''">$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
|
|
<Architecture Condition="'$(Architecture)' == '' AND ('$(BuildArchitecture)' == 'arm64' OR '$(BuildArchitecture)' == 'arm')">$(BuildArchitecture)</Architecture>
|
|
<Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 's390x'">$(BuildArchitecture)</Architecture>
|
|
<Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'ppc64le'">$(BuildArchitecture)</Architecture>
|
|
<Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'loongarch64'">$(BuildArchitecture)</Architecture>
|
|
<Architecture Condition="'$(Architecture)' == ''">x64</Architecture>
|
|
|
|
<!--
|
|
The finalizer project needs to have Platform set to build for the correct architecture.
|
|
Platform needs to be set prior to calling the Arcade SDK, which sets PlatformName in RepoDefaults.props and modifies the OutputPath in ProjectLayout.props to include a PlatformName folder in the path.
|
|
Currently, build.cmd calls run-build.ps1, which always sets the Architecture.
|
|
However, if you wanted to build the finalizer project directly, the Architecture will use the logic above to be set properly, and thus maintain the correct OutputPath.
|
|
Note: The redist project does use Architecture. The Arcade SDK does not use either BuildArchitecture or Architecture.
|
|
-->
|
|
<Platform Condition="'$(SetPlatformFromArchitecture)' == 'true' And ('$(Platform)' == '' Or '$(Platform)' == 'AnyCPU')">$(Architecture)</Platform>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
|
|
|
<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
|
|
<Copyright>$(CopyrightNetFoundation)</Copyright>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(PgoInstrument)' == 'true'">
|
|
<SkipBuildingInstallers>true</SkipBuildingInstallers>
|
|
<PgoTerm>-pgo</PgoTerm>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
|
<DebugType>embedded</DebugType>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
|
|
<IsShipping>true</IsShipping>
|
|
<CoreSdkTargetFramework>net9.0</CoreSdkTargetFramework>
|
|
|
|
<!-- MSB3243 and MSB3247 fire when attempting to resolve references to the same assembly from different cultures.
|
|
This is a prevalent problem in building the precomputed assembly reference cache. Limiting the assemblies resolved
|
|
to those outside the culture folders would work, but that is a nontrivial problem. -->
|
|
<NoWarn>NU5125;NU5105;NU1701;MSB3243;MSB3247</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(DisableSourceLink)' == 'true'">
|
|
<EnableSourceLink>false</EnableSourceLink>
|
|
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
|
|
<DeterministicSourcePaths>false</DeterministicSourcePaths>
|
|
<!-- Normally set by sourcelink, and needed by the Pack targets -->
|
|
<RepositoryUrl>https://github.com/dotnet/core-sdk</RepositoryUrl>
|
|
</PropertyGroup>
|
|
</Project>
|