Skip to content

Commit

Permalink
Update packaging.targets (dotnet#106327)
Browse files Browse the repository at this point in the history
Fixes:

> C:\git\runtime3\eng\packaging.targets(211,5): error NETPKG0001: Project reference '' is a reference to a framework asse
mbly and is not required in net9.0 (NetCoreAppCurrent). [C:\git\runtime3\src\libraries\System.Text.Json\src\System.Text
.Json.csproj::TargetFramework=net9.0]
  • Loading branch information
ViktorHofer authored Aug 15, 2024
1 parent 94a4147 commit f00fc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/packaging.targets
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
'@(ProjectReference)' != ''">
<!-- Find project references that overlap with NetCoreApp, are direct (NuGetPackageId is not set), actually referenced (ReferenceOutputAssembly), and not hidden with PrivateAssets
ProjectReferences can opt out of this checking by setting AllowFrameworkPackageReference, though they should not. -->
<Warning Text="Project reference '%(_overlappingProjectFrameworkReference.Identity)' is a reference to a framework assembly and is not required in $(NetCoreAppCurrent) (NetCoreAppCurrent)."
<Warning Text="Project reference '%(ProjectReference.Identity)' is a reference to a framework assembly and is not required in $(NetCoreAppCurrent) (NetCoreAppCurrent)."
Code="NETPKG0001"
Condition="$(NetCoreAppLibrary.Contains('%(ProjectReference.Filename);')) and
'%(ProjectReference.ReferenceOutputAssembly)' != 'false' and
Expand Down

0 comments on commit f00fc03

Please sign in to comment.