OmniSharp.MSBuild.ProjectManager Failed to load project on Linux

后端 未结 3 384
温柔的废话
温柔的废话 2021-01-28 01:22

I am learning C# on my Manjaro Linux Notebook. I tried to install the ms-vscode.csharp extension, but when opening any .NET Core project I get the following Error Message:

3条回答
  •  余生分开走
    2021-01-28 02:22

    This seem to have done it for me code -> preferences -> settings -> click this

    ;/ wish i had at least 10 reputation to post a picture here but it's the first icon in the top right looks like a lil piece of paper.

    Then..

    copy pasta this into settings.json

    {
      "explorer.compactFolders": false,
      "update.mode": "none",
      "workbench.iconTheme": "vscode-icons",
      "editor.formatOnSave": true,
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "omnisharp.path": "latest",
      "omnisharp.monoPath": "auto",
      "csharp.semanticHighlighting.enabled": true,
      "editor.formatOnType": true,
      "[csharp]": {
        "editor.defaultFormatter": "ms-dotnettools.csharp"
      },
      "[xml]": {
        "editor.defaultFormatter": "DotJoshJohnson.xml"
      },
    
      "settingsSync.ignoredExtensions": [],
      "window.zoomLevel": 0
    }
    

    that ^

    "[csharp]": {
        "editor.defaultFormatter": "ms-dotnettools.csharp"
      },
      "[xml]": {
        "editor.defaultFormatter": "DotJoshJohnson.xml"
      },
    

    but i think this is what did the trick for me ^ specifically the [csharp]

提交回复
热议问题