tfs2010

TFS 2010 API Resources

感情迁移 提交于 2019-11-28 19:30:52
Does anyone have any good resources for working with the TFS 2010 API? I specifically looking at how to create, read, update and delete work items. Please see the Team Foundation Server 2010 SDK on MSDN Code Gallery. More content will be coming on-line for the RTM release, but you should find enough there to get you started. Contact me know if you have any questions. Shai Ratan's blog has a huge wealth of examples. They're 2008 but 99% still relevant. www.tfsexamples.com has 2008 examples, but still relevant WorkItemManager class from a TFS OS project I'm currently working on called Spruce ,

How to Determine the Work Items Fixed in a particular TFS Build when using Branches?

社会主义新天地 提交于 2019-11-28 19:25:24
We have begun using the following branching structure in TFS 2010: All changes so far have been performed in the Development branch, and all check-ins have been associated with a Task work item. The Tasks are all children either of a Bug or a Product Backlog Item work item. Each CI build is triggered for a particular changeset, and the changeset is associated with a Task, so we can manually figure out which Bug or PBI was just built. Some time after the code has been built, deployed to our Integration environment and tested by the developer, it is merged to the Main branch. Obviously, more

TFS 2010: How to produce a changelog (ie. list of work items) between two releases of the application using labels?

百般思念 提交于 2019-11-28 19:23:04
问题 I'm looking for a way to automatically produce a changelog (actually a list of workitems) between two releases of my application. I have two versions of my application, v1 and v2, each is identified by a label in TFS 2010 (LABEL1 and LABEL2) that I manually created before building the setups of my app. I have a branching system, which means I have a trunk were most of bugs are fixed, and a branch where patches are applied mostly using merges from the trunk (but there are also some fixes on

How to run unit testing tests from command line?

两盒软妹~` 提交于 2019-11-28 18:32:36
I googled and found the below helpful references. Currently I want to run all from the command-line (for easy of execution & quickness) in cases: A specific test (ie. a test written by a method marked [TestMethod()]) All tests in a class All impacted tests of the current TFS pending change of mine. All tests All tests except the ones marked as category [TestCategory("some-category")] I'm not sure how can I write a correct command for my needs above. References: the MSTest.exe http://msdn.microsoft.com/en-us/library/ms182487.aspx the MSTest.exe's detailed options http://msdn.microsoft.com/en-us

TFS msbuild args /p:DeployOnBuild=true doesn't seem to do anything

烈酒焚心 提交于 2019-11-28 18:26:42
I'm currently using TFS and the regular build process activity to build a solution. However, I'd like to be able to automate deployment so I can build and deploy remotely to a server in one step. On the MSBuild arguments I am trying to specify the deployment switch. My project is a windows service, but I understand it is still possible to deploy any binaries regardless of the project type (not being a web project). Current build parameters: /p:DeployOnBuild=True /p:UserName=user /p:Password=password When the build runs in TFS it succeeds, however I was expecting to see some attempt at

How do I change Process Template on an existing Team Project in TFS 2010?

筅森魡賤 提交于 2019-11-28 18:15:25
How do I change process template to MSF for Agile on an already existing team project in TFS 2010? We have upgraded our TFS 2008 to 2010, and now I would also like to change the process template to MSF for Agile (currently CMMI). We haven't used the workitem functionality much so if some information gets lost in the conversion doesn't matter. Jason Barile Once you've created a Team Project, you unfortunately can't just upload a new process template. As Robaticus says, you'll have to download the XML for the template and modify it, then re-upload it. The power tool lets you create NEW templates

Organizing source code in TFS 2010

冷暖自知 提交于 2019-11-28 17:23:20
问题 We have just gotten TFS 2010 up and running. We will be migrating our source into TFS but I have a question on how to organize the code. TFS 2010 has a new concept of project collections so I have decided that different groups within our organization will get their own group. My team develops many different web applications and we have several shared components. We also use a few third party components (such as telerik). Clearly each web application is it's own project but where do I put the

How can I get TFS 2010 to build each project to a separate directory?

我是研究僧i 提交于 2019-11-28 17:08:19
问题 In our project, we'd like to have our TFS build put each project into its own folder under the drop folder, instead of dropping all of the files into one flat structure. To illustrate, we'd like to see something like this: DropFolder/ Foo/ foo.exe Bar/ bar.dll Baz baz.dll This is basically the same question as was asked here, but now that we're using workflow-based builds, those solutions don't seem to work. The solution using the CustomizableOutDir property looked like it would work best for

Visual Studio 2008: Can't connect to known good TFS 2010

≡放荡痞女 提交于 2019-11-28 15:24:29
A freshly installed TFS 2010 is at http://serverX:8080/tfs . A Windows 7 developer machine with VS 2008 Pro SP1 and the VS2008 Team Explorer ( no SP ). The TFS 2008 Service Pack 1 didn't work for me - "None of the products that are addressed by this software update are installed on this computer." The developer machine is able to browse the TFS site at the above URL. The Issue is around trying to add the TFS server into the Team Explorer window in Visual Studio 2008. Here's a screenshot showing the error: unable to connect to this Team Foundation Server. Possible reasons for failure include:

How to undo another user’s checkout in TFS?

帅比萌擦擦* 提交于 2019-11-28 15:19:05
As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file checked into source control. How do you undo another user's checkout? brett rogers There are at least 2 different ways to do this: Command Line There is a command-line utility called Tf.exe that comes with Team Explorer. Find the documentation here . It can be accessed by launching a Visual Studio Command Prompt window. The syntax of the command is: tf undo [/workspace:workspacename[;workspaceowner]] [/server:servername] [/recursive] itemspec [/noprompt] For one file tf undo