I am trying to workup an automated tool for SharePoint interaction through a Powershell script. Am running into a SharePoint.dll not found issue and upon looking it up(including prev开发者_StackOverflowious posts in StackOverflow), it seems its available in the server. I do not have access to a Sharepoint installation at the moment. Is there some place I could download it or if any one had access to a copy can it be shared?
Thanks Barun
Just to clarify - a copy of Microsoft.SharePoint.dll will allow you to reference and compile against it but it won't actually work unless its running on a machine with SharePoint properly installed.
A few options for you.
You can download, for free Windows SharePoint Services 3.0 - but it needs to run on a Windows Server OS (2003+).
You can download (for free again) Windows Server 2010 Foundation and get it running on Windows 7 64bit client OS for a development environment.
You can download a 30 day trial of MOSS on a preconfigured VHD - basically a complete pre-configured virtual server - but you need Hyper-V or VMWare Server running on a 64 bit CPU to run this virtual server.
There is a hack to get WSS running on Vista - but its unsupported and the licensing/legal situation is unclear - very probably its in breach.
You could use SharePoint's web services then you won't need the dll or access to the SharePoint server apart through the web services - which assuming you can browse it you should be able to get.
UPDATE: Option (3) is no longer available. As workaround, you could download a VHD with SQL Server 2008 R2 on Windows Server 2008 R2 SP1 Standard (x64), and install SharePoint 2010 on it.
No, you cannot download it from any 3rd party sites. It is not licensed that way. If you own a copy of Windows Server (2003 or 2008), you will be able to download WSS 3.0 from Microsoft's public download location. From this, you can get Microsoft.SharePoint.dll.
-Oisin
Microsoft.SharePoint.dll itself epends on lots of other DLL's and a Database underneath SharePoint. You must have SharePoint to test against it.
But just yesterday I ran on some stuff called SharePoint testing using Typemock isolator. What it does is it fakes SharePoint objects without needing all that database and other stuff. There is a nice presentation available. Havent tried myself, but maybe that leads you on the path. See if it helps you.
There is NuGet package for the Sharepoint client. This is the fastest way....
精彩评论