File tree Expand file tree Collapse file tree 9 files changed +9
-118
lines changed Expand file tree Collapse file tree 9 files changed +9
-118
lines changed Original file line number Diff line number Diff line change 4747 <LocalBuildToolsTaskFile >$(LocalBuildToolsTaskDir)local.tasks.dll</LocalBuildToolsTaskFile >
4848 </PropertyGroup >
4949
50- <PropertyGroup >
51- <HostMachineInfoProps >$(ObjDir)HostMachineInfo.props</HostMachineInfoProps >
52- </PropertyGroup >
53-
5450 <PropertyGroup >
5551 <!--
5652 This name is used to create a GIT repository URL https://github.com/dotnet/$(GitHubRepositoryName) used to find source code for debugging
7672 <RunningOnUnix Condition =" '$(OS)'!='Windows_NT'" >true</RunningOnUnix >
7773
7874 <RunningOnCore Condition =" '$(MSBuildRuntimeType)' == 'core'" >true</RunningOnCore >
75+
76+ <HostRuntimeIdentifier Condition =" '$(HostRuntimeIdentifier)' == '' and '$(RunningOnCore)' == 'true'" >$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</HostRuntimeIdentifier >
77+ <HostRuntimeIdentifier Condition =" '$(HostRuntimeIdentifier)' == '' and '$(RunningOnCore)' != 'true'" >win-$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)</HostRuntimeIdentifier >
7978 </PropertyGroup >
8079
8180 <PropertyGroup >
163162 <ExeSuffix Condition =" '$(OSGroup)'=='Windows_NT'" >.exe</ExeSuffix >
164163 </PropertyGroup >
165164
166- <Import Project =" $(HostMachineInfoProps)"
167- Condition =" Exists('$(HostMachineInfoProps)')" />
168-
169- <PropertyGroup Condition =" '$(OutputRid)' == '' and '$(HostMachineRid)' != ''" >
170- <OutputRid >$(HostMachineRid.Remove($(HostMachineRid.LastIndexOf('-'))))-$(TargetArchitecture)</OutputRid >
165+ <PropertyGroup Condition =" '$(OutputRid)' == '' and '$(HostRuntimeIdentifier)' != ''" >
166+ <OutputRid >$(HostRuntimeIdentifier.Remove($(HostRuntimeIdentifier.LastIndexOf('-'))))-$(TargetArchitecture)</OutputRid >
171167 </PropertyGroup >
172168
173169 <!-- Portable -->
Original file line number Diff line number Diff line change 66 <!-- Provide default targets which can be hooked onto or overridden as necessary -->
77 <Target Name =" Pack" />
88
9- <UsingTask TaskName =" GetTargetMachineInfo" AssemblyFile =" $(LocalBuildToolsTaskFile)" />
109 <UsingTask TaskName =" RegenerateReadmeTable" AssemblyFile =" $(LocalBuildToolsTaskFile)" />
1110
1211 <PropertyGroup >
6160 <Target Name =" GetInstallerLocations"
6261 DependsOnTargets =" GetProductVersions" />
6362
64- <Target Name =" CreateHostMachineInfoFile" >
65- <GetTargetMachineInfo >
66- <Output PropertyName =" HostMachineRid" TaskParameter =" RuntimeIdentifier" />
67- </GetTargetMachineInfo >
68-
69- <PropertyGroup >
70- <HostMachineInfoPropsContent >
71- < Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
72- < PropertyGroup>
73- < HostMachineRid> $(HostMachineRid)< /HostMachineRid>
74- < /PropertyGroup>
75- < /Project>
76- </HostMachineInfoPropsContent >
77- </PropertyGroup >
78-
79- <WriteLinesToFile File =" $(HostMachineInfoProps)"
80- Lines =" $(HostMachineInfoPropsContent)"
81- Overwrite =" True" />
82- </Target >
83-
8463 <Target Name =" GetLatestCommitHash"
8564 Condition =" '$(LatestCommit)' == ''" >
8665 <!-- Get the latest commit hash -->
Original file line number Diff line number Diff line change 7979 Properties =" RepoRoot=$(RepoRoot)"
8080 Targets ="
8181 Restore;
82- Build;
83- CreateHostMachineInfoFile" />
82+ Build" />
8483
8584 <WriteLinesToFile
8685 File =" $(RepoTasksOutputFile)"
Original file line number Diff line number Diff line change 2424 </ItemGroup >
2525
2626 <ItemGroup Condition =" '$(SignBinaries)' == 'true'" >
27- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/hostfxr.dll" />
28- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/hostpolicy.dll" />
29- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/dotnet.exe" />
30- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/ijwhost.dll" />
31- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/winrthost.dll" />
32- <ItemsToSign Include =" $(BaseOutputRootPath)corehost/**/nethost.dll" />
33-
3427 <ItemsToSign Include =" $(CrossGenRootPath)**/*.dll" />
35-
36- <ItemsToSign Include =" $(ArtifactsBinDir)Microsoft.DotNet.PlatformAbstractions/**/*.dll" />
37- <ItemsToSign Include =" $(ArtifactsBinDir)Microsoft.Extensions.DependencyModel/**/*.dll" />
38- <ItemsToSign Include =" $(ArtifactsBinDir)Microsoft.NET.HostModel/**/*.dll" />
3928 </ItemGroup >
4029
4130 <ItemGroup Condition =" '$(SignMsiFiles)' == 'true'" >
Original file line number Diff line number Diff line change 11{
22 "tools" : {
3- "dotnet" : " 3.1.101 "
3+ "dotnet" : " 5.0.100-preview.5.20228.8 "
44 },
55 "msbuild-sdks" : {
66 "Microsoft.DotNet.Arcade.Sdk" : " 5.0.0-beta.20201.2" ,
Original file line number Diff line number Diff line change 99 <TestRestoreNuGetConfigFile >$(ObjDir)TestNuGetConfig\NuGet.config</TestRestoreNuGetConfigFile >
1010 <InternalNupkgCacheDir >$(ObjDir)ExtraNupkgsForTestRestore\</InternalNupkgCacheDir >
1111 <TestArchitectures >$(TargetArchitecture)</TestArchitectures >
12- <TestInfraTargetFramework >netcoreapp3 .0</TestInfraTargetFramework >
12+ <TestInfraTargetFramework >netcoreapp5 .0</TestInfraTargetFramework >
1313 </PropertyGroup >
1414
1515</Project >
Original file line number Diff line number Diff line change 5757 </Target >
5858
5959 <Target Name =" DetermineTestOutputDirectory" >
60- <GetTargetMachineInfo >
61- <Output TaskParameter =" RuntimeIdentifier" PropertyName =" _HostRid" />
62- </GetTargetMachineInfo >
63-
6460 <PropertyGroup >
65- <TestTargetRid Condition =" '$(TestTargetRid)' == ''" >$(_HostRid )</TestTargetRid >
61+ <TestTargetRid Condition =" '$(TestTargetRid)' == ''" >$(HostRuntimeIdentifier )</TestTargetRid >
6662 <TestsOutputName Condition =" '$(TestsOutputName)' == ''" >$(MSBuildProjectName)</TestsOutputName >
6763
6864 <TestsOutputRootDir Condition =" '$(TestsOutputRootDir)' == ''" >$(ArtifactsDir)tests/$(ConfigurationGroup)/</TestsOutputRootDir >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1717 <ItemGroup >
1818 <PackageReference Include =" NuGet.ProjectModel" Version =" $(NugetProjectModelVersion)" />
1919 <PackageReference Include =" Microsoft.Extensions.DependencyModel" Version =" 2.1.0" />
20- <PackageReference Include =" Microsoft.DotNet.PlatformAbstractions" Version =" 2.1.0" />
2120 </ItemGroup >
2221
2322 <ItemGroup Condition =" '$(TargetFramework)' != 'net46'" >
You can’t perform that action at this time.
0 commit comments