question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C# Extension not working for VS Code

See original GitHub issue

Environment 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, List1& projects, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.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, IDictionary2 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, Func1 loader)

    Attemped to update project that is not loaded: c:\Hari\Projects\Udemy\AngularCore\DatingApp\DatingApp.API\DatingApp.API.csproj

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
loflinacommented, May 17, 2019

I was able to solve a very similar issue by following the directions here: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250.

0reactions
cartermpcommented, Sep 23, 2020

Closing out as no additional info was added.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C/C++ extension FAQ - Visual Studio Code
Frequently asked questions about the C/C++ extension in Visual Studio Code. ... What do I do if I suspect a C/C++ extension problem...
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 >
after update, C/C++ Extension stopped working in VSCode ...
It doesn't appear with VS Code non-Insiders and repros with our insiders and non-insiders versions of our C/C++ extension so it seems like...
Read more >
Best Visual Studio Code extensions for C++ development?
Choose View –> Extensions, then search for “clangd”. (Make sure the Microsoft C/C++ extension is not installed).
Read more >
IntelliSense not working in VS Code - The Windows Club
Use Keyboard Help. · Check Settings. · Restart VSCode. · Update VSCode. · Select Correct programming Language Mode. · Updates Old Language Extension....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found