Skip to content

Don't try converting a metadata reference to a self project reference#51453

Merged
jasonmalinowski merged 2 commits intodotnet:masterfrom
jasonmalinowski:fix-project-reference-conversion-exception
Feb 25, 2021
Merged

Don't try converting a metadata reference to a self project reference#51453
jasonmalinowski merged 2 commits intodotnet:masterfrom
jasonmalinowski:fix-project-reference-conversion-exception

Conversation

@jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented Feb 24, 2021

This fixes the exception in AB#1279845; the root cause was a misconfigured user project which I've helped them with directly.

While I'm here I'm also going to improve the exceptions thrown so this is more diagnosable in the future.

We already had a message that included places to fill in the project
names; so let's just use that. Also have a different message if you're
adding a self-reference since that's really not good.
If a user messes up their project files in a way that results in a
metadata reference to the output of itself, we shouldn't throw
exceptions.
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner February 24, 2021 22:15
@ghost ghost added the Area-IDE label Feb 24, 2021
@jasonmalinowski jasonmalinowski self-assigned this Feb 25, 2021
@jasonmalinowski jasonmalinowski merged commit 171fced into dotnet:master Feb 25, 2021
@ghost ghost added this to the Next milestone Feb 25, 2021
@jasonmalinowski jasonmalinowski deleted the fix-project-reference-conversion-exception branch February 25, 2021 00:14
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants