Skip to content

Commit

Permalink
Create arch neutral packages when building inside the VMR (#10405)
Browse files Browse the repository at this point in the history
* Create arch neutral packages when building inside the VMR

* Update packaging rules for platform neutral packages
  • Loading branch information
ViktorHofer authored Feb 4, 2025
1 parent 43f4bc5 commit 2c9670d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packaging/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
Set $(IsPackable) = true, except when
$(CreateArchNeutralPackage) == true && $(Platform) != x86
The idea here is that for arch-neutral packages, only the x86 build phase will generate the nuget package
The platform/RID specific packages will be generated in their respective $(Platform) specific build phases
The platform/RID specific packages will be generated in their respective $(Platform) specific build phases.
Platform neutral packages should always get generated when building the product (DotNetBuild=true).
-->
<IsPackable>true</IsPackable>
<IsPackable Condition="('$(Platform)'!='AnyCPU' and '$(Platform)'!='Win32' and '$(Platform)'!='x86') and '$(CreateArchNeutralPackage)'=='true'">false</IsPackable>
<IsPackable Condition="('$(Platform)'!='AnyCPU' and '$(Platform)'!='Win32' and '$(Platform)'!='x86') and '$(CreateArchNeutralPackage)'=='true' and '$(DotNetBuild)' != 'true'">false</IsPackable>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 2c9670d

Please sign in to comment.