DCSIMG
May 2012 - Posts - or ben shmueli

or ben shmueli

Press any key to continue, where's the any key? - Homer.S

May 2012 - Posts

Get Tfs Items to Windows Phone using WCF

Hello everyone

Today I will show you how you can keep track of bugs in TFS through the windows phone

True at the beginning it sounds like those who really need it ... But everyone who works from home, without connecting to the office need it! or just some one that want to know what remains to do

Of course the guide is basic, and it demonstrates just how to get the data from TFS SERVER but of course you can also update the server data (next post), and possible also to obtain data on all employees ... In short the sky is the limit

Step 1

Of course we open windows phone application

1

Because of windows phone connect to TFS directly we will perform it with WCF

And add a new project of WCF

2

Add to the service of TFS DLL

3

step 2

We will change the interface and add our functions

4

In the Function, we put the following code:

5

The code actually going to TFS and takes away from the data of course just the code returns all the rows listed in TFS but can take a per-user, type, status, etc.

At the code registered How can you reduce some of the data how can access them.

we finished with the WCF of course you also can be used for more applications other than windows phone.

Now we switch to windows phone application

step 3

Add to the application a listbox (it will be with all the bugs/tasks)

6

And the following code:

7

Just beauty and able to show more can be done I added alert while clicking on the listbox to show the entire text of the task which is a record in TFS

8

And so it seems to be activated

9

And so when you click on one of Bug

10