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

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

问题描述

我今天在 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 Installer,在Installed部分Visual Studio Professional(我的版本是Professional)下,查找[Modify]和[Launch]右侧的More [向下箭头]选项,从更多下拉菜单中选择修复.

To repair VS 2017... start Visual Studio Installer, under the Installed sectionVisual 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天全站免登陆