在sharepoint开发中,我需要把服务器上的Microsoft.SharePoint.Library.dll COPY到我本机相应的目录下。但我通过搜索却未发现这个dll于是我上网找了下。中文没有什么结果,于是尝试英文,发现
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/95511fa3-4995-4cab-bef7-922f5dd31fc8个上有一段很有用,原文如下:
Wow, Ishai Sagi, you're the people tries to think in a box, not out of the box.
To Manuel5, even Sharepoint cannot run on a non-sharepoint-server, you still can get the Microsoft.Sharepoint.Library.dll. How?
C:\Windows\Assembly is just like any other folder. It's just speciallized so any other user, or even software developer, can't barely know where is the assembly and freely copied it all.
But you still can copy it. Sounds great isn't it?
Open Command Prompt. And point the folder into C:\Windows\Assembly.
C:\Users\Administrator>cd "C:\Windows\Assembly"
Because of Microsoft.Sharepoint.Library.dll is a MSIL Assembly, then you will point it to GAC_MSIL folder. type DIR again, and you'll see many of Assemblies folder. Point it into Microsoft.Sharepoint.Library.dll folder. In this folder, there's a folder too.., I don't remember exactly the name, coz full of hexa number. Just type DIR again and point again into that folder. Type DIR, and...........................
And BINGO! This is what you want, and you can keep it, or copy it into any folder using COPY command.
大意就是通过命令行的方式到c:\\windows\assembly目录下找,如果有相应的名称,再用cd microsoft.sharepoint.library的方法进入下级目录,下真到最终的DLL出现为此。最后用copy Microsoft.SharePoint.Library.dll c:\的方法就可以把东西Copy出来了。然后再复制到本机即可。
To Manuel5, even Sharepoint cannot run on a non-sharepoint-server, you still can get the Microsoft.Sharepoint.Library.dll. How?
C:\Windows\Assembly is just like any other folder. It's just speciallized so any other user, or even software developer, can't barely know where is the assembly and freely copied it all.
But you still can copy it. Sounds great isn't it?
Open Command Prompt. And point the folder into C:\Windows\Assembly.
C:\Users\Administrator>cd "C:\Windows\Assembly"
Because of Microsoft.Sharepoint.Library.dll is a MSIL Assembly, then you will point it to GAC_MSIL folder. type DIR again, and you'll see many of Assemblies folder. Point it into Microsoft.Sharepoint.Library.dll folder. In this folder, there's a folder too.., I don't remember exactly the name, coz full of hexa number. Just type DIR again and point again into that folder. Type DIR, and...........................
And BINGO! This is what you want, and you can keep it, or copy it into any folder using COPY command.
大意就是通过命令行的方式到c:\\windows\assembly目录下找,如果有相应的名称,再用cd microsoft.sharepoint.library的方法进入下级目录,下真到最终的DLL出现为此。最后用copy Microsoft.SharePoint.Library.dll c:\的方法就可以把东西Copy出来了。然后再复制到本机即可。
记录下来,以备它用。