Skip to content

Commit 7c52b29

Browse files
authored
Merge pull request #3102 from dsplaisted/dont-pack-base-frameworkreference
Don't include base FrameworkReferences when creating NuGet packages
2 parents 04c2edf + f3bdd17 commit 7c52b29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.DefaultItems.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Copyright (c) .NET Foundation. All rights reserved.
4646
Publish="true" />
4747
</ItemGroup>
4848
<ItemGroup Condition=" '$(DisableImplicitFrameworkReferences)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETStandard' And '$(_TargetFrameworkVersionWithoutV)' >= '2.1'">
49-
<FrameworkReference Include="NETStandard.Library" IsImplicitlyDefined="true" />
49+
<FrameworkReference Include="NETStandard.Library" IsImplicitlyDefined="true" Pack="false"/>
5050
</ItemGroup>
5151

5252
<ItemGroup Condition=" '$(DisableImplicitFrameworkReferences)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
@@ -65,6 +65,7 @@ Copyright (c) .NET Foundation. All rights reserved.
6565
Publish="true" />
6666

6767
<FrameworkReference Include="Microsoft.NETCore.App" IsImplicitlyDefined="true"
68+
Pack="false"
6869
Condition="('$(_TargetFrameworkVersionWithoutV)' != '') And ('$(_TargetFrameworkVersionWithoutV)' >= '3.0')"/>
6970

7071
</ItemGroup>

0 commit comments

Comments
 (0)