我想在 64 位模式下运行我的视觉工作室 [英] I want run my visual studio in 64 bit mode

查看:16
本文介绍了我想在 64 位模式下运行我的视觉工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 .NET 3.5 中编写我的 Web 服务,在此我必须访问 SharePoint 2010 数据,但 SharePoint 要求我的应用程序使用 64 位模式.Visual Studio 默认为 32 位模式.如何在 64 位中运行我的 Visual Studio 2013?

这是我的任务管理器显示的:

我想我需要这个是 64 位的,我现在应该怎么做?

解决方案

2021 年更新

微软刚刚宣布 Visual Studio2022 年将随附 64 位版本的 IDE,因此您可以加载超大型解决方案,并且不会限制您对 32 位应用程序施加的 2GB 限制用于 Visual Studio 本身.


Visual Studio 本身是一个 32 位应用程序,不能在64 位模式"下运行.但是,Visual Studio 可以创建 32 位和 64 位应用程序,并且调试器可以连接到这两种类型的可执行文件.

Visual Studio 不需要在特定模式下运行,但它必须在支持 64 位的计算机上运行,​​运行 64 位版本的 Windows.

您的 Visual Studio 项目可能应设置为 64 位或 AnyCPU,以便您连接到 SharePoint.为此,请按照此处所述设置项目的目标平台.

<块引用>

  1. 在菜单栏上,选择构建"、配置管理器".
  2. 在活动解决方案平台"列表中,为解决方案选择一个 64 位平台,然后选择关闭"按钮.

<块引用>

  1. 如果您想要的平台没有出现在活动解决方案平台列表中,请选择新建.出现新建解决方案平台"对话框.2. 在类型或选择新平台列表中,选择 x64.3. 如果要从当前平台配置复制设置,请选择它,然后选择确定"按钮.

<块引用>

注意:

<块引用>

如果您为配置赋予新名称,则可能需要修改项目设计器中的设置以针对正确的平台.

<块引用>

针对 64 位平台的所有项目的属性都已更新,并且项目的下一个构建版本将针对 64 位平台进行优化.

I am writing my web service in .NET 3.5, in this I have to access SharePoint 2010 data, but SharePoint requires 64-bit mode for my application. Visual Studio by default in 32-bit mode. How can I run my Visual Studio 2013 in 64-bit?

This is what my task manager shows:

I think I need this to be 64-bit, what should I do now?

解决方案

Update 2021

Microsoft just announced that Visual Studio 2022 will ship with a 64-bit version of the IDE so you can load super large solutions and won't constrain you to the 2GB limit imposed on 32-bit applications for visual studio itself.


Visual Studio itself is a 32-bit application and cannot be run in "64-bit mode". However, Visual Studio can create both 32-bit and 64-bit applications and the debugger can connect to both types of executables .

There is no need for Visual Studio to run in a specific mode to do so, but it must run on a 64-bit capable computer, running the 64-bit version of windows.

It may be that your Visual Studio Project should be set to 64-bit or to AnyCPU for you to connect to SharePoint. To do so, set the target platform of the project as described here.

  1. On the menu bar, choose Build, Configuration Manager.
  2. In the Active solution platform list, choose a 64-bit platform for the solution to target, and then choose the Close button.

  1. If the platform that you want doesn’t appear in the Active solution platform list, choose New. The New Solution Platform dialog box appears. 2. In the Type or select the new platform list, choose x64. 3. If you want to copy the settings from a current platform configuration, choose it, and then choose the OK button.

Note:

If you give your configuration a new name, you may have to modify the settings in the Project Designer to target the correct platform.

The properties for all projects that target the 64-bit platform are updated, and the next build of the project will be optimized for 64-bit platforms.

这篇关于我想在 64 位模式下运行我的视觉工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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