When and why Visual Studio creates the “x86” subfolder inside “bin” after build?

久未见 提交于 2019-12-22 09:49:45

问题


I have a solution with many projects, containing 3 executable projects. All of my projects are configured to target "x86" platform, in the solution configuration manager I've even deleted the others like "Mixed" and "Any CPU" (this is becuase I'm using some third party libraries which are restricting me to stick with x86). All 3 executable projects are simple WinForms applications built with C#, targetting .NET 4 full profile.

Now when I build one of my executable projects, its output is built in "bin/x86/Release" directory. When I build one other executable project, its output is built in "bin/Release", without the "x86" subfolder.

Why is this - at first glance - inconsistency?

UPDATE

I need to fix it because I'd like to run some scripts after succesful builds, and they will expect the output in a consistent folder structure.


回答1:


If you go to Project > Properties > Build in Visual Studio you will see your target platform (among other settings).

This folder is created if your build target is 32bit (X86), or 'Any CPU'

Finally, check your 'Output' Folder: Projects > Properties > Output Path



来源:https://stackoverflow.com/questions/24940659/when-and-why-visual-studio-creates-the-x86-subfolder-inside-bin-after-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!