Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d72f936

Browse files
authored
Merge pull request #6000 from gkhanna79/Arm64Nuget
Generate nuget packages for Arm64 build
2 parents c292079 + 6983352 commit d72f936

16 files changed

+58
-18
lines changed

build.cmd

Lines changed: 0 additions & 1 deletion
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

Lines changed: 9 additions & 1 deletion
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 4 additions & 0 deletions
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>

0 commit comments

Comments
 (0)