Pick the right project for P2P refs in lightweight solution load and cross-targeting.
If a project being loaded in lightweight solution load references a CPS project that does cross-targeting, we may crash trying to hook up P2P references, because we were looking for a single project matching the project file name, and language. In the case of cross-targeting though, we create a project for each TFM, and the .Single call would blow up. To fix this, we now continue looking through projects until we find one with an output path that matches our reference. Fixes #17570.
Showing
想要评论请 注册 或 登录