简体   繁体   English

Visual Studio 2012中的C#。如何在64位模式下进行调试?

[英]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 configurationsAny 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.

相关问题 数据提示(在调试模式下将鼠标 hover 放在变量上)在 Visual Studio 2012 / Win 7 64bit 中不起作用 - Datatips (mouse hover over variables in debug mode) not working in Visual Studio 2012 / Win 7 64bit 在Visual Studio 2012中将C#对象添加到VB Web项目中。获取C#模板吗? - adding C# objects to a VB web project in Visual Studio 2012. Getting C# templates? Selenium WebDriver和ChromeDriver-C#Visual Studio2012。无法调试 - Selenium WebDriver with ChromeDriver - C# Visual Studio 2012. Debugging impossible 如何在Win 7 visual Studio 2012中的C#中禁用#if DEBUG - how to disable #if DEBUG in C# at Win 7 visual studio 2012 如何使用Microsoft Visual Studio 2013在C#中以混合模式调试? - how to debug in mixed mode in C# with Microsoft Visual Studio 2013? 我已经使用Visual Studio Express C#为2010 Office(64位)编写了Excel代码,如何在2010 Office(32位)上运行它? - I have written excel code for 2010 Office (64 bit) with visual studio express c#, how to run it on 2010 office (32 bit)? 如何在Visual Studio C#上制作输出标签 - How do I make a Output Label on Visual Studio C# 如何从Visual Studio以调试模式运行NUnit? - How do I run NUnit in debug mode from Visual Studio? 如何将64位用户控件放入Visual Studio 2012的工具箱中? - How can I put a 64-bit user control into Visual Studio 2012's toolbox? Visual Studio 2010/2012:32位还是64位? - Visual Studio 2010/2012: 32 or 64 bit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM