Skip to content

Commit 67424e7

Browse files
authored
Don't use baseline assembly versions for RID-agnostic packages (#17970)
1 parent ee57a0c commit 67424e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Directory.Build.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project>
22

33
<PropertyGroup>
4-
<!-- When OnlyPackPlatformSpecificPackages is set, only produce packages for projects which set RuntimeIdentifier. -->
5-
<IsPackable Condition=" '$(OnlyPackPlatformSpecificPackages)' == 'true' AND '$(IsPackable)' != 'false' AND '$(RuntimeIdentifier)' == '' ">false</IsPackable>
64

75
<!--
86
By default, assemblies which are only in the Microsoft.AspNetCore.App shared framework are not available as NuGet packages.
@@ -67,6 +65,12 @@
6765
<IsPackable Condition=" '$(IsPackageInThisPatch)' != 'true' ">false</IsPackable>
6866
</PropertyGroup>
6967

68+
<PropertyGroup>
69+
<!-- When OnlyPackPlatformSpecificPackages is set, only produce packages for projects which set RuntimeIdentifier. -->
70+
<!-- Keep this below where we set "IsPackageInThisPatch" -->
71+
<IsPackable Condition=" '$(OnlyPackPlatformSpecificPackages)' == 'true' AND '$(RuntimeIdentifier)' == '' ">false</IsPackable>
72+
</PropertyGroup>
73+
7074
<PropertyGroup>
7175
<PackageVersionForPackageVersionInfo>$(PackageVersion)</PackageVersionForPackageVersionInfo>
7276
</PropertyGroup>

0 commit comments

Comments
 (0)