如何使用 Visual Studio 2010 在 Vista 32 位基础上开发 Sharepoint 2010
我的电脑是 Vista 32 位。我必须为 Sharepoint 2010 Foundation 开发自定义字段。当我尝试为 Sharepoint 2010 创建项目时,Visual Studio 显示消息,提示我需要安装 Sharepoint 2010。我在系统要求中了解到 Sharepoint 2010 有 64 位操作系统。
我可以使用外部 Sharepoint 2010 服务器开发自定义字段,还是可以在 Windows Vista 32 位上安装 Sharepoint 2010 Foundation?
I have PC with Vista 32-bit. I must develope custom field for Sharepoint 2010 Foundation. When I try to create project for Sharepoint 2010, Visual Studio show message that I need to instal Sharepoint 2010. I have read that Sharepoint 2010 has 64-bit OS in system requirements.
Can I develope custom field using external Sharepoint 2010 server or can I instal Sharepoint 2010 Foundation on Windows Vista 32-bit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可以,您将无法在 32 位计算机上开发 SharePoint 组件。您需要使用 64 位版本的 Windows,然后在 PC 上本地安装 SharePoint 2010 或使用也运行 64 位操作系统的虚拟机。
No, you will not be able to develop SharePoint components on a 32-bit machine. You would need to use a 64-bit version of Windows and then either install SharePoint 2010 locally on the PC or use a virtual machine also running a 64-bit operating system.
据我所知,您无法在 Vista 64 位上执行此操作,但可以在 Windows 7 64 位上执行此操作,但我不一定推荐这样做。最好的选择是 Windows Server 64 位,我建议匹配您的生产环境。
如果这不可能,您可能无法使用 Visual Studio 2010 中内置的 SharePoint 2010 项目 - 尽管我有兴趣证明事实并非如此。
从好的方面来说,您仍然应该能够使用 Codeplex 上提供的名为 WSP Builder 的第三方 Visual Studio 扩展(http://wspbuilder.codeplex.com/releases/view/30858 - 确保您获得 2010 Extensions beta 版本)并使用 WSP Builder 项目为 SharePoint 进行开发。然后,您将能够创建用于部署到测试环境的 WSP。
唯一需要注意的是,您必须将必要的 DLL 从 SharePoint 服务器带到本地 PC,以便您可以将它们添加为项目的引用,以便您可以使用 SharePoint API。
总的来说,我建议为 SharePoint 获取合适的开发环境,因为与 WSP Builder 相比,Visual Studio 2010 项目非常棒。它还可以带来更好的开发和测试体验。
As far as I know you can't do it on Vista 64-bit but you can on Windows 7 64-bit though I don't necessarily recommend this. Your best bet would be on Windows Server 64-bit and I would recommend matching what ever your production environment is.
If this is not possible you may be out of luck with the SharePoint 2010 projects built into Visual Studio 2010 - though I'd be interested in being proven otherwise.
On the plus side you still should be able to use a third party Visual Studio extension called WSP Builder available on Codeplex (http://wspbuilder.codeplex.com/releases/view/30858 - make sure you get the 2010 Extensions beta version) and use the WSP Builder projects to develop for SharePoint. You will then be able to create WSPs for deploying to a test environment.
The only caveat to all of this is you will have to bring the necessary DLLs from a SharePoint server to your local PC so you may add them as references to your projects so that you may use the SharePoint API.
Overall I recommend getting a proper development environment for SharePoint because the Visual Studio 2010 projects are amazing compared to WSP Builder. It also makes for a much better development and testing experience.