How to develop SP Webparts without SP Server installed on the dev machine ? RRS feed

  • Question

  • Well, I've a server with Sharepoint installed.Also I've a workstation for development purposes with visual studio 2010.However when I try to create a new SP server I receive a message like "A Sharepoint server is not installed on this computer".

    So, I am using a trial version of Visual Studio installed on the server and it's works fine.But it's about to expire.I Don't want to believe that's mandatory to develop apps using the server as dev machine because the SP server must be installed.

    Plz, can someone tell me that I am wrong and give me coordinates ? ty in advance.

    Wednesday, July 27, 2011 1:59 PM


  • whatever Sharepoint is meant, in some cases it is possible to develop Sharepoint-related functionality without Sharepoint installed. But most probably you won't be able to test it. The idea is to install Microsoft.SharePoint.dll into the GAC and reference it from here (if you need other assemblies - you need to install them as well). After that you can compile you project. But again most probably you won't be able to run and test it if you have calls to Sharepoint API.

    Blog -
    CAML via C# -
    Wednesday, July 27, 2011 7:28 PM
  • The simple answer is to install SharePoint on your dev machine. You can get write code and get code to build by just copying the SharePoint dlls, but you can't run or test or debug it. Equally you can install Visual Studio on your live server, but you really don't want to be developing against that for many reasons.

    The easiest and best way is to have a seperate SharePoint install for development, a good way of managing this is to create a virtual machine with SharePoint, SharePoint Designer, Visual Studio etc installed, this makes it easy to try stuff out and roll back if needed.

    Thursday, July 28, 2011 9:13 AM

All replies