Skip to content
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

Upgrade NuGet.Frameworks to fix loading projects with the 7.0.4xx SDK #69354

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

jasonmalinowski
Copy link
Member

The 7.0.4xx SDKs ship with a newer version of NuGet.Frameworks than we are shipping. Due to a complicated set of interactions of how the various AssemblyLoadingContexts work (or don't work as expected!), this means that when our LSP server uses MSBuildWorkspace to load projects, it'll end up using the NuGet.Frameworks we use here rather than the MSBuild one, causing load issues.

The underlying problem is tracked with #61454, although I still need to write up the full situation in that bug since back in June we ended up running into a similar issue and had lots of deep analysis of it. Fixing the problem requires changes in several different repositories (and all involving AssemblyLoadContexts, so the changes are very technical) so for now we'll just bump the version.

Fixes dotnet/vscode-csharp#5980

@jasonmalinowski jasonmalinowski self-assigned this Aug 3, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 3, 2023
@arunchndr
Copy link
Member

Another patch candidate. cc: @dibarbet

The 7.0.4xx SDKs ship with a newer version of NuGet.Frameworks than
we are shipping. Due to a complicated set of interactions of how
the various AssemblyLoadingContexts work (or don't work as expected!),
this means that when our LSP server uses MSBuildWorkspace to load
projects, it'll end up using the NuGet.Frameworks we use here rather
than the MSBuild one, causing load issues.

The underlying problem is tracked with
dotnet#61454, although I still need
to write up the full situation in that bug since back in June we ended
up running into a similar issue and had lots of deep analysis of it.
Fixing the problem requires changes in several different repositories
(and all involving AssemblyLoadContexts, so the changes are very
technical) so for now we'll just bump the version.

Fixes dotnet/vscode-csharp#5980
@jasonmalinowski jasonmalinowski marked this pull request as ready for review August 3, 2023 23:48
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner August 3, 2023 23:48
@jasonmalinowski jasonmalinowski merged commit 35e87b6 into dotnet:main Aug 4, 2023
22 of 27 checks passed
@jasonmalinowski jasonmalinowski deleted the bump-nuget-version branch August 4, 2023 01:04
@ghost ghost added this to the Next milestone Aug 4, 2023
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
3 participants