C# extension doesn't work on vs code on Mac
See original GitHub issueEnvironment data
dotnet --info
output:
.NET Command Line Tools (1.0.4)
Product Information: Version: 1.0.4 Commit SHA-1 hash: af1e6684fd
Runtime Environment: OS Name: Mac OS X OS Version: 10.12 OS Platform: Darwin RID: osx.10.12-x64 Base Path: /usr/local/share/dotnet/sdk/1.0.4
VS Code version: 1.13.1 C# Extension version: 1.10.0
Steps to reproduce
Open a ASP.NET Core project in VS Code
Expected behavior
C# extension start whitout error
Actual behavior
There errors initializing the extension
Omnisharp log
Target: /Users/jleung/Stuffs/testdotnetcore
OmniSharp server started wth Mono
Path: /Users/jleung/.vscode/extensions/ms-vscode.csharp-1.10.0/bin/run
PID: 33367
OmniSharp: -s /Users/jleung/Stuffs/testdotnetcore --hostPID 33354 --stdio DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information formattingOptions:useTabs=false formattingOptions:tabSize=2 formattingOptions:indentationSize=2
ÔªøÔªø{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/Users/jleung/Stuffs/testdotnetcore' on host 33354."},"Seq":1,"Type":"event"}
[info]: OmniSharp.DotNet.DotNetProjectSystem
Initializing in /Users/jleung/Stuffs/testdotnetcore
[info]: OmniSharp.DotNet.DotNetProjectSystem
Auto package restore: False
[info]: OmniSharp.DotNet.DotNetProjectSystem
Update workspace context
[info]: OmniSharp.DotNet.DotNetProjectSystem
Resolving projects references
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
MSBUILD_EXE_PATH environment variable set to /Users/jleung/.vscode/extensions/ms-vscode.csharp-1.10.0/bin/omnisharp/msbuild/MSBuild.dll
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
MSBuildExtensionsPath environment variable set to /Users/jleung/.vscode/extensions/ms-vscode.csharp-1.10.0/bin/omnisharp/msbuild
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
MSBuild will use local OmniSharp installation.
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
No solution files found in '/Users/jleung/Stuffs/testdotnetcore'
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
Loading project: /Users/jleung/Stuffs/testdotnetcore/testdotnetcore.csproj
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
Failed to load project file '/Users/jleung/Stuffs/testdotnetcore/testdotnetcore.csproj'.
/Users/jleung/Stuffs/testdotnetcore/testdotnetcore.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "/Users/jleung/.vscode/extensions/ms-vscode.csharp-1.10.0/bin/omnisharp/msbuild/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. /Users/jleung/Stuffs/testdotnetcore/testdotnetcore.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00067] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object arg0) [0x0000a] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object arg0) [0x00001] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpression (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.String unescapedExpression, System.Boolean throwOnFileNotExistsError, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& imports) [0x0041e] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpressionConditioned (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.String unescapedExpression, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& projects, System.Boolean throwOnFileNotExistsError) [0x0005b] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImports (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x00033] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x00001] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x00210] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate () [0x00055] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.Execution.ProjectInstance projectInstanceIfAnyForDebuggerOnly) [0x0001a] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x0003c] in <bdf083ca20c84af487947992fd9a4a29>:0
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00025] in <bdf083ca20c84af487947992fd9a4a29>:0
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/Users/jleung/Stuffs/testdotnetcore'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.Startup
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.Startup
Configuration finished.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Configure VS Code for Clang/LLVM on macOS
You can install the C/C++ extension by searching for 'c++' in the Extensions view (Ctrl+Shift+X). C/C++ extension. Ensure Clang is installed. Clang may...
Read more >vscode Intellisense not working - Stack Overflow
I use the WSL and my intellisense was not working. So I go to the C/C++ Extension: Configuration thanks to your keyboard shortcut...
Read more >How to Run C in Visual Studio Code on Mac OS ... - YouTube
Run C program in visual studio code on macOS Macbook Air?Hey, guys in this video I'm going to show you how you can...
Read more >C/C++ extension not working on vs code insiders for m1 Macs
To be frank to you guys I am a student and don't have much knowledge.. when I try to install C/C++ extension as...
Read more >IntelliSense not working in VS Code - The Windows Club
1] Install Extension · Open up VS Code. · Go to Extensions Panel (Ctrl+Shift+X). · Search for 'Intellisense + [Name of language]'. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, that should be:
Ok I did it, now how can I inform someone to solve my problem