Skip to content

Commit 27102cd

Browse files
davidwrightondougbu
authored andcommitted
Use use linux crossgen2 instead of linux-musl crossgen2 when targetting linux-musl from the build
1 parent eb2c3c9 commit 27102cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,16 @@ This package is an internal implementation of the .NET Core SDK and is not meant
110110

111111
<!-- E.g. "PkgMicrosoft_NETCore_App_Runtime_win-x64" (set in obj/Microsoft.AspNetCore.App.Runtime.csproj.nuget.g.props). -->
112112
<RuntimePackageRootVariableName>PkgMicrosoft_NETCore_App_Runtime_$(RuntimeIdentifier)</RuntimePackageRootVariableName>
113-
<Crossgen2PackageRootVariableName>PkgMicrosoft_NETCore_App_Crossgen2_$(TargetOsName)-$(BuildArchitecture)</Crossgen2PackageRootVariableName>
113+
114+
<BuildOsName>$(TargetOsName)</BuildOsName>
115+
<BuildOsName Condition="'$(TargetOsName)' == 'linux-musl'">linux</BuildOsName>
116+
<Crossgen2PackageRootVariableName>PkgMicrosoft_NETCore_App_Crossgen2_$(BuildOsName)-$(BuildArchitecture)</Crossgen2PackageRootVariableName>
114117

115118
<AssetTargetFallback>$(AssetTargetFallback);native,Version=0.0</AssetTargetFallback>
116119

117120
<NativePlatform>$(TargetArchitecture)</NativePlatform>
118121
<NativePlatform Condition=" '$(NativePlatform)' == 'x86' ">Win32</NativePlatform>
122+
119123
</PropertyGroup>
120124

121125
<ItemGroup>
@@ -129,7 +133,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
129133
PrivateAssets="All"
130134
GeneratePathProperty="true" />
131135

132-
<Reference Include="Microsoft.NETCore.App.Crossgen2.$(TargetOsName)-$(BuildArchitecture)"
136+
<Reference Include="Microsoft.NETCore.App.Crossgen2.$(BuildOsName)-$(BuildArchitecture)"
133137
ExcludeAssets="All"
134138
PrivateAssets="All"
135139
GeneratePathProperty="true" />

0 commit comments

Comments
 (0)