为什么在Visual Studio 2012中禁用了“首选32位"复选框? [英] Why is the checkbox 'Prefer 32-bit' disabled in Visual Studio 2012?

查看:598
本文介绍了为什么在Visual Studio 2012中禁用了“首选32位"复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一种情况,我想将首选32位设置为true.但是在Visual Studio 2012中,它显示为已禁用.而且无论我做什么,都不会启用.

I came across a situation in which I would like to set the Prefer 32-bit to true. But in Visual Studio 2012, it is showing as disabled. And no matter what I do it doesn't get enabled.

我读到任何CPU 首选32位是所有新项目的默认值.因此,我是否应该假定尽管将其禁用,但将其设置为true?那么如何将其设置为任何CPU ?

I read that Any CPU with Prefer 32-bit is the default value for all new projects. So, should I assume that although it is disabled it is set to true? Then how can you set it to be just Any CPU?

In What AnyCPU Really Means As Of .NET 4.5 and Visual Studio 11 and in many other posts and questions here in Stack Overflow it says:

总体而言,/platform C#编译器开关现在有五个选项:x86,Itanium,x64,anycpu和anycpu 32bit首选

overall, there are now five options for the /platform C# compiler switch: x86, Itanium, x64, anycpu, and anycpu 32bit preferred

此外,我有一些同事向我提到过,过去已启用此复选框(也许是错误的?).

What's more, I have some collegues that have mentioned to me that in the past that checkbox was enabled (maybe they are wrong?).

为什么首选32位复选框被禁用,如何重新启用它?

Why is the Prefer 32-bit checkbox disabled, and how can I enable it again?

我的处理器是64位的,并且我已将Update2应用于Visual Studio 2012.

My processor is 64-bit, and I have applied the Update2 to Visual Studio 2012.

推荐答案

假定您有一个可执行项目,那么如果将目标平台更改为.NET 4.5,则应该启用它.

Assuming you've got an executable project, then if you change your target platform to .NET 4.5, it should become enabled.

这是仅适用于.NET 4.5的内容,并且仅对可执行文件启用.

It's a .NET 4.5-only thing, and it's only enabled for executables.

这篇关于为什么在Visual Studio 2012中禁用了“首选32位"复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆