[.NET Core 32]升级vs code之后,vs code无法调试net core web项目

错误提示&处理方法

参考链接: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

时间: 2024-08-05 10:32:51

[.NET Core 32]升级vs code之后,vs code无法调试net core web项目的相关文章

iOS Drawing Concepts[iOS 绘画概念]

iOS Drawing Concepts https://developer.apple.com/library/ios/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GraphicsDrawingOverview/GraphicsDrawingOverview.html High-quality graphics are an important part of your app’s user interface. Providin

Linux rpm 命令参数使用详解[介绍和应用]

RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的"添加/删除程序" rpm 执行安装包 二进制包(Binary)以及源代码包(Source)两种.二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译.安装.源代码包经常以src.rpm作为后缀名. 常用命令组合: -ivh:安装显示安装进度--install--verbose--hash -Uvh:升级软件包--Update: -qpl:列出RPM软件包内的文件信息[Q

MAC OS X socket 1 [a simple example]

Server Code C: // // main.c // unix_socket_very_simple_server // // Created by DMD on 4/7/14. /* Function : Server for unix (OS X MAC) */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> // unix socket #include <sys/socke

MAC OS X socket 2 [a simple example]

Xcode->New Workspace XCode->New Project: C: [Add to : ?] Server: code // // main.c // s2 // Server // Created by DMD on 4/7/14. #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #includ

NSuserdefaults 数据保存安全性[黑科技分析]

NSuserdefaults 是一种IOS常用的数据持久化的方式,操作简便,配合NSCoding 和NSKeyedArchiver,很容易将数据model转化成NSData直接存储在NSuserdefaults.那使用NSuserdefaults保存数据,数据的安全性如何呢? NSuserdefaults 的本质是使用了plist存储数据,将存储在NSuserdefaults中的数据写入了一个以Bundle Identifier的plist中. 下面是一个简单的例子. @interface Te

VS Code调试.NET Core

VS Code调试.NET Core应用遇到的坑 为什么会有”坑“ 博客园里有好多介绍怎么使用VS Code以及调试.NET Core的文章,但是都是基于直接构建Asp.Net Core Mvc单项目的,有什么区别呢! (1).我们这次遇到的坑是在多项目的解决方案中遇到的,也就是说根目录不是一个项目的目录: (2).DEBUG项目不能加载符号文件,导致项目不能断点调试: 解决问题 1.关于解决方案的目录问题 在launch.json中将 "program" 节点修改下: "p

Mac上使用Visual Studio Code开发/调试.NET Core代码

Mac上使用Visual Studio Code开发/调试.NET Core代码 .Net Core 1.0终于发布了,Core的一大卖点就是跨平台.这个跨平台不只是跨平台运行,而且可以跨平台开发.今天抽空研究了下在Mac下如何使用VS Code来开发.NET Core程序,并且调试代码. 1.安装.NET Core 在mac上打开终端: ~$ brew update ~$ brew install openssl ~$ brew link --force openssl 如果不能使用brew命

[Swift中错误]missing argument label &#39;greeting:&#39; in call

Swift 中出现这个问题:从第二个参数起,自动加上lable func sayHello(name:String? ,greeting:String)->String { let result = greeting + "," + (name ?? "Guest") + "!" return result } var nickname:String? nickname = "yc" //“Goodmorning前面应该

saiku - 源码整合[普通WEB项目]

saiku源码的整合分为[普通web项目整合]和[maven整合]两种 本节主要是讲解如何整合为普通的web项目 转载自:http://blog.csdn.net/gsying1474/article/details/39018251 一 准备以下工具 和 源码 MyEclipse 10 saiku2.5 源码 saiku-server-foodmart-2.5.zip 二 新建web工程saiku 在MyEclipse中新建一个web项目,项目名必须为 saiku(因为saiku的UI会默认找