用于 64 位操作系统的 C#? [英] C# for 64bit OS?

查看:32
本文介绍了用于 64 位操作系统的 C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的编译针对 Windows 64 位进行优化?

How can I make my compilation optimized for Windows 64 bit?

推荐答案

根据所选的架构自动构建托管项目 => 在 AMD64 上创建的默认 C# 项目将是 AMD64,X86 上的 X86.默认情况下,本机始终为 32 位.

A managed project is automatically built according to the architecture selected => default C# project created on AMD64 will be AMD64, X86 on X86. The native one is always 32-bit by default.

要明确设置平台:

1 打开解决方案资源管理器,选择解决方案,右键单击->配置管理器.

1 open the solution explorer, select solution, right click->Configuration Manager.

2 转到活动解决方案平台",单击新建".

2 go to 'Active Solution Platform', click New.

3 在出现的新解决方案平台"对话框中选择新平台,比如安腾.将Copy Settings From"设置为Any CPU",这是Active Solution Platform"中的默认设置.

3 in the 'New Solution Platform' dialog that comes up select the new platform say Itanium. Set 'Copy Settings From' to 'Any CPU' which was the default setting in the 'Active Solution Platform'.

4 单击确定.

这是来自 WebLog

这篇关于用于 64 位操作系统的 C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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