gpt4 book ai didi

c# - 如何让 VS 2010 默认创建 x64 项目?

转载 作者:行者123 更新时间:2023-12-02 22:35:39 24 4
gpt4 key购买 nike

我有一个完整的 x64 解决方案,每次我创建一个项目时,它默认是一个 x86 项目,我必须手动将它转换为 x64。有没有办法让这个默认?

最佳答案

在 C# .NET 项目和解决方案中,默认目标平台应该是“任何 CPU”而不是 x86,这意味着编译后的 IL 能够在经典的 x86 和 x64 系统上运行而无需任何更改,并且处于 native 模式。 .

编辑

抱歉,我刚刚注意到 visual studio 2010 中的行为发生了变化,请查看 here有关此选择的原因的更多信息...

So how is Visual Studio 2010 and .NET 4.0 changing? We are not changing anything here in the CLR or compilers - they continue to support both modes. However, after discussing these issues, VS project system team has agreed to make EXE projects default to the x86 platform in VS 2010.

关于c# - 如何让 VS 2010 默认创建 x64 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11483435/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com