-
Notifications
You must be signed in to change notification settings - Fork 676
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
Fails to load a project that uses an additional SDK reference #2124
Comments
This issue was moved to OmniSharp/omnisharp-roslyn#1138 |
Thanks for reporting this. I've moved the issue to the omnisharp-roslyn repo, since it's more about OmniSharp than C# for VS Code. It will be a bit before this feature makes it's way into OmniSharp. However, you may be able to get it to work by installing the latest Mono MDK (http://www.mono-project.com/download/) if the new MSBuild feature has made its way into Mono. C# for VS Code will use the installed Mono MSBuild if it's present. |
Thanks @DustinCampbell. I'll update the MDK and see if that flies too. |
Installing Mono 5.10.0 resolves the issue. The solution and projects load as expected and code-lens/autocompletion support works as normal. Wished I had tried that first. |
Glad to hear it! |
The extension fails to load .csproj files where additional SDKs have been specified as per the MSBUILD 15.6 "Sdk" Design concept.
Environment data
dotnet --info
output:VS Code version: 1.21.1
C# Extension version: 1.14.0
Steps to reproduce
Create a .csproj file that references an additional SDK. In my particular example, I have:
In this example,
TypeScript.Sdk
has been manually installed into the SDK base path (identified in the dotnet --info output above), however, I've also tried usingTypeScript.Sdk/1.0.0
which should prompt the NuGet resolver in MSBUILD to download and make the SDK available.Expected behavior
The project should load successfully and code-lens/autocompletion support work as normal.
Actual behavior
I receive the following output in the Output window:
At that point I receive no code-lens or autocompletion support for any project in the solution.
Running
dotnet build
works as expected, and the SDKs are executed as intended.The text was updated successfully, but these errors were encountered: