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 47
47
<LocalBuildToolsTaskFile >$(LocalBuildToolsTaskDir)local.tasks.dll</LocalBuildToolsTaskFile >
48
48
</PropertyGroup >
49
49
50
- <PropertyGroup >
51
- <HostMachineInfoProps >$(ObjDir)HostMachineInfo.props</HostMachineInfoProps >
52
- </PropertyGroup >
53
-
54
50
<PropertyGroup >
55
51
<!--
56
52
This name is used to create a GIT repository URL https://github.com/dotnet/$(GitHubRepositoryName) used to find source code for debugging
76
72
<RunningOnUnix Condition =" '$(OS)'!='Windows_NT'" >true</RunningOnUnix >
77
73
78
74
<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 >
79
78
</PropertyGroup >
80
79
81
80
<PropertyGroup >
163
162
<ExeSuffix Condition =" '$(OSGroup)'=='Windows_NT'" >.exe</ExeSuffix >
164
163
</PropertyGroup >
165
164
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 >
171
167
</PropertyGroup >
172
168
173
169
<!-- Portable -->
Original file line number Diff line number Diff line change 6
6
<!-- Provide default targets which can be hooked onto or overridden as necessary -->
7
7
<Target Name =" Pack" />
8
8
9
- <UsingTask TaskName =" GetTargetMachineInfo" AssemblyFile =" $(LocalBuildToolsTaskFile)" />
10
9
<UsingTask TaskName =" RegenerateReadmeTable" AssemblyFile =" $(LocalBuildToolsTaskFile)" />
11
10
12
11
<PropertyGroup >
60
59
<Target Name =" GetInstallerLocations"
61
60
DependsOnTargets =" GetProductVersions" />
62
61
63
- <Target Name =" CreateHostMachineInfoFile" >
64
- <GetTargetMachineInfo >
65
- <Output PropertyName =" HostMachineRid" TaskParameter =" RuntimeIdentifier" />
66
- </GetTargetMachineInfo >
67
-
68
- <PropertyGroup >
69
- <HostMachineInfoPropsContent >
70
- < Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
71
- < PropertyGroup>
72
- < HostMachineRid> $(HostMachineRid)< /HostMachineRid>
73
- < /PropertyGroup>
74
- < /Project>
75
- </HostMachineInfoPropsContent >
76
- </PropertyGroup >
77
-
78
- <WriteLinesToFile File =" $(HostMachineInfoProps)"
79
- Lines =" $(HostMachineInfoPropsContent)"
80
- Overwrite =" True" />
81
- </Target >
82
-
83
62
<Target Name =" GetLatestCommitHash"
84
63
Condition =" '$(LatestCommit)' == ''" >
85
64
<!-- Get the latest commit hash -->
Original file line number Diff line number Diff line change 79
79
Properties =" RepoRoot=$(RepoRoot)"
80
80
Targets ="
81
81
Restore;
82
- Build;
83
- CreateHostMachineInfoFile" />
82
+ Build" />
84
83
85
84
<WriteLinesToFile
86
85
File =" $(RepoTasksOutputFile)"
Original file line number Diff line number Diff line change 24
24
</ItemGroup >
25
25
26
26
<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
-
34
27
<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" />
39
28
</ItemGroup >
40
29
41
30
<ItemGroup Condition =" '$(SignMsiFiles)' == 'true'" >
Original file line number Diff line number Diff line change 1
1
{
2
2
"tools" : {
3
- "dotnet" : " 3.1.101 "
3
+ "dotnet" : " 5.0.100-preview.5.20228.8 "
4
4
},
5
5
"msbuild-sdks" : {
6
6
"Microsoft.DotNet.Arcade.Sdk" : " 5.0.0-beta.20201.2" ,
Original file line number Diff line number Diff line change 9
9
<TestRestoreNuGetConfigFile >$(ObjDir)TestNuGetConfig\NuGet.config</TestRestoreNuGetConfigFile >
10
10
<InternalNupkgCacheDir >$(ObjDir)ExtraNupkgsForTestRestore\</InternalNupkgCacheDir >
11
11
<TestArchitectures >$(TargetArchitecture)</TestArchitectures >
12
- <TestInfraTargetFramework >netcoreapp3 .0</TestInfraTargetFramework >
12
+ <TestInfraTargetFramework >netcoreapp5 .0</TestInfraTargetFramework >
13
13
</PropertyGroup >
14
14
15
15
</Project >
Original file line number Diff line number Diff line change 57
57
</Target >
58
58
59
59
<Target Name =" DetermineTestOutputDirectory" >
60
- <GetTargetMachineInfo >
61
- <Output TaskParameter =" RuntimeIdentifier" PropertyName =" _HostRid" />
62
- </GetTargetMachineInfo >
63
-
64
60
<PropertyGroup >
65
- <TestTargetRid Condition =" '$(TestTargetRid)' == ''" >$(_HostRid )</TestTargetRid >
61
+ <TestTargetRid Condition =" '$(TestTargetRid)' == ''" >$(HostRuntimeIdentifier )</TestTargetRid >
66
62
<TestsOutputName Condition =" '$(TestsOutputName)' == ''" >$(MSBuildProjectName)</TestsOutputName >
67
63
68
64
<TestsOutputRootDir Condition =" '$(TestsOutputRootDir)' == ''" >$(ArtifactsDir)tests/$(ConfigurationGroup)/</TestsOutputRootDir >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
<ItemGroup >
18
18
<PackageReference Include =" NuGet.ProjectModel" Version =" $(NugetProjectModelVersion)" />
19
19
<PackageReference Include =" Microsoft.Extensions.DependencyModel" Version =" 2.1.0" />
20
- <PackageReference Include =" Microsoft.DotNet.PlatformAbstractions" Version =" 2.1.0" />
21
20
</ItemGroup >
22
21
23
22
<ItemGroup Condition =" '$(TargetFramework)' != 'net46'" >
You can’t perform that action at this time.
0 commit comments