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

Unable to load Kestrel solution on Linux #1707

Closed
cesarblum opened this issue Aug 11, 2017 · 5 comments
Closed

Unable to load Kestrel solution on Linux #1707

cesarblum opened this issue Aug 11, 2017 · 5 comments
Assignees
Milestone

Comments

@cesarblum
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.0-preview1-007026)

Product Information:
Version: 2.1.0-preview1-007026
Commit SHA-1 hash: 6164c26938

Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /home/cesars/.dotnet/sdk/2.1.0-preview1-007026/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

VS Code version: 1.14.2
C# Extension version: 1.12.0
Mono version: 5.0.1.1

Steps to reproduce

  1. Clone https://github.com/aspnet/KestrelHttpServer
  2. Open VSCode

Expected behavior

Solution loads and Intellisense works, etc.

Actual behavior

All projects fail to load with the same error:

[fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
        The specified task executable location "/home/cesars/.vscode/extensions/ms-vscode.csharp-1.12.0/.omnisharp/omnisharp/msbuild/Roslyn/RunCsc" is invalid.
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
        Failed to load project file '/home/cesars/src/aspnet/KestrelHttpServer/src/Kestrel.Core/Kestrel.Core.csproj'.
/home/cesars/src/aspnet/KestrelHttpServer/src/Kestrel.Core/Kestrel.Core.csproj

This is what I have under /home/cesars/.vscode/extensions/ms-vscode.csharp-1.12.0/.omnisharp/omnisharp/msbuild/Roslyn

csc.exe
csc.exe.config
csc.rsp
csi.exe
csi.exe.config
csi.rsp
Microsoft.Build.Tasks.CodeAnalysis.dll
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.CSharp.Scripting.dll
Microsoft.CodeAnalysis.dll
Microsoft.CodeAnalysis.Scripting.dll
Microsoft.CSharp.Core.targets
Microsoft.DiaSymReader.Native.amd64.dll
Microsoft.DiaSymReader.Native.x86.dll
Microsoft.Win32.Primitives.dll
System.AppContext.dll
System.Collections.Immutable.dll
System.Console.dll
System.Diagnostics.FileVersionInfo.dll
System.Diagnostics.Process.dll
System.Diagnostics.StackTrace.dll
System.IO.Compression.dll
System.IO.FileSystem.dll
System.IO.FileSystem.DriveInfo.dll
System.IO.FileSystem.Primitives.dll
System.IO.Pipes.dll
System.Reflection.Metadata.dll
System.Security.AccessControl.dll
System.Security.Claims.dll
System.Security.Cryptography.Algorithms.dll
System.Security.Cryptography.Encoding.dll
System.Security.Cryptography.Primitives.dll
System.Security.Cryptography.X509Certificates.dll
System.Security.Principal.Windows.dll
System.Text.Encoding.CodePages.dll
System.Threading.Thread.dll
System.ValueTuple.dll
System.Xml.ReaderWriter.dll
System.Xml.XmlDocument.dll
System.Xml.XPath.dll
System.Xml.XPath.XDocument.dll
@DustinCampbell
Copy link
Member

Does the Kestrel solution set CscToolPath?

@cesarblum
Copy link
Author

I can't find CscToolPath explicitly in the solution, but we do consume private builds of the C# compiler (aspnet/KestrelHttpServer@659fa96), which I guess would set that.

@DustinCampbell
Copy link
Member

Yeah, that's probably the issue. I have a fix in mind for this, but am already away for the weekend and travelling. When I get some time, I'll make the fix and push a new release of C# for VS Code. In that meantime, you can roll back to a recent beta (probably 1.12-beta4) or 1.11. I'll ping back here once this is fixed (hopefully this weekend). Sound good?

@cesarblum
Copy link
Author

Great! 👍

@DustinCampbell
Copy link
Member

This should fix the issue: OmniSharp/omnisharp-roslyn#939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants