-
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
Fails to load a project that uses an additional SDK reference #1138
Comments
FWIW, there is often a lag between when a feature appears in a nightly preview of the .NET Core SDK and when it appears in OmniSharp. |
By the way, additional SDKs is supported in VS 15.6 and the 2.1.105 SDK. This isn't a preview feature anymore. |
Sure. I understand. However, as OmniSharp is a community project, it necessarily lags a bit. If you're interested in seeing it updated at a faster rate, do feel free to pitch in with PRs! 😄 |
Sorry if my last comment seemed whiny. I was just trying to point out that it affects users on stable releases, not just previews. Would be happy to contribute more as time allows. I've hunting through the code and trying to figure out why this happens. I haven't found the cause yet. |
I did find the cause. It's due to a hack we left in OmniSharp due to the SDK resolvers not being able to support .NET Core SDKs <= 1.0.3. I'm removing the hack. 😄 |
From @timjroberts on March 19, 2018 20:21
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.Copied from original issue: dotnet/vscode-csharp#2124
The text was updated successfully, but these errors were encountered: