-
Notifications
You must be signed in to change notification settings - Fork 420
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
Cannot load projects that use an MSBuild SDK package #1190
Comments
@natemcmaster : Is this a duplicate of #1138? |
Depends if this distinction is important. In #1138, the additional SDK (Typescript.Sdk) is installed into the MSBuild base path. In this bug, the additional SDK is mean to be resolved via NuGet. |
Yeah, I don't know if the distinction is important either. There has been no work on OmniSharp done to support MSBuild SDKs to date. |
Would you be willing to provide your full OmniSharp Log instead of just the error? |
Sure, no problem. |
FYI that I have a good idea what's causing this. Mono 5.12.0 does ship the SDK resolver for acquiring MSBuild SDKs from NuGet. However, OmniSharp is setting the |
Yup. I was able to prototype a change to OmniSharp that would allow it to properly use MSBuild SDKs when a Mono is installed SxS that supports them. I'll try to work that into a proper fix in the next day or two. |
@natemcmaster: I've just merged the change that I hope will fix this. Once the build is complete (probably within the hour), you should be able to set |
It looks like the build is ready, so you should be able to give that option a spin. |
Thanks! I gave it a spin and it fixes the error I was seeing. I'm seeing a new issues now, but I'll open a new bug as that appears to be unrelated. |
That's great to hear! This was a bigger work item than I'd expected, so thanks for verifying. 😄 |
MSBuild 15.6 added a new SDK resolver that can use NuGet packages as SDKs. When opening a project that uses a NuGet-based SDK package, OmniSharp cannot load the project.
Repro
git clone https://github.com/dotnet/arcade
Open VS Code
Expected
OmniSharp uses the same SDK resolution that VS 15.6 and the .NET Core CLI 2.1.105 use.
Actual
Project fails to load with:
Details
See https://github.com/microsoft/msbuildsdks and https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-use-project-sdk#how-project-sdks-are-resolved for more details
VS Code C# extension: 1.15.2
VS Code: 1.23.1
The text was updated successfully, but these errors were encountered: