tfs

How to return the version (changeset) of a file in a workspace using the TFS object model?

How can the version (changeset) of a file in a workspace be returned using the TFS object model? I want to be able to pass in the path of a file in my workspace and have the changeset returned. ...

how to best change directory structure (of sln and projects) in a c# project

Hi all, I’m working on a c# project, lately we decided to restructure the directories structure of the source code. I’m doing the restructure and wanted to ask you some questions about what is the best way to conduct the change. The restructure is basically changing the current directories of all the projects to a more structured and lo...

TFS Database Deployment in Sandbox environment

Hi all, I have a Team Solution which includes the database and dataserver projects – these are currently set to compile and create deployment scripts. This can take an age so would probably be worth setting them to build & deploy only when needed. Does anyone have any views on this either way; is there a best practice approach or is ...

TFS Changeset problem, files missing but present if viewed via "view history" open changeset

Hi, having a weird problem with TFS (TFS2008). We've done a merge into our Main trunk. We've resolved the conflicts and we've checked in associating it with a single work item. So we have our WorkItem with a single changeset in it. Our build is failing because the previous version of the csproj file is being got from TFS. If I open th...

TFS Project Collection layout - suggestions and good practices for multiple teams

Consider a new deployment of Team Foundation Server 2010, with the first use cases being Version Control. The teams using TFS for Version Control are: application development - web applications, SharePoint, db scripts, etc. primarily through Visual Studio integration - text files (XML and JavaScript) for an integration engine. data wa...

How to Add/Edit the Iteration Field in Team Foundation Server Scrum v1.0 beta Workflow

I downloaded and installed the new Team Foundation Server Scrum v1.0 beta work template from Microsoft. I would like to edit the drop down that displays in the Iteration field used when entering a new Sprint work item. If I enter in a release / sprint number that does not exists I get the following message. "New Sprint 1: TFS20017: ...

Rename work item type fails

In TFS2010/TFSPowerTools2010/Process Explorer I am creating a custom process template. I define a new work item type (WIT) called "Enhancement" copied from the CMMI "Change Request" WIT. Then I want to rename the friendly field name of the work item type "System.Title" (called "Title") to "Summary". When I upload my custom process tem...

How do I build and deploy a Windows Service with TFS 2008?

I have a build server with many builds for web sites and web services. I'm doing some new code using WCF; my new code runs as a Windows Service. Ordinarily, when I make changes to a web site, I "check out" the files I need to edit from TFS, make the changes, "check in" the files, and then perform a build. At this point, my new code is...

TFS error causes promotion issues (using ProTool)

Hello, I'm running into a frequent issue where TFS2005 pops up an error when I attempt to check in changes. (Sorry, I do not currently have the text of the message recorded.) Attempting to check it back in indicates there is nothing to do and indeed a compare shows the items to be the same and the server version having my changes. Ho...

Why doesn't TFS get latest get the latest??

Why Why WHY doesn't TFS's get latest work consistently? You would have thought that feature would have been tested thoroughly. What I have to do is, get specific version, then check both overwrite writetable files + overwrite all files. Is my local setup messed up or you do this also? ...

How to change soure control from TFS?

I have a solution say it Myproject in vs2010. I have create a solution folder on TFS say it $/Myproject and checked in all source code files. Now I have created another folder on TFS say it $/Myproject2 and I want to the solution Myproject in VS 2010 to connect to $/Myporject2. I guess I should disconnect from TFS and then connect to ...

How should I handle an automated build that conflicts with a check-in policy?

Some of our TFS users have some automated builds that are updating version numbers in a tree that is covered by a check-in policy. The workarounds so far are for the automated build to tag the check-in with a dummy workitem or to override the policy. Is there any better way to handle this? If it means hooking up a more advanced check-in ...

How do I retrieve the node order of area paths in TFS (by accessing the database)

I am working on some reports that retrieve the area paths for a particular project from the TfsWorkItemTracking database. I want to retrieve those area paths in the same order as which they are displayed in the Team Explorer. (If you're using Team Explorer via VS 2008, and you right-click on a TFS Project, it will give you some options t...

TFS 2010 - Is there any way to get my changes back after I have done "Undo Pending changes"?

Is there any way to get my changes that I made in local machine back after I have done "Undo Pending changes"? I think it's not possible but still, i'm wondering if anyone knows a way.. ...

Customize work item : found in release & resolved in release not populated

In TFS2010 I am customizing the CMMI template. I want to have 2 value-lists for "Found in build" and "Resolved in build" custom fields. The suggested values must be taken from the builds that are populated by TFS in a globallist. How can this be done to get it work ? ...

TFS work item alternatives

Hi, i would like change my tools to open source. Curently im using TFS work item, is there any open source alternative for Microsoft TFS Work item manager which eaisly integrate with Visual Studio? thanks for any suggesting. ...

How do you connect to a TFS server in C# using specific credentials?

I am attempting to write a c# application that connects to TFS and retrieves work item information. Unfortunately, it seems like all examples of using the TFS SDK are using the default credentials for the current user (i.e. my domain login information). The closest piece of information I found is to use the TeamFoundationServer (String...

Checking-in Designer Generated code into TFS, issues...

I just had a conversation with my manager relating to checkin\out policies on a project I'm currently working on. Basically I tried to edit a file that was already checked out by another developer and I couldn't - I asked my manager why we couldn't edit the same class at the same time and he gave this reason for turning that functionali...

TFS Changeset "Roll-up" / Cumulative Report

I need to have several changesets rolled-up into a single list of changed files, so that I can code-review the collective differences (from an initial changeset, up through an arbitrary ending changeset), rather than reviewing all changes through the individual intervening changesets. I'm using VS 2k8. What is the easiest way to accomp...

IisVirtualDirectoryPhysicalPath parameter in TFS build

When I go to the web project's properties, under Package/Publish tab, in Physical Path of web application on the destination server, I have set: C:\Projects\TimeSheet When I create a package and examine the package's zip file and look SetParameters.xml file, I see: <setParameter name="IisVirtualDirectoryPhysicalPath" value="C:\Buil...