-
Notifications
You must be signed in to change notification settings - Fork 677
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
OmniSharp.MSBuild.Discovery.MSBuildLocator picks wrong MSBuild path #1941
Comments
@DustinCampbell This is interesting. Seems like we need to actually verify that .NET is also installed for a given MSBuild installation. Thoughts on how we should do that? |
@rchande: Sorry for the delay here. We'd probably need to test for the appropriate package(s) here: https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.Host/MSBuild/Discovery/Providers/VisualStudioInstanceProvider.cs#L56-L70. |
This issue was moved to OmniSharp/omnisharp-roslyn#1094 |
I'm gone ahead and moved this over to omnisharp-roslyn, where the actually work would happen. |
Environment data
dotnet --info
output:.NET Command Line Tools (2.1.3)
Product Information:
Version: 2.1.3
Commit SHA-1 hash: a0ca411ca5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Apps\dotnet\sdk\2.1.3\
Microsoft .NET Core Shared Framework Host
Version : 2.0.4
Build : 7f262f453d8c8479b9af91d34c013b3aa05bc1ff
VS Code version: 1.19.1
C# Extension version: 1.13.1
Steps to reproduce
Install .Net Core standalone
Install VS Code
Install VS Build Tools with VC++ only (not .NET component)
or
Install VS IDE with VC++ only (not .NET component)
Open .csproj in VS Code.
Expected behavior
OmniSharp runs
Actual behavior
OmniSharp tries to use MSBuild from VC++ and fails.
If I install .NET in VS Build Tools it works.
How can I force OmniSharp to ignore MSbuild environments that do NOT have .NET included?
Thanks.
The text was updated successfully, but these errors were encountered: