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

Allow net6 build of O# to load newer .NET SDKs #2308

Merged
merged 3 commits into from
Dec 14, 2021

Conversation

JoeRobich
Copy link
Member

@JoeRobich JoeRobich commented Dec 14, 2021

By not shipping NuGet libraries ourselves in our net6 packages, we will load the NuGet libraries shipped with the SDK registered by the MSBuildLocator. I did need to add a SemanticVersion implementation in order to remove our use of NuGet.Versioning.

To test you can install 6.0.2xx version of the .NET SDK from dotnet/installers.

@filipw
Copy link
Member

filipw commented Dec 14, 2021

This is a spectacular solution and I love how simple it turned out to be!
Do you want to include it in this release or in the next one?

@JoeRobich
Copy link
Member Author

This release would be great.

@JoeRobich JoeRobich merged commit 06e19a6 into OmniSharp:master Dec 14, 2021
waf added a commit to waf/CSharpRepl that referenced this pull request Nov 10, 2022
The NuGet.* libraries should not be bundled with csharprepl and we should instead use the ones included in the SDK.

You can see other projects in the .NET community making similar fixes:

microsoft/qsharp-compiler#1470
OmniSharp/omnisharp-roslyn#2308
OmniSharp/omnisharp-roslyn#2436

If we don't do this, we get issues with the MSBuildWorkspaces and MSBuildLocators unable to load the nuget libraries due to dependency conflicts. It mostly affects our "load solution" / "load project" features.
mattstern31 added a commit to mattstern31/CSharp-Repl-Services that referenced this pull request Nov 11, 2023
The NuGet.* libraries should not be bundled with csharprepl and we should instead use the ones included in the SDK.

You can see other projects in the .NET community making similar fixes:

microsoft/qsharp-compiler#1470
OmniSharp/omnisharp-roslyn#2308
OmniSharp/omnisharp-roslyn#2436

If we don't do this, we get issues with the MSBuildWorkspaces and MSBuildLocators unable to load the nuget libraries due to dependency conflicts. It mostly affects our "load solution" / "load project" features.
syedrizvinet added a commit to syedrizvinet/Repl-Tests-CSharp that referenced this pull request Apr 24, 2024
The NuGet.* libraries should not be bundled with csharprepl and we should instead use the ones included in the SDK.

You can see other projects in the .NET community making similar fixes:

microsoft/qsharp-compiler#1470
OmniSharp/omnisharp-roslyn#2308
OmniSharp/omnisharp-roslyn#2436

If we don't do this, we get issues with the MSBuildWorkspaces and MSBuildLocators unable to load the nuget libraries due to dependency conflicts. It mostly affects our "load solution" / "load project" features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants