简体   繁体   English

Visual Studio生成调试目标.exe文件名不匹配

[英]Visual Studio build debug target .exe file-name mismatch

I am trying to build and run one demo in Visual Studio 2017. But with compilation, the debug mode target gets the name with 'D' suffix instead of without it. 我正在尝试在Visual Studio 2017中构建和运行一个演示。但是通过编译,调试模式目标将获得带有'D'后缀的名称,而不是没有后缀的名称。 (Specifically PDIconsoleD.exe instead of PDIconsole.exe) But when trying to run project already built project, it cannot find the file, because it looks for the name without this suffix (PDIconsole.exe). (特别是PDIconsoleD.exe,而不是PDIconsole.exe)。但是,当尝试运行已构建项目的项目时,它找不到该文件,因为它查找的名称没有此后缀(PDIconsole.exe)。

I tried to run the file from the file browser, it got error, that I would like to debug. 我试图从文件浏览器运行文件,但出现错误,我想调试。

Many thanks 非常感谢

PL. PL。

Go to your project properties and check what is target name on different configurations. 转到项目属性,并检查不同配置上的目标名称是什么。 It might be that on debug mode it is changed to add suffig of 'D' so just delete that so it will be the same name for debug and release. 可能是在调试模式下将其更改为添加后缀'D'因此只需删除它即可,以便它与调试和发行版同名。

性质

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM