[英]C# in Visual studio 2012. How do I make it debug in 64 bit mode?
Hi I have a simple C# solution. 嗨,我有一个简单的C#解决方案。 It contains a single Exe project and 2 Dll projects. 它包含一个Exe项目和2个Dll项目。
All of the code is compiled to "AnyCPU". 所有代码都编译为“AnyCPU”。 But when I debug it, it runs as 32 bit. 但是当我调试它时,它运行为32位。 How do I fix this? 我该如何解决?
I can change the solution to compile to x64, But I think it misses the point. 我可以将解决方案更改为编译为x64,但我认为它忽略了这一点。
(Windows 7, 64 bit. Visual Studio 2012 ultimate) (Windows 7,64位.Visual Studio 2012终极版)
Thanks 谢谢
Right click your project in solution explorer. 右键单击解决方案资源管理器中的项目。
Click properties. 单击属性。
Go to the build tab. 转到构建选项卡。
Ensure you have All configurations
and the Any CPU
platform name selected at the top of the properties page. 确保在属性页面顶部选择了All configurations
和Any CPU
平台名称 。
Ensure the platform target matches the selected platform name above, AnyCPU
(yes, these can get out of sync). 确保平台目标与上面选定的平台名称 AnyCPU
(是的,这些可能会不同步)。 Deselect Prefer 32-bit
. 取消选择Prefer 32-bit
。
Go. 走。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.