August 1st, 2014 by Jacob Krall
Did you know that Kiln works with Visual Studio? If you’re working on a project in Visual Studio, you can get the power of Kiln without a command prompt. Using an IDE means never having to say Alt+Tab!
You will need to have a Kiln account to do this. If you haven’t already, sign up for Kiln.
Start A New Repository
First, create an empty repository in Kiln. On your Project page, click “New Repository” and give your project a memorable name. I picked “Enterprise Hello World”, but it’s only a code name, until I can think of a better one:
On the empty repository page, choose “Git”:
Select “HTTP” under “Starting a New Project?“, and copy the URL listed there:
In Visual Studio, open your project and select FILE > Add to Source Control to create a Git repository on your local machine. (I’m not sure why MICROSOFT wants us to YELL the names of MENUS. It’s not in the HUMAN INTERFACE GUIDELINES. It seems A LITTLE UNNATURAL.)
Open Team Explorer. (It’s under the VIEW menu. Don’t forget to yell “VIEW TEAM EXPLORER!!!” when you choose it. Surprisingly, that is in the Human Interface Guidelines.)
Click “Unsynced Commits”:
This will give you a text box in which to gently deposit the repository URL you copied:
Click “Publish”; Visual Studio will push a single commit to the repository, which creates .gitIgnore and .gitAttribute files, just for you. And everyone else on your project, I guess, since it’s now published in Kiln:
Write the first revision of your code. (You’re on your own for this part.)
To add your changes, open the Changes pane in Team Explorer:
(You can also click the “Changes” button from the Team Explorer Home pane.)
Type in a descriptive commit message:
Visual Studio will commit your changes locally. To share your changes with Kiln, go back to the Unsynced Commits pane by clicking the “Sync” link:
Click the “Sync” button on this pane, and Visual Studio will automatically merge your changes with any changes upstream, then publish your changes to Kiln:
All done! Your project is now synchronized, and you can continue to use Team Explorer to synchronize with Kiln.
Here’s what the push event looks like in the Kiln home page:
Clone An Existing Repository
If someone has already followed the steps above to create a repository, and you want to start working with them, you can do that too. It’s only fair.
Go to the repository in Kiln and make sure you are in Git mode. Select “HTTP” and click the clipboard icon to copy the URL:
In Visual Studio, open Team Explorer. (It’s under the menu formerly known as “VIEW!!!!!1111eleven!1″.) Click “Connect to Team Projects”:
Click the Clone button. The repository will be copied to your local machine, and appear in Team Explorer. Go to the Team Explorer Home and double-click the solution file:
Visual Studio will open the solution. Your project is now synchronized, and you can continue to use Team Explorer to collaborate with your team via Kiln.
Now you have Visual Studio’s powerful Git client interacting with Kiln’s professionally-operated Git engine. Kiln is free for 30 days!