C# Extension not working for VS Code
See original GitHub issueEnvironment data
dotnet --info
output:
VS Code version: 1.26.1
C# Extension version:
Starting OmniSharp on Windows 6.2.9200.0 (x64)
Steps to reproduce
Just Installed C# extension from market place using VS Code
Expected behavior
It should install and work as specified.
Actual behavior
Not able to identify the issue ?
Starting OmniSharp server at 4/27/2019, 2:33:04 AM Target: c:\Hari\Projects\Udemy\AngularCore\DatingApp
OmniSharp server started. Path: C:\Users\Hari.vscode\extensions\ms-vscode.csharp-1.16.2.omnisharp\1.32.5\OmniSharp.exe PID: 14512
Starting OmniSharp on Windows 6.2.9200.0 (x64)
DotNetPath set to dotnet
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin"
MSBUILD_EXE_PATH environment variable set to 'C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin\MSBuild.exe'
Registered MSBuild instance: StandAlone 15.0 - "C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin"
CscToolExe = csc.exe
CscToolPath = C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin\Roslyn
MSBuildExtensionsPath = C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild
MSBuildToolsPath = C:\Users\Hari\.vscode\extensions\ms-vscode.csharp-1.16.2\.omnisharp\1.32.5\msbuild\15.0\Bin
Detecting Cake files in 'c:\Hari\Projects\Udemy\AngularCore\DatingApp'.
Could not find any Cake files
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
No solution files found in 'c:\Hari\Projects\Udemy\AngularCore\DatingApp'
Queue project update for 'c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj'
Detecting CSX files in 'c:\Hari\Projects\Udemy\AngularCore\DatingApp'.
Could not find any CSX files
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
Loading project: c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj
Configuration finished.
Omnisharp server running using Stdio at location 'c:\Hari\Projects\Udemy\AngularCore\DatingApp' on host 7584.
Failed to load project file 'c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj'.
c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found. c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List
1& projects, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator
4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator
4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary
2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectLoader loader) at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func
1 loader)
Attemped to update project that is not loaded: c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
I was able to solve a very similar issue by following the directions here: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250.
Closing out as no additional info was added.