Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » VSTF   (RSS)

VSTS 2010 and .Net 4.0 Beta 2

Beta 2 is here , give it a try and let us know what do you think. div#widget { position: relative; width: 250px; height: 155px; } body ul#cntdwn { width: 250px; height: 80px; background: transparent url(http://toysfortweets.com/visualstudiowidget/cntdwn-bg.png)
Posted by mohamedg | 0 Comments
Filed under:

How to: Query all labels on a folder recursively?

To do this, you can't call query labels with a wildcard character, you need to do the following: - Get all items blow $/Dir1 using GetItems - Loop through them calling QueryLabels on each one. Here's a code snippet: VersionControlServer sc = tfs.GetService<
Posted by mohamedg | 3 Comments
Filed under: , ,

How to: Move a shelveset to another branch?

A very handy power tool is tfpt unshelve. It’s capable of migrating a shelveset from a branch to another, it does that by performing a baseless merge, so you will need to resolve the conflicts produced. The syntax of the command looks like the following:
Posted by mohamedg | 6 Comments
Filed under: , ,

How to: Receive daily email notifications?

You can receive a daily email that has a compiled list of notifications, but you will need to subscribe programmatically: IEventService eventService = ( IEventService ) new TeamFoundationServer ( "http://tfs:8080" ).GetService( typeof ( IEventService
Posted by mohamedg | 3 Comments
Filed under:

How to: Diff shelved files?

You can run: tf diff /shelveset:shelvesetName;DOMAIN\ownerUserName Please note that this will diff the shelved changes against the unmodified version, not necessarily the latest version, just like what the you get from clicking compare in the shelveset
Posted by mohamedg | 1 Comments
Filed under: , ,

How to: List changesets between two labeled versions?

You can achieve that behavior by running: tf hist rootItemSpec /r /version:LstartLabel~LendLabel Here’s my scenario: tf hist /i File.cs Changeset Change User Date Comment --------- -------------------------- ------------- ---------- -------- 65 edit mohamedg
Posted by mohamedg | 2 Comments
Filed under: , ,

How to: View history of an item across branches?

You can use tfpt history /followbranches to follow the history of an item across branches. We are looking into supporting this in the history dialog in the next version . You can see which versions are ported over during the merge operation if you use
Posted by mohamedg | 1 Comments
Filed under: ,

How to: Switch between TFS and VSS in old IDEs?

If you have an IDE that uses the MSSCCI provider, like VS 2003 or VB6, and you want to switch between TFS and VSS because you have projects on both systems, you will have to change the provider every time you switch. The thing is that setting is stored
Posted by mohamedg | 1 Comments
Filed under: , ,

How to: Force a check-in to be linked to work items?

Well, the answer to this one is pretty easy and straight-forward. You can accomplish that using a check-in policy. For example, to force users to link check-ins to work items that are not closed, you may do the following: Add a Team Query to the desired
Posted by mohamedg | 1 Comments
Filed under: ,

How to: Change TFS temp folder?

TFS uses a temp folder to get files that you view. The location of that folder is %TMP%\TFSTemp. It’s not configurable via TFS, tf.exe, or Visual Studio. However, you can just set the TMP environment variable. Simply: set TMP=D:\Temp set TEMP=%TMP% md
Posted by mohamedg | 1 Comments
Filed under: ,

Handy tips for tf.exe

Using tf.exe gives you more options and more control, here are some tips that might come handy: For item specs: You can use wildcards with most of the commands Just like most command-line apps, you can supply relative path parts (like . and ..), you can
Posted by mohamedg | 2 Comments
Filed under:

How to: Copy workspace mappings?

A common scenario that you may see is the need to share/sync workspace mappings amongst team members. A developer adds a new dependency in a certain project and changes his/her mappings to get this library, and everyone else in the team now needs to do
Posted by mohamedg | 2 Comments
Filed under: , ,

How to: Switch branches in a workspace without getting all the files of the new branch?

One of the new features added in VSTF 2008 SP1 is that you can switch to another branch in your workspace and you don’t need to download all the files of the new branch. TFS will only download the files that differ in the new branch, if you use tf get
Posted by mohamedg | 1 Comments
Filed under: , ,

How to: Move your workspace to another drive?

A common problem occurs when the drive that contains your workspaces runs out of disk space, or when you find yourself in a situation that you have to move your workspace to another drive. This might get tricky because your workspace mappings are stored
Posted by mohamedg | 0 Comments
Filed under: , ,

How to get list of changes in a shelveset programmatically?

In a previous post , we used the command-line to list the changes in a shelveset. This time we are going to use an API to get the changes by calling: VersionControlServer.QueryShelvedChanges You have to be a valid user that can connect to Version Control,
Posted by mohamedg | 1 Comments
Filed under: , ,
More Posts Next page »
 
Page view tracker