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

查看:161
本文介绍了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_MACHINE\SOFTWARE\Microsoft.NETFramework\v3.5\AssemblyFoldersEx\MyAssemblies(如博客条目通知)将该文件夹添加到注册表中

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_MACHINE\SOFTWARE\Microsoft.NETFramework\v3.5\AssemblyFoldersEx\MyAssemblies (like blog entry adviced)

如何告诉Visual Studio其中的SharePoint dll是什么?

How could I tell Visual Studio where SharePoint dlls are?

推荐答案

您可以从共享点获取DLL从14个配置单元中的ISAPI文件夹:

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

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI

只需将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服务器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.

还要确保你有一个有点grunty机器。我正在使用带有8 gig ram,SSD的i7,配备4个内核分配给VM,并且运行顺利。

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天全站免登陆