How to open, edit, create SharePoint projects in Visual Studio not on a SharePoint server? I would also like to publish projects (need .wsp packages), debug remotely. Is such a non-standard solution possible?

The ball is not installed, OS - Win10. VisualStudio 2015. OfficeTools installed

The current problem - the studio swears (when opening, when publishing):

The type or name of the namespace "SharePoint" does not exist in the namespace "Microsoft"

and so on everything related to the ball

  • Add libraries to References. And everything will work fine. - nick_n_a
  • If SSOM is used, it will not work - Alexander Ulmaskulov

2 answers 2

You can use CSOM (Client side object model), this is a wrapper of SharePoint web services, debugging will be available. Maybe it will be useful to you in some scenarios. Just do not confuse with JSOM. Examples of working with CSOM from MSDN.

  • one
    Thanks for the answer - islamerbolat

In this case, you need to copy the SharePoint libraries missing in the project's References and add them manually.

This will give you the opportunity to build and publish the project, but there will be no possibility to debug this project.

  • one
    Thanks for the answer - islamerbolat
  • If there are no libraries at hand, you can take from NuGet: nuget.org/packages/SharePoint - Alexander Ulmaskulov