无需本地服务器安装的 SharePoint 2010 开发 [英] SharePoint 2010 development without local server installation

查看:16
本文介绍了无需本地服务器安装的 SharePoint 2010 开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不安装本地 SharePoint 的情况下开发 SharePoint 2010 Web 部件.我的意思是我不想安装 SharePoint 服务器,因为我不需要它,而且它太大了.

I'd like to develop SharePoint 2010 web parts without local SharePoint installation. I mean I don't want to install SharePoint server because I don't need it and it's so huge.

我发现了一些关于此的问题,但我仍然无法使其正常工作.我找到了一个关于此的博客条目:http://techblog.hk.agenda-asia.com/2010/10/29/create-sharepoint-project-without-install-sharepoint-server/

I found some questions about this, but I still can't get it working. I found a blog entry about this: http://techblog.hk.agenda-asia.com/2010/10/29/create-sharepoint-project-without-install-sharepoint-server/

我尝试按照该博客中的说明进行操作.现在我可以使用 Visual Studio 创建 SharePoint 2010 项目.问题是 Visual Studio 找不到 SharePoint dll.即使我将它们复制到本地目录并使用 HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFrameworkv3.5AssemblyFoldersExMyAssemblies 键将该文件夹添加到注册表(如建议的博客条目)

I tried to follow the instructions from that blog. Now I can create SharePoint 2010 projects with Visual Studio. Problem is that Visual Studio cannot find SharePoint dlls. Even if I copy them to local directory and add that folder to registry with key HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFrameworkv3.5AssemblyFoldersExMyAssemblies (like blog entry adviced)

如何告诉 Visual Studio SharePoint dll 在哪里?

How could I tell Visual Studio where SharePoint dlls are?

推荐答案

您可以从 14 hive 中的 ISAPI 文件夹中的 sharepoint 获取 DLL:

You can get the DLLs from sharepoint from the ISAPI folder in the 14 hive:

C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI

C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI

只需将 dll 复制到您的本地计算机并在您的项目中引用它们即可进行编译.

Just copy the dlls to your local computer and reference them in your project to compile.

您会意识到在调试/部署项目时会非常痛苦,因为您将无法在本地测试代码.

You will realise it's a great pain when you are debugging/deploying your projects as you wont be able to test your code locally.

更新:Sharepoint 2010 评估机不再可用.所以下面的信息不再是最新的.现在最好的选择是从 MSDN 获取 Sharepoint 2010,如果您显然有订阅.

UPDATE: The Sharepoint 2010 Evaluation machine is not available anymore. So the information bellow is not current anymore. The best option now is to get Sharepoint 2010 from MSDN, if you have a subscription obviously.

我的建议是获取 Microsoft 的 2010 信息工作者演示和评估虚拟机 (SP1):

My advice is to get Microsofts 2010 Information Worker Demonstration and Evaluation Virtual Machine (SP1):

http://www.microsoft.com/en-au/download/details.aspx?id=27417

这是一个带有 Sharepoint 2010 的虚拟机,它带有您需要的所有工具,例如 infopath 和预安装的 Visual Studio.

It's a virtual machine with Sharepoint 2010, and it comes with all the tools you need like infopath, and visual studio pre-installed.

唯一的问题是你需要 2008 server r2 来运行它.

The only problem is you will need 2008 server r2 to run it.

我已经成功地将机器转换为 VMWare 并且我很高兴按照这篇文章中的说明在 Windows 7 下运行它:

I have managed to successfully convert the machine to VMWare and I am happily running it under windows 7 by following instructions from this post:

http://sharepointyankee.com/2010/06/03/converting-the-sharepoint-and-office-2010-information-worker-virtual-machines-to-vmware-from-hyper-v/

请务必阅读该帖子的评论,因为有几个问题.

Make sure you read the comments on that post as there are a couple of gotchas.

还要确保您有一台有点粗糙的机器.我正在使用带有 8 gig ram、SSD、分配给 VM 的 4 个内核的 i7 运行它,并且运行流畅.

Also make sure you have a somewhat grunty machine. I am running it with an i7 with 8 gig ram, SSD, with 4 cores allocated to the VM and it runs smooth.

这篇关于无需本地服务器安装的 SharePoint 2010 开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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