简体   繁体   English

Visual Studio:在“调试”模式下生成,但文件仍在“发布”文件夹中生成

[英]Visual Studio: Building in Debug mode but the files still built in Release folder

I am working on a solution in Visual Studio. 我正在研究Visual Studio中的解决方案。

I changed the build mode of the solution to be Release , and all output files of the solution were built in example\\example\\Release\\ folder. 我将解决方案的构建模式更改为Release ,并且该解决方案的所有输出文件都构建在example\\example\\Release\\文件夹中。 That's expected and fine. 那是预期的,很好。 Then again I changed the mode to be Debug , but the files are still built in example\\example\\Release\\ folder. 然后我再次将模式更改为Debug ,但是文件仍内置在example\\example\\Release\\文件夹中。

I need the output files to be built in bin\\x86\\Debug\\ folder. 我需要将输出文件构建在bin\\x86\\Debug\\文件夹中。 How can I achieve this? 我该如何实现? Is the solution corrupted or something like that? 解决方案是否已损坏或类似问题? Should I recreate the solution? 我应该重新创建解决方案吗? Any way to find the reason for this behaviour? 有什么办法找到这种行为的原因吗?

如果解决方案中存在多个项目,这些项目具有不同的输出文件夹和相关性,则手动将输出文件夹从默认文件夹更改为其他或预期的文件夹即可解决此问题。

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

相关问题 我们是否需要在debug / release文件夹中添加文件以在Visual Studio中创建安装程序? - Do we need to add the files in the debug/release folder to create a setup in Visual Studio? Visual Studio发布使用调试模式而不是发布 - Visual Studio publish uses debug mode instead of release Visual Studio Express 2012不在Release文件夹中构建exe - Visual Studio Express 2012 not building exe in Release folder 在发布模式下发布 DLL,但 debug=true - Publishing DLL built in Release Mode but with debug=true Visual Studio:从其他文件夹以调试模式运行 - Visual Studio: run in debug mode from different folder 对于在Visual Studio中用于调试和发布模式的配置文件,有哪些建议? - What are the recommendations to deal with configuration files in visual studio for debug and release modes? Visual Studio - 调试与发布 - Visual Studio - Debug vs Release Visual Studio 2010 认为它处于调试模式(但它设置为发布模式) - Visual Studio 2010 Thinks it's in Debug Mode (but it's set to Release mode) 如何在发布模式下处于活动状态时以调试模式关闭Visual Studio中的DocFX? - How to switch off DocFX in visual studio in debug mode while active in release mode? 在调试模式下构建的布尔值与发布模式下的布尔值不同 - bool value different when built in debug mode than in release mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM