调试目标丢失? [英] Debug Target Is Missing?

查看:27
本文介绍了调试目标丢失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试构建解决方案时,出现以下错误:

When I try to build my solution, I get the following error:

Visual Studio 无法开始调试,因为缺少调试目标c: arget".请>构建项目并重试,或适当设置OutputPath和AssemblyName属性>指向目标程序集的正确位置.

Visual Studio cannot start debugging because the debug target 'c: arget' is missing. Please >build the project and retry, or set the OutputPath and AssemblyName properties appropriately >to point at the correct location for the target assembly.

我的输出路径已正确设置为 binDebug,但从未在该文件夹中创建 exe.相反,我得到的只是exe.configvshost.exevshost.exe.config 文件.

My output path is set correctly to binDebug, but the exe is never created in that folder. Instead, all I get are the exe.config, vshost.exe, and vshost.exe.config files.

知道发生了什么吗?

推荐答案

您可以使用文本编辑器打开项目文件,然后将 'c: arget' 替换为 'binDebug'

You could open the project file with a text editor and replace 'c: arget' by 'binDebug'

编辑

还有其他更有用的答案,但我无法删除我的答案,因为它已被接受.

There are other more helpful answers but I can't delete mine since it's the accepted one.

@CZFox 答案

@Yehuda Shapira 答案

改变目标路径的步骤是

  1. 转到属性
  2. 然后去调试
  3. 浏览启动外部程序并选择 bin/Debug/.exe 文件

这篇关于调试目标丢失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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