My small team cannot afford to purchase the full version of Visual Studio 2012. Thankfully, Microsoft provides a free ‘Shell’ version that can be used with extensions to create a standalone IDE.
First, you will need to download the Microsoft Visual Studio 2012 Shell (Isolated) Redistributable Package and install it on your system (this will require a reboot).
Once that has completed you can install the Microsoft Visual Studio 2012 Shell (Integrated) Redistributable Package
At this point you will want to install Visual Studio 2012 Update 2, this update is required for many of the following steps.
At this point you will have a copy of Visual Studio 2012 installed; however, it will not have any languages installed into it. Since we will be developing for PHP, we need to install a PHP editor – we chose PHP Tools. You should install this extension (or another PHP extension of your choice) now.
Next, you will want to install Team Explorer for Visual Studio 2012. This will add the ability to connect to Team Foundation Service to your Visual Studio 2012 installation.
Finally, in order to use Git with Team Explorer/Team Foundation Service – we need to install Visual Studio Tools for Git. This step is a bit tricky because for some reason the ability to install Visual Studio Tools for Git is not available with the Shell version of Visual Studio 2012. I will show you how to get around that limitation:
Preparing Visual Studio Tools for Git for Installation in Visual Studio 2012 Shell
- Download Visual Studio Tools for Git
- Next you will need to extract the files from the .msi that you have downloaded. To do this, I created two folders on my machine – c:\temp and c:\temp2. Move the .msi file into c:\temp and then open a command prompt (In Windows 7: Click Start, type ‘cmd’, press ‘Enter’)
- Enter the following into the command prompt:
msiexec /a c:\temp\Microsoft.TeamFoundation.Git.Provider.msi /qb TARGETDIR=c:\temp2 - This will extract the files from Microsoft.TeamFoundation.Git.Provider.msi into the c:\temp2 directory. This should be a file called GitProvider.vsix. You will now need to unzip the .vsix to get to files inside of it (7zip is a good program for this).
- Once you have unzipped the .vsix file there will be a file called extension.vsixmanifest – use your favorite text editor to open that file (I recommend notepad++)
- Find the parent node <Installation> in the XML. You will see several children here that begin with <InstallationTarget Version=”…. You want to add a new child here at the bottom:
<InstallationTarget Version=”[11.0,12.0)” Id=”Microsoft.VisualStudio.IntegratedShell” /> - Save this file and close it. Now, delete the original GitProvider.vsix and then select all of the files in this directory. Right click on your selection and choose ‘Send to->Compressed (zipped) folder’ to zip the .vsix back up with the change you made.
- Rename the zipped file as GitProvider.vsix.
- Double click on GitProvider.vsix to install the extension into Visual Studio 2012 Shell.