Mahmoud Farahat is right, you must install Visual Studio on the same computer on which SharePoint is installed, and make sure that all DLL-specific DLL files are registered in the GAC.
With SP2013, Microsoft no longer allows the installation of SP for anything other than Windows 2012 and 2008R2. 2010 allowed you to install it on Windows 7, which, as I imagine it, is that development locators work, or at least some versions of Windows OS. You had to change the configuration setting in order to be able to do this, you can watch it, but are no longer relevant, since it is impossible. I installed SP2010 on my local laptop and it uses a powerful machine and makes it run horribly for everything. In my opinion, using a local machine for development is simply not practical because SharePoint is just so hungry. I had the launch of 2010 as a locally hosted virtual machine in Virtual Box, and this work is pretty good, so for every developer there is the opportunity to have a virtual machine locally. Our IT users did not like the idea of ββplacing servers in the corporate domain anywhere except for centralized access, so there was no choice for us, but if it is allowed in your policies, then it will work fine.
So, our 2013 development environment that I am setting up is located on a powerful farm with one server, that is, on the application, on the Internet, and on all virtual servers (acceptable for dev). We run multiple developer connections to a single SharePoint development server through Remote Desktop. Make sure that multiple RDP sessions are enabled in Group Policy, http://technet.microsoft.com/en-us/library/cc784146(v=ws.10).aspx . SP2013, VS2012 and SPD oh and IIS8 (Windows 2012) are installed on this server.
Perhaps both are developed in the same web application (SharePoint talks about ISS application pools), but you can only debug one session at a time because devenv.exe (Visual Studio) joins w3ps.exe (IIS application pool) to be able to deploy, install, and activate each of your designed features (more SP talk). Therefore, as soon as one developer connected to the web application for debugging, someone else will receive an error message that there is already a debugger in the process.
There are two solutions, in turn during debugging, this works, but even in a small team of two (there can be no less) this is a big drawback, and especially when launching the debugger can take a couple of minutes even to a powerful server. So what is the other option? Well, you need to create a process for each developer for an individual connection. This applies to web applications in SharePoint. You can achieve all this through central administration, but if you have several developers who do this in the GUI, it can be a little boring for the administrator. Therefore, to achieve the same result using a script, run the following code in PowerShell:
Add-PsSnapin Microsoft.SharePoint.PowerShell New-SPWebApplication -ApplicationPool "SharePoint β DEV1" -Name "SharePoint β DEV1" -ApplicationPoolAccount (Get-SPManagedAccount "yourdomain\service.account") -Port 81 New-SPWebApplication -ApplicationPool "SharePoint β DEV2" -Name "SharePoint β DEV2" -ApplicationPoolAccount (Get-SPManagedAccount "yourdomain\service.account") -Port 82 New-SPSite -Url http:
It is assumed that you are using NTLM authentication and reading http://technet.microsoft.com/en-us/library/ff607931.aspx to make sure that the New-SPWebApplication command has the appropriate settings for your environment. The code, as is, will also create a content database with the guid suffix, which may not be as clear, so indicate if you want to.
This creates a SiteCollection for each developer and site based on the Site Site template for each developer. Copy each line of a separate line for other developers.
We saved the default web collection on port 80 for the collaborative site, where we deploy all our features for the final test of the combination.
Each developer must edit their Project properties in Visual Studio so that the properties of their site URLs match their individually assigned port.
Be careful when combining projects in your Source control, as this property will be specified in the csproj file, and each developer will place their own port number in the repository.