Getting a Team Foundation Service Account for your NAV development

A year ago after Directions in Phoenix I wrote a blog post about Source Code Control, but I never did any follow up. Maybe it is about time :-)

Maybe you have never heard about it, but Microsoft has a great tool called Team Foundation Server. It can run On Premises or you can get it from Microsoft as a service in the cloud. I will be using the Team Foundation Service (The Cloud version) in this article as the functionality is basically the same as the On Premises version, but it requires no setup or server. Did I mention that it is free for up to 5 uses :-)

Check out and sign up for an account.

Getting an Account and setting up a team project

I have already signed up for my account and can access it directly via the URL Your URL will be slightly different as “klemmensen” will have to be replaced with the name you selected during sign up.

Once you have created an account you need to create a team project. If you want you can create a team project for each of your projects and that is how it was meant to be used but it could create some challenges down the road with controlling capacity in your team and the Scrum process however for now I will just ignore that part and deal with that once we start understanding TFS and a little better.

Click on New marked with Yellow below

Create New Project

and you will see “CREATE NEW TEAM PROJECT” show up in the browser.

Create a Project Name, a description, select a Process template and how you prefer to have your version control done.

Create New Project Form

In this case I created a SANDBOX project as a play area to show you how things work.

The Process template here is very important as that will never change again for a project unless you go in and do modification for it. I selected Microsoft Visual Studio Scrum 3.0 as we try to follow the Scrum process as closely as possible at our place. You can read more about Scrum at if you are interested. When it comes to Version Control I have selected “Team Foundation Version Control”. There is a new option called GIT, but I have not played with this one yet.

Now click “Create Project”

It will take about 1 to 2 minutes to create your Team Project”. Now you can Click “Navigate to project” (Marked with Yellow in below screenshot) or “Close” the window and use the browse option next to New in the earlier screen shoot.

Navigate to Project

Once you click Navigate to Project it will take you to the Team Project portal dashboard and you are ready to start using TFS.

Team Project Portal

We now have our Team Project setup and we can start to use Source Control in this new Project, however as you can see of the dashboard there is much more to TFS then just Source Control. In the Menu we have CODE, WORK, BUILD & TEST.

“CODE” is the Source Code Control and you can search in it via the browser, but you will need to connect your Visual Studio to this project to check in new code. More about this shortly.

“WORK” is where we organize our work items such as Features, Product Backlog Items, Bugs & Tasks (As defined by the Scrum template we selected earlier). I will talk about that at a later time.

“BUILD” is an automated way of creating builds of your project. On the online version the Build service is currently still in beta and not fully functional. If I get time later I will try to take a deeper dive into this.

“TEST” is currently also in beta on the online version of TFS, but is the area we can use to run automated tests of our product.

Everything in this dashboard can be accessed via Visual Studio, but when it comes to management of Work Items the browser dashboard is just better (in my view).

Connecting Visual Studio to TFS

Assuming you have already installed Microsoft Visual Studio (I have the Microsoft Visual Studio Premium 2012 installed, but you can install the express version if you don’t have the full version in your MSDN subscription. Just follow the link on the left of the dashboard “Get Visual Studio”) we will now connect Visual Studio to Team Foundation Server

Start Visual Studio

Click “Team” and “Connect to Team Foundation Server…”

Click “Servers…” if this is your first time connecting followed by “Add…”

Available Team Foundation Servers / Services

As you can see I already have my Service connected but in the following screenshot you fill out the URL to your Team Foundation Service created earlier and click Ok. You will be asked to logon with your Microsoft Account

Ad new Team Foundation Server / Service

When you click Ok it will take you back to the Connect to Team Foundation Server. Make sure the drop down under “Select a Team Foundation Server” is pointing to your server and make sure you have flagged all the Team Projects you would like to see. In this case I just selected the SANDBOX we created earlier.

Connect to Team Foundation Service

Click “Connect” and you should be all connected.

So far so good. All in all very easy.

In the next posts on Team Foundation Server we will look at Source Code. Checking in, Checking out, Branching, Merging, understanding changeset and how everything is linked together.

Often I refer to the Source Code Control as “What happened!” meaning this is the change that happened in the system, but we are also going to look at “Why it happened!” meaning the tasks, bugs, product backlog items and features that is the reason we did a specific change. No matter if you are a product manager, a supporter, a consultant or a hardcore developer the fact that you can use the system to find a change and have a linked reason associated with it is very powerful and will safe you a ton of trouble looking for solutions to questions down the road.

I hope this was a helpful first step to get you all started with Team Foundation Server or Services.

5 Responses to “Getting a Team Foundation Service Account for your NAV development”

  1. Jochen Says:

    Dear Soren,

    thank you for this post. I have a question refering the import of the (splitted) NAV object files in text format.

    How do you do that or what is the handy workflow of develop and tracing the changes in version control.

    Kind regards,

  2. Danny Says:

    This is great! I have just created my own TFS team project and looking forward to see how this works with NAV.
    Can I add all object types from NAV (table, report, codeunit, …) to TFS?

  3. Johannes Sebastian Says:

    Thank you for posting, and creating a great blog.

    Regarding Source Control and NAV…well, there is an elephant in the room.

    In NAV, we don’t have any version/source control.

    Can you recommend any tools to provice versioning for NAV objects?

  4. sorenk Says:

    Hi Johannes,
    I am currently producing some videos to show this. I use TFS and I try to do it without any special tools that you would need to purchase. The entire workflow discussion will be something I will touch on but I want the tools out there first. :-)

  5. Mister Hotfix Says:

    Nice blog! Waiting for the next post about branching and merging.

Leave a Reply

To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word