Click here to Skip to main content
15,886,258 members
Articles / All Topics

From Joe to Pro–TFS style

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
29 Jan 2014CPOL2 min read 4.6K   2  
From Joe to pro-TFS style

If you haven’t signed up for Team Foundation Service yet, you should. Especially if it’s just you and a couple buddies coding away on apps for Windows Phone and Windows 8.

But hey, you get SO much w/ TFS, why let it go to waste? Take advantage of it!

Specifically, I’m talking about Builds. CI Builds in particular.

Continuous Integration is arguably one of the best things about having source control AND a build server at your disposal. Even better when it’s completely integrated.

I took the time the other night to set up CI builds for both my NamedTuple project and a Windows 8 project I’m working on. No kidding, I had ‘em both done in 15 minutes.

Since I do a lot of my development with Unit Tests as the primary move of logic verification, having a CI build run immediately upon check-in is a good sanity check – especially if I share the code with others so they can play around and/or make improvements.

Enough jibber-jabber, let’s get started.

First and foremost, what you need is Visual Studio 2013 as it integrates best in to your VisualStudio Online (Team Foundation Service) account.

After that, head to your VSOnline account and go to the project you’re using to store your source code. On the front page of this project is a big fat button:

image

Click ‘er and off you go! The page it links to gives a pretty good example of configuring a quick build to do CI and even run your unit tests. Easy as pie!

Here’s what my NamedTuple solution looks like:

image

So I’ve got a simple library, and a set of UTs. I want to set up a continuous integration build that builds the library, and exercises the test. So when I let my friend in to the project and he goes all batnuts crazy on it, I can be reasonably assured that when he checks it in, it still works.

Simply following the steps in the aforementioned links gives me this beauty:

image

image

Clicking the link in the “test(s) passed” line opens this up in Visual Studio:

image

image

And boom. You’ve gone from Hobby Joe to CI Pro. Enjoy your newfound security in your codebase!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I'm a Sr. Software Engineer in the Seattle area primarily focused on serverless technologies in the cloud. In my free time I enjoy hiking & other adventures with my family around the Puget Sound and the country! You can find out more about me at my homepage: http://bc3.tech/brandonh

Comments and Discussions

 
-- There are no messages in this forum --