9

I've a Sharepoint 2013 installation in a Server 2008 machine. My development machine runs Windows 7 and I've got Visual Studio 2013 installed.

I want to create a sharepoint 2013 project but I have this error:

The required version of sharepoint foundation 2013 or sharepoint server 2013 is not installed on this system. sharepoint must be installed on the local system

Do I have to install SP locally? Can't i just develop against a remote installation?

3 Answers 3

9

You can create SharePoint 2013 project in your Visual studio 2013 without installing SharePoint on your local machine.

Please follow below steps : Go to the server where SharePoint 2013 is installed and follow steps from 1 to 3

  1. Go to Run and type "regedit"
  2. Navigate towards HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office
  3. Right click on 15.0 and click Export. Save the exported file

Now go to your machine where sharepoint is not installed and follow below steps:

  1. Now open Registry on your machine
  2. Import the 15 directory which was exported from SharePoint server
  3. Open Powershell
  4. Run this command

    Set-ItemProperty -Path "HKLM:\Software\Microsoft\Shared Tools\web server extensions\15.0\" -Name "Location" -Value "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\"

Now open visual studio 2013 and you will be able to create SharePoint 2013 project without error.

4
  • I set this up perfectly thanks to your advice - and then installed VS 2013 Update 3, and now VS won't let me create or open a SharePoint project. Has anyone got this to work with Update 3?
    – Alyce
    Aug 25, 2014 at 5:34
  • After Modified the registry VS2013 is working fine thank you kaplesh
    – user45349
    Aug 24, 2015 at 8:02
  • In my case copying the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office hive wasn't necessary. Also, manually adding values into HKLM:\Software\Microsoft\Shared Tools\web server extensions\15.0\ using regedit didn't do the trick, but using powershell did. I don't get how is this different from using regedit directly, but it worked. Thanks.
    – Arthur
    Mar 24, 2016 at 12:08
  • This worked fine (with the addion of @Anna Komissar. Is there a way to add Workflows in the new created project? At the moment Visual Studio complains that there is no Site URL. I tried to enter some URL but I always got the message, that there remote connections are not possible... -thx
    – Dave
    Feb 22, 2017 at 14:27
3

I perfectly agree with Kalpesh answer,but i have to admit that you need one more PowerShell command: Set-ItemProperty -Path "HKLM:\Software\Microsoft\Shared Tools\web server extensions\15.0\" -Name "SharePoint" -Value "Installed" After that you need to run from administrator your Visual Studio 2013 and all will be fine.

-1

In my experience, you can only develop (including debugging) on the same machine where SP is installed. If you just want your code to be available outside that machine, you can use Visual Studio Online (formerly TFS) or something like Tortoise SVN

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.