Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 265824e

Browse files
committed
Update the original ProjectReference item definition for P2P support in nuproj
Rather than relying on the internal item group name `_MSBuildProjectReferenceExistent`, just modify the original `ProjectReference`, which works too since the metadata is passed down to the internal `_MSBuildProjectReferenceExistent` when that item group is determined.
1 parent 6836e4d commit 265824e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Build/NuGet.Build.Packaging.Tasks/NuGet.Build.Packaging.Authoring.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Copyright (c) .NET Foundation. All rights reserved.
2626
documented escape hatch, see
2727
https://github.com/Microsoft/msbuild/blob/2634f05a660b14c64ae4e924d900dd200d5032e7/src/Tasks/Microsoft.Common.CurrentVersion.targets#L1537
2828
-->
29-
<_MSBuildProjectReferenceExistent>
29+
<ProjectReference>
3030
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
3131
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
3232
<AdditionalProperties>FromPackagingProject=true</AdditionalProperties>
33-
</_MSBuildProjectReferenceExistent>
33+
</ProjectReference>
3434
</ItemDefinitionGroup>
3535

3636
<!-- Just to make it easy for consumers to request the TargetPath as usual but get the
@@ -53,4 +53,4 @@ Copyright (c) .NET Foundation. All rights reserved.
5353
</ItemGroup>
5454
</Target>
5555

56-
</Project>
56+
</Project>

0 commit comments

Comments
 (0)