tfs

Branching and merging in TFS 2010

What is the best branching and merging strategy for a small development team making a lot of concurrent development on the same project? We need to be able to easily apply a hotfix to a production release while other developers are working. I was looking at the TFS Branching Guidance guide from codeplex and can't seem to figure out wh...

Can I branch a file to another TFS workspace?

I have some general purpose classes in one project that I would like to branch to another unrelated project in another TFS folder that I have mapped to a different workspace. I would prefer branching to plain copying to keep the change history and be able to merge back any changes. However, when I try to branch the file in TFS, it compl...

Passthrough (impersonation) authentication with ASP.NET and TFS api

I'm trying to enable passthrough or impersonation authentication inside an ASP.NET website that uses the TFS2010 API. I've got this working correctly with Cassini, however with IIS 7.5 (Windows 7) something is going wrong. I found this blog post on the subject, and tried the following: private static void Test() { TfsTeamProjectCo...

TFS 2010 Automated Build Server

Hi There! I'm looking to create an automatic build server which runs either when the developer check in changes to a solution or a certain time frame is reached (say 24 hours). I've looked around, and from what I understand - VS2010 has a different CI to older version, and as such, I can't find much information regarding such a process...

TFS error 203208: You cannot create a branch at XXX/YYY because a branch already exists at XXX

TFS 2010 is giving me this error when I attempt to move a branch to another project. I totally don't understand the error though. There is some attempt at exaplanation here: http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/ec04873e-80ab-48cf-be94-96ffb0bf347aTF203208 which makes zero sense because I am not attempt...

How do I keep a local version of a conclicted file in TFS?

I did a Get All from my TFS server, and there are a few dozen conflicts. I'd like to keep the local versions of these files, but the only option I'm given is "Overwrite Local Version". How do I tell it to keep my local copy? ...

Adding Generic Test Cases to TFS in C#

Hey, So I'm trying to find a way in which I can insert new generic test cases into TFS through C#. These are the same ones that you can create in Visual Studio so I was hoping there was someway to do this with the TFS API somehow. Any hints of suggestions are greatly appreciated. Thanks!! ...

branching practices when moving from SVN to TFS

Our current setup is SVN, AnkhSVN, CCNET. I have read most of the SVN+TFS posts out here, and I still need some more information (this is not duplicate). Our current setup is that we have 8 braches at any given time that are working on the same code base. Main Trunk --> Project 1 Project 1--> Project 2 Project 1 --> Project 3 --> Pro...

TFS 2010 Build Server and Microsoft.Practices References

I am busy trying to configure a build server for TFS2010. My project has references to Microsoft.practices. The build fails because it can't find these references on the build server - because I haven't installed the Microsoft.practices on the build server. I was wondering if installing it on the build server is the best way to do it, o...

TFS grant permissions to only one Branch

I was asked to grant permissions to several TFS users. These users must have access to one branch only. How can I do this? I'm going to create new TFS user group and deny access to root of Source Control, then allow access to necessary branch. What do you think? ...

How to block a changeset from merging in TFS?

In TFS 2010, how can one mark a changeset so that it cannot be merged from one branch to another? For example, so it doesn't show in the "merge wizard" in Visual Studio when using the "Selected changesets" option. Basically, I want it to look like the changeset in question has already been merged into another branch. Our build process...

Build automation using TFS with InstallShield 2011

We have a TFS build which outputs 2 exe's for 2 different solutions. How do I now integrate my build with InstallShield to use these exe's of both the solutions in my installer. Any points to information would be greatly appreciated. Thanks much in advance!! ...

TFS 2010 change history on individual code sections.

Some time ago I recall seeing an early release video demonstration of a tool that allowed one to (from within Visual Studio) inspect the history of a section of code. For example, right click on a method and choose 'view history', and see when that method has changed. Can anyone recall what product this may have been? ...

Running PSAKE script from the command line

I'm creating a batch file to execute my psake builds while integrating with teamcity and the TFS Powershell commandlets from TFPT and have come up with the following: @ECHO OFF SET COMMAND_TO_EXECUTE= SET COMMAND_TO_EXECUTE=%COMMAND_TO_EXECUTE% "& { SET COMMAND_TO_EXECUTE=%COMMAND_TO_EXECUTE% Import-Module '..\tools\psake\psake.psm1'; ...

Team Build: Publish locally using MSDeploy

I'm just getting started with the team build functionality and I'm finding the sheer amount of things required to do something pretty simple a bit overwhelming. My setup at the moment is a solution with a web app, an assembly app and a test app. The web app has a PublishProfile set up which publishes via the filesystem. I have a TFS bui...

How to keep links when moving work items (task, bug) between projects in TFS 2010 ?

Our situation: In TFS 2010 + VS 2010 environment, we need to move source code and work items from old project to new project (new project is just for renaming and restructuring purposes, they all under one project collection). We used TF.exe command line utility moved source code, it's good and carried history and links (changeset links...

TFS 2010/Msbuild fails, StackOverFlowException

Hi! I'm having trouble with an upgraded 2008 build. I'm using the Upgrade template. Everything builds fine, but when I get to GetImpactedTests it crashes. Anyone experienced something similar? Can I turn off GetImpactedTests? Can't find a property for it. TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual...

TFS: how to create an issue automatically on email

Is there any possibility to create a new issue in TFS when email is arrived on the certain address (email subject will be used as issue title, email body as content, email author as source for "CreatedBy")? I guess, it is possible to write an application that will monitor incoming emails somehow,.. but is there any configuration options...

Protecting source code from theft during development

Is there any way to protect my code during development so that if a developer leaves my company they are unable to access files in my project? This is especially important with TFS where the project is downloaded locally, cached, and available for offline use. Ideally the code would be unreadable if they did not have a valid Active Di...

how to ignore a local folder in a vs.net solution from being updated to TFS?

how to ignore a local folder in a vs.net solution from being updated to TFS? I have a web service reference, and I don't want this being saved to the TFS source control. Each time I check-in, the service folder and its 1000's of files are pre-selected. ...