Project.nuget.g.targets should not prepend to MSBuildAllProjects in MSBuild 16 or later #10895
Labels
Category:Quality Week
Issues that should be considered for quality week
Priority:2
Issues for the current backlog.
Style:PackageReference
Tenet:Performance
Performance issues
Type:DCR
Design Change Request
Milestone
Testing using VS 17 internal preview, but I suspect this goes way back.
For a new .NET 5.0 xUnit project, the following
obj\TestProject1.csproj.nuget.g.targets
file is generated:The
MSBuildAllProjects
property does not need to be updated withMSBuildThisFileFullPath
. There have been several changes over the last few years to stop adding projects to this, as the property can become very large which has an impact on runtime performance.For more information, see:
To make this work with MSBuild versions earlier than 16, the following could be generated instead:
The text was updated successfully, but these errors were encountered: