|
9 | 9 | <Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'ppc64le'">$(BuildArchitecture)</Architecture>
|
10 | 10 | <Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'loongarch64'">$(BuildArchitecture)</Architecture>
|
11 | 11 | <Architecture Condition="'$(Architecture)' == ''">x64</Architecture>
|
12 |
| - |
13 |
| - <!-- |
14 |
| - The finalizer.nativeproject needs to have Platform set to build for the correct architecture, but this value being set below isn't used by the project because of the build hierarchy when using the CMake SDK. |
15 |
| - Instead, the Platform being set here is 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. |
16 |
| - Note: The redist-installer project does use Architecture. The Arcade SDK does not use either BuildArchitecture or Architecture. |
17 |
| - --> |
18 |
| - <Platform Condition="'$(SetPlatformFromArchitecture)' == 'true' And ('$(Platform)' == '' Or '$(Platform)' == 'AnyCPU')">$(Architecture)</Platform> |
19 | 12 | <Nullable>enable</Nullable>
|
20 | 13 | </PropertyGroup>
|
21 | 14 |
|
22 | 15 | <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
23 | 16 | <Import Project="$(RepositoryEngineeringDir)Analyzers.props" />
|
24 | 17 |
|
25 | 18 | <PropertyGroup>
|
26 |
| - <!-- Use current machine distro RID if set. Otherwise, fall back to RuntimeInformation.RuntimeIdentifier --> |
27 |
| - <HostRid Condition="'$(HostRid)' == '' and '$(MSBuildRuntimeType)' == 'core'">$(__DistroRid)</HostRid> |
28 |
| - <HostRid Condition="'$(HostRid)' == '' and '$(MSBuildRuntimeType)' == 'core'">$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</HostRid> |
29 |
| - <HostRid Condition="'$(HostRid)' == '' and '$(MSBuildRuntimeType)' != 'core'">win-$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)</HostRid> |
30 |
| - |
31 | 19 | <IsLinux Condition="$([MSBuild]::IsOSPlatform('LINUX'))">true</IsLinux>
|
32 | 20 | <HostOSName Condition="'$(HostOSName)' == '' AND $([MSBuild]::IsOSPlatform('WINDOWS'))">win</HostOSName>
|
33 | 21 | <HostOSName Condition="'$(HostOSName)' == '' AND $([MSBuild]::IsOSPlatform('OSX'))">osx</HostOSName>
|
34 | 22 | <HostOSName Condition="'$(HostOSName)' == '' AND $([MSBuild]::IsOSPlatform('FREEBSD'))">freebsd</HostOSName>
|
35 | 23 | <HostOSName Condition="'$(HostOSName)' == '' AND $([MSBuild]::IsOSPlatform('ILLUMOS'))">illumos</HostOSName>
|
36 | 24 | <HostOSName Condition="'$(HostOSName)' == '' AND '$(IsLinux)' == 'true'">linux</HostOSName>
|
37 | 25 |
|
38 |
| - <IsDebianBaseDistro Condition="$(HostRid.StartsWith('ubuntu')) OR $(HostRid.StartsWith('debian'))">true</IsDebianBaseDistro> |
39 |
| - <IsRPMBasedDistro Condition="$(HostRid.StartsWith('rhel'))">true</IsRPMBasedDistro> |
40 |
| - <IsRPMBasedDistro Condition="$(HostRid.StartsWith('centos'))">true</IsRPMBasedDistro> |
41 |
| - </PropertyGroup> |
42 |
| - |
43 |
| - <PropertyGroup> |
44 |
| - <ArchiveExtension>.tar.gz</ArchiveExtension> |
45 |
| - <ArchiveExtension Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">.zip</ArchiveExtension> |
46 |
| - |
47 |
| - <InstallerExtension Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">.msi</InstallerExtension> |
48 |
| - <InstallerExtension Condition="$([MSBuild]::IsOSPlatform('OSX'))">.pkg</InstallerExtension> |
49 |
| - <InstallerExtension Condition="'$(IsDebianBaseDistro)' == 'true'">.deb</InstallerExtension> |
50 |
| - <InstallerExtension Condition="'$(IsRPMBasedDistro)' == 'true'">.rpm</InstallerExtension> |
51 |
| - |
52 |
| - <BundleExtension Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">.exe</BundleExtension> |
53 |
| - <BundleExtension Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(InstallerExtension)</BundleExtension> |
54 |
| - <BundleExtension Condition="'$(IsDebianBaseDistro)' == 'true'">$(InstallerExtension)</BundleExtension> |
55 |
| - <BundleExtension Condition="'$(IsRPMBasedDistro)' == 'true'">$(InstallerExtension)</BundleExtension> |
56 |
| - |
57 |
| - <ExeExtension>.exe</ExeExtension> |
58 |
| - <ExeExtension Condition="!$([MSBuild]::IsOSPlatform('WINDOWS'))"></ExeExtension> |
| 26 | + <OSName Condition="'$(OSName)' == '' AND $(Rid) != ''">$(Rid.Substring(0, $(Rid.LastIndexOf('-'))))</OSName> |
| 27 | + <OSName Condition="'$(OSName)' == ''">$(HostOSName)</OSName> |
59 | 28 | </PropertyGroup>
|
60 | 29 |
|
61 | 30 | <PropertyGroup>
|
| 31 | + <SdkSrcRoot>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', 'src'))</SdkSrcRoot> |
| 32 | + <PackageProjectUrl>https://github.com/dotnet/sdk</PackageProjectUrl> |
62 | 33 | <PackageLicenseExpression>MIT</PackageLicenseExpression>
|
63 | 34 | <LangVersion>Latest</LangVersion>
|
64 | 35 | <TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
|
84 | 55 | <EnforceCodeStyleInBuild Condition="'$(DotNetBuildSourceOnly)' != 'true'">true</EnforceCodeStyleInBuild>
|
85 | 56 | <DisableImplicitPackageTargetFallback>true</DisableImplicitPackageTargetFallback>
|
86 | 57 |
|
87 |
| - <!-- <ArtifactsShippingSymbolsDir>$(ArtifactsDir)symbols\$(Configuration)\Shipping</ArtifactsShippingSymbolsDir> --> |
88 |
| - |
89 | 58 | <DefineConstants Condition="'$(ContinuousIntegrationBuild)' == 'true'">$(DefineConstants);CI_BUILD</DefineConstants>
|
90 | 59 | <DefineConstants Condition="'$(OfficialBuilder)' == 'Microsoft'">$(DefineConstants);MICROSOFT_ENABLE_TELEMETRY</DefineConstants>
|
91 | 60 | <DefineConstants Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(DefineConstants);DOT_NET_BUILD_FROM_SOURCE</DefineConstants>
|
92 | 61 |
|
93 | 62 | <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
94 | 63 | <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
95 |
| - |
96 |
| - <SdkLayoutOutputDirectory>$(ArtifactsBinDir)redist\$(Configuration)\layouts\dotnet-toolset-internal\</SdkLayoutOutputDirectory> |
97 | 64 | </PropertyGroup>
|
98 | 65 |
|
99 | 66 | <PropertyGroup Condition="'$(IsTestProject)' == 'true'">
|
|
0 commit comments