c# - 缺少调试目标?

当我尝试构建我的解决方案时,我收到以下错误:

Visual Studio cannot start debugging because the debug target 'c:\target' 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.

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

知道发生了什么吗?

最佳答案

  1. 确保项目的输出路径正确(Project > Properties > Build > Output path)

  2. 进入菜单 Build > Configuration Manager,并检查您的主/入口项目是否已选中 Build。如果没有,请检查它。

  3. 转到属性>应用程序,然后选择项目的输出类型

https://stackoverflow.com/questions/3516333/

相关文章:

xcode - 向 Xcode 添加了运行脚本阶段,但没有任何反应

build - 从 make 文件中禁用 make 内置规则和变量

xcode - 用于使用最新 sdk 的 xcodebuild 参数。

build - 如何将 Autotools 项目转换为 CMake 项目?

android - 错误 :Execution failed for task ':android:

visual-studio-2012 - VS 2012 构建 Hello World : "The

gcc - 在 CMake 中使用 -isystem 而不是 -I

tfs - 如何获取 TFS 构建状态通知?

ios - 使用没有代码设计的 xcodebuild 构建 iOS 应用程序

eclipse - 什么是最好的 Scala 构建系统?