dotnet / dotnet/msbuild

Defining a point of extensibility for choosing the NearestBestTargetFramework for Project References

Open
#5,214 0 comments 0 reactions 0 assignees View on GitHub
Partner request triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

The project references are matched with the nearestBestTargetFramework by the msbuild here https://github.com/microsoft/msbuild/blob/2d82e1a861d890fce68c8e2d42b569e5bbaf5687/src/Tasks/Microsoft.Common.CurrentVersion.targets#L1630-L1696

Runtime repo overloads the tfm to include rids. Currently we guess the target ordering to run our custom logic for finding the bestTargetFramework for p2p references. This approach is prone to
bugs if msbuild changes any logic.

The ask here is provide a point of extensibility for developers to inject their custom\target or task to resolve the project references.

cc @ericstj @ViktorHofer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.