Click here to Skip to main content
Click here to Skip to main content
Technical Blog

Tagged as

From Joe to Pro–TFS style

, 29 Jan 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

BC3Tech
Software Developer (Senior)
United States United States
No Biography provided
Follow on   Twitter   Google+

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 29 Jan 2014
Article Copyright 2014 by BC3Tech
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid