为什么在Visual Studio 2012中禁用了“首选32位"复选框?

编程入门 行业动态 更新时间:2024-10-26 08:25:17
本文介绍了为什么在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?

在 从.NET 4.5和Visual Studio 11开始,AnyCPU的真正含义 ,以及在Stack Overflow中的许多其他帖子和问题中,它说:

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位"复选框?

本文发布于:2023-11-02 14:00:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552596.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:复选框   首选   Studio   Visual   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!