博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[.NET Core 32]升级vs code之后,vs code无法调试net core web项目
阅读量:4703 次
发布时间:2019-06-10

本文共 3025 字,大约阅读时间需要 10 分钟。

错误提示&处理方法

参考链接: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 from the .vsix file using . 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: . 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'.

    Uninstall C# Extension

  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/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.

    Install from VSIX

  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

转载于:https://www.cnblogs.com/mspeer/p/7533405.html

你可能感兴趣的文章
angular4 ionic3 app
查看>>
HDU 2036 改革春风吹满地 数学题
查看>>
[ActionScript 3.0] AS3 绘制正八面体(线条)
查看>>
.Module高内聚低耦合的思考
查看>>
最短路模板(SPFA POJ2387)
查看>>
windows用户态和内核态
查看>>
Oracle删除当前用户下所有的表的方法1
查看>>
UDP异步通信
查看>>
生成器 列表推导式 列表表达式
查看>>
Jenkins权限控制
查看>>
6-6 Haar特征3
查看>>
MyEclipse10安装Svn插件的几种方法
查看>>
day37-hibernate 02-Hibernate二级缓存:二级缓存的散装数据
查看>>
NOIP2014 飞扬的小鸟(Flappy Bird)
查看>>
P1988 最大数
查看>>
CDH CM版本 6.0.1 升级到 CM 6.2.0 当前最新版本(CentOS 7.x)
查看>>
洛谷 P1678 烦恼的高考志愿
查看>>
第五周编程总结
查看>>
了解计算机的发展历程
查看>>
VC++函数(win32_exe)
查看>>