Skip to content

Conversation

@jasonmalinowski
Copy link
Member

The Roslyn workspace model allows you to have project references to projects that aren't in the solution. If you have such a project, and tried to add another project reference, it'd fail because while validating the new reference we'd trip up on the missing one.

This explains the exception being thrown in https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1251708, but doesn't explain how we got into this situation in the first place. That root cause is still under investigation.

@jasonmalinowski jasonmalinowski self-assigned this Oct 5, 2021
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner October 5, 2021 00:23
@ghost ghost added the Area-IDE label Oct 5, 2021
@CyrusNajmabadi
Copy link
Member

The Roslyn workspace model allows you to have project references to projects that aren't in the solution.

Can we throw when that happens? it seems... bad (and we have ample precedence for failing on otehr bogus state).

@jasonmalinowski
Copy link
Member Author

Can we throw when that happens? it seems... bad (and we have ample precedence for failing on other bogus state).

Yes, unfortunately as a breaking change though and it's hard to know what might rely on it. In hindsight this would have been good to pull for 17.0 as a cleanup, but I'm not sure if we're stuck with it until next major rev.

@CyrusNajmabadi
Copy link
Member

Yes, unfortunately as a breaking change though

That's fine with me. It's a broken scenario.

The Roslyn workspace model allows you to have project references to
projects that aren't in the solution. If you have such a project, and
tried to add another project reference, it'd fail because while
validating the new reference we'd trip up on the missing one.
@jasonmalinowski jasonmalinowski force-pushed the fix-mishandling-of-missing-project-reference branch from d06bdd0 to c8842c5 Compare October 5, 2021 19:07
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.

3 participants