Skip to content

Commit 9ff3d83

Browse files
committed
Change to Generate nuget packages for Windows Arm64 builds.
1 parent 8e95887 commit 9ff3d83

16 files changed

+59
-19
lines changed

build.cmd

-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ if %errorlevel% NEQ 0 (
465465
:SkipCoreLibBuild
466466

467467
:GenerateNuget
468-
if /i "%__BuildArch%" =="arm64" goto :SkipNuget
469468
if /i "%__SkipBuildPackages%" == 1 goto :SkipNuget
470469

471470
set "__BuildLog=%__LogsDir%\Nuget_%__BuildOS%__%__BuildArch%__%__BuildType%.log"

cmake.definitions

Whitespace-only changes.

dir.props

+9-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
<PackageThirdPartyNoticesFile>$(SourceDir).nuget/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile>
145145

146146
<!-- This should be kept in sync with package details in src/.nuget/init/project.json -->
147-
<RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.1-rc2-23712/runtime.json</RuntimeIdGraphDefinitionFile>
147+
<RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.2-beta-24224-02/runtime.json</RuntimeIdGraphDefinitionFile>
148148

149149
<!-- This link should be updated for each release milestone, currently this points to 1.1.0-beta -->
150150
<ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
@@ -162,6 +162,14 @@
162162
<!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
163163
<PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
164164
<PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
165+
<MinOSForArch>win7</MinOSForArch>
166+
<MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
167+
<MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
168+
169+
<!-- Arm64 cross target components are x64 hosted -->
170+
<HasCrossTargetComponents Condition="'$(PackagePlatform)' =='arm64'">true</HasCrossTargetComponents>
171+
<CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
172+
165173
<PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
166174
<SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
167175
</PropertyGroup>

src/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.builds

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<OSGroup>Windows_NT</OSGroup>
1616
<Platform>amd64</Platform>
1717
</Project>
18+
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.ILAsm.pkgproj">
19+
<OSGroup>Windows_NT</OSGroup>
20+
<Platform>arm64</Platform>
21+
</Project>
1822
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.ILAsm.pkgproj">
1923
<OSGroup>Windows_NT</OSGroup>
2024
<Platform>x86</Platform>

src/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.pkgproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Version>1.0.3</Version>
66
<SkipPackageFileCheck>true</SkipPackageFileCheck>
77
<SkipValidatePackage>true</SkipValidatePackage>
8-
<PackagePlatforms>x64;x86;arm</PackagePlatforms>
8+
<PackagePlatforms>x64;x86;arm64;arm</PackagePlatforms>
99
<OutputPath>$(PackagesOutputPath)</OutputPath>
1010
<IncludeRuntimeJson>true</IncludeRuntimeJson>
1111
</PropertyGroup>
@@ -14,6 +14,9 @@
1414
<ProjectReference Include="win\Microsoft.NETCore.ILAsm.pkgproj">
1515
<Platform>amd64</Platform>
1616
</ProjectReference>
17+
<ProjectReference Include="win\Microsoft.NETCore.ILAsm.pkgproj">
18+
<Platform>arm64</Platform>
19+
</ProjectReference>
1720
<ProjectReference Include="win\Microsoft.NETCore.ILAsm.pkgproj">
1821
<Platform>x86</Platform>
1922
</ProjectReference>

src/.nuget/Microsoft.NETCore.ILAsm/win/Microsoft.NETCore.ILAsm.pkgproj

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
44
<PropertyGroup>
55
<Version>1.0.3</Version>
6-
<SkipPackageFileCheck>true</SkipPackageFileCheck>
7-
<MinOSForArch>win7</MinOSForArch>
8-
<MinOSForArch Condition="$(PackagePlatform.StartsWith('arm'))">win8</MinOSForArch>
96
<PackageTargetRuntime>$(MinOSForArch)-$(PackagePlatform)</PackageTargetRuntime>
7+
<SkipPackageFileCheck>true</SkipPackageFileCheck>
108
</PropertyGroup>
119
<ItemGroup>
1210
<ArchitectureSpecificNativeFile Include="$(BinDir)ilasm.exe" />

src/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.builds

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<OSGroup>Windows_NT</OSGroup>
1616
<Platform>amd64</Platform>
1717
</Project>
18+
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.ILDAsm.pkgproj">
19+
<OSGroup>Windows_NT</OSGroup>
20+
<Platform>arm64</Platform>
21+
</Project>
1822
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.ILDAsm.pkgproj">
1923
<OSGroup>Windows_NT</OSGroup>
2024
<Platform>x86</Platform>

src/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.pkgproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Version>1.0.3</Version>
66
<SkipPackageFileCheck>true</SkipPackageFileCheck>
77
<SkipValidatePackage>true</SkipValidatePackage>
8-
<PackagePlatforms>x64;x86;arm</PackagePlatforms>
8+
<PackagePlatforms>x64;x86;arm64;arm</PackagePlatforms>
99
<OutputPath>$(PackagesOutputPath)</OutputPath>
1010
<IncludeRuntimeJson>true</IncludeRuntimeJson>
1111
</PropertyGroup>
@@ -14,6 +14,9 @@
1414
<ProjectReference Include="win\Microsoft.NETCore.ILDAsm.pkgproj">
1515
<Platform>amd64</Platform>
1616
</ProjectReference>
17+
<ProjectReference Include="win\Microsoft.NETCore.ILDAsm.pkgproj">
18+
<Platform>arm64</Platform>
19+
</ProjectReference>
1720
<ProjectReference Include="win\Microsoft.NETCore.ILDAsm.pkgproj">
1821
<Platform>x86</Platform>
1922
</ProjectReference>

src/.nuget/Microsoft.NETCore.ILDAsm/win/Microsoft.NETCore.ILDAsm.pkgproj

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
44
<PropertyGroup>
55
<Version>1.0.3</Version>
6-
<SkipPackageFileCheck>true</SkipPackageFileCheck>
7-
<MinOSForArch>win7</MinOSForArch>
8-
<MinOSForArch Condition="$(PackagePlatform.StartsWith('arm'))">win8</MinOSForArch>
96
<PackageTargetRuntime>$(MinOSForArch)-$(PackagePlatform)</PackageTargetRuntime>
7+
<SkipPackageFileCheck>true</SkipPackageFileCheck>
108
</PropertyGroup>
119
<ItemGroup>
1210
<ArchitectureSpecificNativeFile Include="$(BinDir)ildasm.exe" />

src/.nuget/Microsoft.NETCore.Jit/Microsoft.NETCore.Jit.builds

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<OSGroup>Windows_NT</OSGroup>
1616
<Platform>amd64</Platform>
1717
</Project>
18+
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.Jit.pkgproj">
19+
<OSGroup>Windows_NT</OSGroup>
20+
<Platform>arm64</Platform>
21+
</Project>
1822
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.Jit.pkgproj">
1923
<OSGroup>Windows_NT</OSGroup>
2024
<Platform>x86</Platform>

src/.nuget/Microsoft.NETCore.Jit/Microsoft.NETCore.Jit.pkgproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
<Version>1.0.4</Version>
66
<SkipPackageFileCheck>true</SkipPackageFileCheck>
77
<SkipValidatePackage>true</SkipValidatePackage>
8-
<PackagePlatforms>x64;x86;arm</PackagePlatforms>
8+
<PackagePlatforms>x64;x86;arm64;arm</PackagePlatforms>
99
<OutputPath>$(PackagesOutputPath)</OutputPath>
1010
<IncludeRuntimeJson>true</IncludeRuntimeJson>
1111
</PropertyGroup>
1212
<ItemGroup>
1313
<ProjectReference Include="win\Microsoft.NETCore.Jit.pkgproj">
1414
<Platform>amd64</Platform>
1515
</ProjectReference>
16+
<ProjectReference Include="win\Microsoft.NETCore.Jit.pkgproj">
17+
<Platform>arm64</Platform>
18+
</ProjectReference>
1619
<ProjectReference Include="win\Microsoft.NETCore.Jit.pkgproj">
1720
<Platform>x86</Platform>
1821
</ProjectReference>

src/.nuget/Microsoft.NETCore.Jit/win/Microsoft.NETCore.Jit.pkgproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
<PropertyGroup>
55
<Version>1.0.4</Version>
66
<SkipPackageFileCheck>true</SkipPackageFileCheck>
7-
<MinOSForArch>win7</MinOSForArch>
8-
<MinOSForArch Condition="$(PackagePlatform.StartsWith('arm'))">win8</MinOSForArch>
97
<PackageTargetRuntime>$(MinOSForArch)-$(PackagePlatform)</PackageTargetRuntime>
8+
<SkipPackageFileCheck>true</SkipPackageFileCheck>
109
</PropertyGroup>
1110
<ItemGroup>
1211
<ArchitectureSpecificNativeFile Include="$(BinDir)clrjit.dll" />

src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/Microsoft.NETCore.Runtime.CoreCLR.builds

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<OSGroup>Windows_NT</OSGroup>
1616
<Platform>amd64</Platform>
1717
</Project>
18+
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.Runtime.CoreCLR.pkgproj">
19+
<OSGroup>Windows_NT</OSGroup>
20+
<Platform>arm64</Platform>
21+
</Project>
1822
<Project Condition="'$(TargetsWindows)' == 'true'" Include="win/Microsoft.NETCore.Runtime.CoreCLR.pkgproj">
1923
<OSGroup>Windows_NT</OSGroup>
2024
<Platform>x86</Platform>

src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/Microsoft.NETCore.Runtime.CoreCLR.pkgproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Version>1.0.4</Version>
66
<SkipPackageFileCheck>true</SkipPackageFileCheck>
77
<SkipValidatePackage>true</SkipValidatePackage>
8-
<PackagePlatforms>x64;x86;arm</PackagePlatforms>
8+
<PackagePlatforms>x64;x86;arm64;arm</PackagePlatforms>
99
<OutputPath>$(PackagesOutputPath)</OutputPath>
1010
<IncludeRuntimeJson>true</IncludeRuntimeJson>
1111
</PropertyGroup>
@@ -24,6 +24,9 @@
2424
<ProjectReference Include="win\Microsoft.NETCore.Runtime.CoreCLR.pkgproj">
2525
<Platform>amd64</Platform>
2626
</ProjectReference>
27+
<ProjectReference Include="win\Microsoft.NETCore.Runtime.CoreCLR.pkgproj">
28+
<Platform>arm64</Platform>
29+
</ProjectReference>
2730
<ProjectReference Include="win\Microsoft.NETCore.Runtime.CoreCLR.pkgproj">
2831
<Platform>x86</Platform>
2932
</ProjectReference>

src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/win/Microsoft.NETCore.Runtime.CoreCLR.pkgproj

+14-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
44
<PropertyGroup>
55
<Version>1.0.4</Version>
6-
<SkipPackageFileCheck>true</SkipPackageFileCheck>
7-
<MinOSForArch>win7</MinOSForArch>
8-
<MinOSForArch Condition="$(PackagePlatform.StartsWith('arm'))">win8</MinOSForArch>
96
<PackageTargetRuntime>$(MinOSForArch)-$(PackagePlatform)</PackageTargetRuntime>
7+
<SkipPackageFileCheck>true</SkipPackageFileCheck>
108
</PropertyGroup>
119
<ItemGroup>
1210
<ArchitectureSpecificNativeFileAndSymbol Include="$(BinDir)clretwrc.dll" />
@@ -22,6 +20,10 @@
2220
<ArchitectureSpecificLibFile Include="$(BinDir)System.Private.CoreLib.dll" />
2321
<ArchitectureSpecificLibFile Include="$(BinDir)mscorlib.dll" />
2422
<ArchitectureSpecificToolFile Include="$(BinDir)crossgen.exe" />
23+
<CrossArchitectureSpecificToolFile Include="$(BinDir)$(CrossTargetComponentFolder)\crossgen.exe" />
24+
<CrossArchitectureSpecificToolFile Include="$(BinDir)$(CrossTargetComponentFolder)\mscordaccore.dll" />
25+
<CrossArchitectureSpecificToolFile Include="$(BinDir)$(CrossTargetComponentFolder)\mscordbi.dll" />
26+
<CrossArchitectureSpecificToolFile Include="$(BinDir)$(CrossTargetComponentFolder)\sos.dll" />
2527
<ArchitectureSpecificNativeFile Include="@(ArchitectureSpecificNativeFileAndSymbol)" />
2628
<File Include="@(ArchitectureSpecificNativeFile)">
2729
<TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
@@ -30,9 +32,12 @@
3032
<File Include="@(ArchitectureSpecificLibFile)">
3133
<TargetPath>runtimes/$(PackageTargetRuntime)/lib/netstandard1.0</TargetPath>
3234
</File>
33-
<File Include="@(ArchitectureSpecificToolFile)">
35+
<File Condition="'$(HasCrossTargetComponents)' != 'true'" Include="@(ArchitectureSpecificToolFile)">
3436
<TargetPath>tools</TargetPath>
3537
</File>
38+
<File Condition="'$(HasCrossTargetComponents)' == 'true'" Include="@(CrossArchitectureSpecificToolFile)">
39+
<TargetPath>tools/$(CrossTargetComponentFolder)_$(PackagePlatform)</TargetPath>
40+
</File>
3641
<!-- prevent accidental inclusion in AOT projects. -->
3742
<File Include="$(PlaceholderFile)">
3843
<TargetPath>runtimes/$(PackageTargetRuntime)-aot/lib/netstandard1.0</TargetPath>
@@ -48,10 +53,15 @@
4853
<ArchitectureSpecificNativeSymbol Include="@(ArchitectureSpecificNativeFileAndSymbol -> '%(RelativeDir)PDB\%(FileName).pdb')" />
4954
<ArchitectureSpecificNativeSymbol Include="@(ArchitectureSpecificLibFile -> '%(RelativeDir)PDB\%(FileName).pdb')" />
5055
<ArchitectureSpecificNativeSymbol Include="@(ArchitectureSpecificToolFile -> '%(RelativeDir)PDB\%(FileName).pdb')" />
56+
<CrossArchitectureSpecificNativeSymbol Condition="'$(HasCrossTargetComponents)' == 'true'" Include="@(CrossArchitectureSpecificToolFile -> '%(RelativeDir)PDB\%(FileName).pdb')" />
5157
<File Include="@(ArchitectureSpecificNativeSymbol)">
5258
<TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
5359
<IsSymbolFile>true</IsSymbolFile>
5460
</File>
61+
<File Condition="'$(HasCrossTargetComponents)' == 'true'" Include="@(CrossArchitectureSpecificNativeSymbol)">
62+
<TargetPath>tools/$(CrossTargetComponentFolder)_$(PackagePlatform)</TargetPath>
63+
<IsSymbolFile>true</IsSymbolFile>
64+
</File>
5565
</ItemGroup>
5666
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
5767
</Project>

src/.nuget/init/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"Microsoft.NETCore.Platforms": "1.0.1-rc2-23712",
3+
"Microsoft.NETCore.Platforms": "1.0.2-beta-24224-02",
44
},
55
"frameworks": {
66
"dnxcore50": {

0 commit comments

Comments
 (0)