tfs2010

Can't Open from Source Control in TFS

Hi, I don't know what happened here, but I wanted to open a project from a different Source Control or a different TFS server using VS 2010. From File->Source Control->Open From Source Control, I could find the PC where the TFS server is running, however, the OK button is disabled or can't be clicked, even if the WorkSpace and Local Pa...

Database reference causes warning in MSBuild

Hey guys, In our Sql Server 2008 database project we reference some outside .dbSchema files. When I try to build the database project using MSBuild, I get a weird warning (We are using TFS 2010 for our build server if that makes a difference): Microsoft.TeamFoundation.Build.targets (1777): An error occurred when opening a file "file.d...

TFS 2010 Email Alerts - Filter by more than one Status Code?

I am setting up my email alerts in TFS 2010 using the Alerts Explorer from the TFS Power Tools. I want to receive an email when a build either fails or partially succeeds. The filter seems to be too basic to achieve this. I have created the filter as follows "TeamProject" = 'My Project' AND "StatusCode" = 'Failed' OR "StatusCode" ...

TFS API VS2010 - How do I set the comment on a workitem revision?

I've been beating my head against the wall and can't figure this out. I would post an image to help show you what I mean, but I'm a newbie ;) ...

TFS 2010 - anyway to restrict editing of work items

Just installed TFS 2010 and noticed that the main text in work items can be edited. We'd like to freeze all editing of work items (except for admins), in order to keep a more auditable trail of discussion for each bug and minimize confusion over what the original bug was, etc. Is there a way to configure TFS 2010 so that the main text ...

Is it possible to set up TFS 2010 to do gated checkins but use NAnt as the build engine?

We are currently using TFS as our source code repository, but I prefer NAnt as my build engine over MSBuild. I was wondering if anyone knows if it is possible to use NAnt for the build engine but still get the benefits of having a TFS gated check-in build? ...

TFS 2010 - building ClickOnce application

I need to be able to build a ClickOnce application in TFS 2010. It needs to set the ApplicationVersion as well as the MinimumApplicationVersion. In TFS 2008, I was successful in doing the following... <MSBuild Projects="e:\MyAppBuilds\test\trunk\src\MyApp.Automation.Workflow.UI\MyApp.Automation.Workflow.UI.csproj" Properties=...

How to create a TFS2010 Team Build Template for getting source and call msbuild.exe

I have a build.proj, that is a MSBuild file and can be run locally. All I need from TFS is Get the sources from TFS Source Control. Call "MSBuild.exe /t:Deploy". Update the build status based on the result of MSBuild. I have tried to make a template combining the DefaultTemplate.xaml and UpgradeTemplate.xaml. But so far, no luck :...

TFS2010 Customer access via internet Website

Hi, Wondering if its possible (technically and licensing) to create a website for a Customer to view reports, report bugs, track progress of products we are creating for them (we are using VS2010 and TFS2010). Cheers, Webby. ...

How to remove a empty folder from a project under TFS control?

Suppose I have a project MyLib, under that, I created a folder say Folder1. No file under this folder. The project is connected to TFS. Then I want to remove this folder Folder1. I deleted it from context menu and checked the project into TFS. Then I check the data on TFS with Team Explore->Source Control, Folder1 is deleted. But it...

Synchronization of CaliberRM Requirements with TFS 2010

Has any found an easy way to synchronize requirements stored in CaliberRM with requirement work items in TFS 2010? In the past, Borland produced an add-in to CaliberRM to do so. But, the current version only supports TFS 2008 and we were told that there is no plans to support TFS 2010. I think I might have to write my own synchronizer...

How do I set the "Version control path to custom assemblies" for custom MSBuild tasks

With TFS 2010 build controllers/agents there is the option to set a version control path to custom assemblies that will be available on all build agents. The documentation states that this works for custom workflow activities as well as custom MSBuild tasks (about in the middle of the page): http://msdn.microsoft.com/en-us/library/ee330...

Best Agile template for TFS 2010?

Hi Guys, I've just installed TFS 2010, and would like to use TFS in the most Agile way. I've seen http://scrumforteamsystem.com, are they're any other good templates you can suggest? Cheers, Ash. ...

How do I force my TFS 2010 Build to build all projects in the solution to be built in Debug or Release Mode?

How do I force my TFS 2010 Build to build all projects in the solution to be built with Debug or Release Mode. I'm looking to pass in an Argument into the workflow. Do I need to use an MSBuild argument? Seems like a very common thing to do, but I'm not able to find a straight-forward way of getting it done. ...

Trying to run corflags from TFS Build 2010

I am using an InvokeProcess activity in TFS 2010 to try and run the corflags application on a built exe. C:\Builds\4\testing\Sources\BuildAssets\corflags.exe C:\Builds\4\testing\Binaries\Executable.exe /32bit+ However I am getting the following message: corflags : error CF001 : Could not open file for writing I am running the TF...

Add an attachment via the SDK to a work item without using a physical file

I'm looking at creating new work items for TFS 2010 via the client SDK. In the SDK you can do something like this: WorkItem item = ...; item.Attachments.Add(new Attachment("c:\\path\\on\\tfs\\server\\shot.png", "Screen shot")); item.Save(); But this requires the file being attached to be placed on either a network accessible path, or...

Adding items to a global list in TFS via the SDK

I wish to add or list items from a global list in TFS 2010 via the TFS SDK. I have discovered the following methods: XmlDocument WorkItemStore.ExportGlobalLists() void WorkItemStore.ImportGlobalLists(XmlElement listsElement); void WorkItemStore.ImportGlobalLists(string lists); Which appear to export/import all the global lists as a ...

Fetching the comment history for a work item in TFS

In most defect trackers there is a comment history associated with a ticket/incident/issue/work item. I wish to get this same information from TFS via the SDK for a work item - ideally: Who created the comment. The text of the comment. Who last updated/edited the comment (if that's event possible in TFS?) I have determined that a Wo...

How to open the history of a project in source control quickly?

Hi everyone, I try to record a macro so that I can quickly open the History of my project in Source Control but the macro when played raises an error "Object variable or With block variable not set". How can I get rid of that and make the macro work? Or is there any other way to do it? Please help! Nam. [Edit] The steps recorded in my...

Codeplex-like TFS configuration

Hey guys. I'm trying to configure TFS2010 on a home server. I want to use TFS in such way: 1)Some contributers are working in a small home office working with the same domain name as a server on which TFS is installed. 2)Other contributers are working remote. And contribute code through the web, accessing the server through router. I ...