Skip to content

Apps using MSBuildWorkspace should have some way to pick the appropriate version to match their SDK #77979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jasonmalinowski opened this issue Apr 3, 2025 · 0 comments

Comments

@jasonmalinowski
Copy link
Member

This issue tracks the underlying problem that was revealed in this bug report. If you write a console app that uses MSBuild, you add a NuGet reference to Roslyn. This isn't obvious that this happens, but it means you are setting an implicit version of Roslyn that impacts what analyzers and generators can load. In that bug, this meant things worked just fine, until their repo got upgraded to a newer SDK, which brought along generators targeting a new version of Roslyn. Suddenly, they have to update their package's references to Roslyn.

The lack of diagnosability there was a problem, but we should still have some way for an application using MSBuildWorkspace to add a package reference to the Roslyn that matches their SDK, that way you can be assured that app can load your other projects just fine.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 3, 2025
@jasonmalinowski jasonmalinowski removed the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant