1. 程式人生 > >[.NET Core 32]升級vs code之後,vs code無法調試net core web項目

[.NET Core 32]升級vs code之後,vs code無法調試net core web項目

visual spa it is net sem not 安裝 during mach

錯誤提示&處理方法

參考鏈接:https://github.com/OmniSharp/omnisharp-vscode/issues/1742

錯誤:The .NET Core debugger cannot be installed. The debugger requires macOS 10.12 (Sierra) or newer

方法:You can set the option to disable auto extension updates in VS Code, and then manually install v1.11.0from the .vsix file using these instructions. Though the one problem with this is that you will also miss out on new language service features. But this is certainly a great option if you can‘t upgrade your OS yet, but it is a point-in-time problem.

詳細步驟:

參考鏈接:https://github.com/OmniSharp/omnisharp-vscode/wiki/Installing-Beta-Releases

安裝下載:https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.11.0

A new release of the C# extension is generally shipped every month or so. During development, interim(臨時) beta releases are made available as VSIXs here: https://github.com/OmniSharp/omnisharp-vscode/releases. If you wish to install a beta release, please follow these steps:

Uninstalling a previously-installed C# extension

When installing a beta release, it‘s a good idea to remove any previous versions of the extension. You can do this like so:

  1. Open Visual Studio Code and select View->Extensions from the menu to display the Extensions pane.

  2. In the Extensions pane, locate the C# extension and click the little ‘gear‘ icon next to it. From the drop-down menu, select ‘Uninstall‘.

    技術分享

  3. Visual Studio Code will ask if you are sure that you want to uninstall the extension. Click "OK" on this prompt.

  4. In the Extensions pane, a button will appear next to the C# extension that reads, "Reload". Click this to cause Visual Studio Code to reload without the C# extension installed. Visual Studio Code will ask you whether you are certain whether you wish to reload. Click "OK" to confirm.

Installing a beta release of the C# extension

First, find the release that you wish to install at https://github.com/OmniSharp/omnisharp-vscode/releases (https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.11.0) Then, download the .vsix file for that release to your machine. Use the following steps to install the .vsix into Visual Studio Code.

  1. Open Visual Studio Code and select View->Extensions from the menu to display the Extensions pane.

  2. Click the ... at the top-right corner of the Extensions pane and select "Install from VSIX..." on the menu that appears.

    技術分享

  3. Locate the .vsix file you download and click "Open".

  4. Visual Studio Code will prompt you to restart to enable the extension. Click "Restart" to confirm.

提示

重新安裝C#擴展之後,vs code會更新C#依賴

Updating C# dependencies... Platform: darwin, x86_64
Downloading package ‘Mono Runtime (macOS)‘ (1718 KB) .................... Done! Downloading package ‘Mono Framework Assemblies‘ (5892 KB) .................... Done! Downloading package ‘OmniSharp (Mono 4.6)‘ (12219 KB) .................... Done! Downloading package ‘.NET Core Debugger (macOS / x64)‘ (46460 KB) .................... Done!
Installing package ‘Mono Runtime (macOS)‘ Installing package ‘Mono Framework Assemblies‘ Installing package ‘OmniSharp (Mono 4.6)‘ Installing package ‘.NET Core Debugger (macOS / x64)‘
Finished

[.NET Core 32]升級vs code之後,vs code無法調試net core web項目