无法开始调试。启动项目无法启动 [英] Unable to start debugging. The startup project cannot be launched

查看:565
本文介绍了无法开始调试。启动项目无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天正在Visual Studio 2017中尝试.NET Core。
但是,即使使用准系统Hello World项目,我似乎也无法调试应用程序。

I'm trying .NET Core today inside Visual Studio 2017. However, it seems I'm unable to debug the application even with barebone Hello World project.

每次尝试启动项目时,都会出现以下消息框:

Every time I try to start the project, the following message box appear:

我已经搜索了类似的问题并遇到了这个问题:
无法开始调试。启动项目无法启动。 VS2015

I've searched similar issue and come across this thread: Unable to start debugging. The startup project could not be launched. VS2015

我尝试了每个答案,但最终没有任何结果。

我错过了什么吗?

I tried every single answer there and nothing worked in my end.
Is there something I missed?

预先感谢

推荐答案

在最初的问题,我遵循此处提供的关于类似SO主题的建议,但没有成功。认为我的项目是问题,所以我创建了一个全新的 Hello World .NET Core控制台应用程序。

After experiencing the error dialog in the original question and I followed the suggestions provided here and on similar SO topics, with no success. Thinking my project was the problem I created a brand new, "Hello World" .NET Core console application.

我也无法从这个全新项目中启动调试器。我认为这是我的项目或解决方案文件之外的问题。所以我决定修复我的Visual Studio 2017安装,当时我正在运行VS 2017 15.5.1。

I could not start the debugger from this brand new project as well. I decided this was a problem beyond my project or solution files. So I decided to repair my Visual Studio 2017 installation, I was running VS 2017 15.5.1.

要修复VS 2017,请启动Visual Studio安装程序,在已安装部分\Visual Studio专业版(我的版本是专业版)下,查找更多[向下箭头 [修改]和[启动]右侧的[]选项,从[更多]下拉列表中选择[修复]。

To repair VS 2017... start Visual Studio Installer, under the Installed section\Visual Studio Professional (my edition is Professional), look for the More [down arrow] option to the right of [Modify] and [Launch], from the More drop-down choose Repair.

这花了相当长的时间(我离开了几个小时),但返回后,新的Hello World和我的NETCore应用程序都将在调试器中启动。

This took quite some time (I left for a couple hours), but upon return both the new Hello World and my NETCore application would launch in the debugger.

这篇关于无法开始调试。启动项目无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆