tfs2010

How to put build process parameters into categories in TFS?

我们两清 提交于 2019-12-10 10:27:16
问题 When I open up a build definition I can see the arguments are split into sections with a number prefix e.g. 1. Basic, 2. Misc etc. However, when I edit the xaml there is no indication as to where these categories are defined. Can someone provide some guidance as to where they are located within the arguments list? Here is a similar question except the poster has inquired about a different parameter based off the build settings which I believe is a different case than regular parameters.

C# Code to check whether the workspace exist on TFS

谁说胖子不能爱 提交于 2019-12-10 07:35:53
问题 I am trying to create a automation tool to get latest code from TFS. I need to check whether any workspace with same name exist on system. If exist get the workspace instance. Else create the workspace and mappings. I found that Microsoft.TeamFoundation.VersionControl.ClientVersionControlServer has method Workspace GetWorkspace(string workspaceName, string workspaceOwner); to get existing workspace. But this will throw exception if workspace not exist on the system. So please give me a code

TFS Areas, Optimal Definition and Configuration

陌路散爱 提交于 2019-12-10 05:12:16
问题 Having recently migrated to TFS 2010 I was wondering what the best or most widely accepted definition or configuration is for an Area? The only useful article I can find online is this one and is what I would have assumed to be correct. However it got me thinking if any of the following is indeed more widely accepted. Areas by business functionality Areas by technology Areas by system layer Areas by physical or geographical location 回答1: It really depends on the product/project you 're

Build failing - VS2010 solution on TFS2008

跟風遠走 提交于 2019-12-10 03:17:07
问题 I have migrated a VS2008 ASP.NET MVC solution to VS2010/MVC2/.NET 4.0 The solution builds locally and all unit tests pass. Our TFS server is still TFS2008 and I am having problems getting the CI build to pass. The projects all build successfully, the unit tests all run and pass but the Running Tests item fails. I followed this blog post on how to get the build working and I'm almost there. Combing the log file for failures I have found the following: Test Run Completed. Passed 1101 ----------

TFS 2010 Work Item is not ready to save but there are no validation items

情到浓时终转凉″ 提交于 2019-12-10 03:10:54
问题 I'm trying to save a TFS Work Item programmatically but always get the exception: TF237124: Work Item is not ready to save Now, I understand what this is telling me - that the Work Item is missing a required field or similar - and my code is anticipating this by calling: ArrayList ValidationResult = wi.Validate(); before the save. However my ArrayList contains no elements following this call. I've tried logging in to the TFS web interface using the same credentials and creating a Work Item

tfs: how to unlock changes

岁酱吖の 提交于 2019-12-10 03:03:57
问题 I originally edited a file, which did a checkout. I received a new computer, and now I want to edit the file. I don't care about the original edit. TFS reports that another user has an exclusive lock on the file. It's not actually another user, it's me, but the machine is different, so the workspace is different. I tried unlocking with the tf commandline using the following command: tf lock /lock:none /workspace:oldmachinename;domain\me /recursive $/projectname/directory /s:http:tfs:8080/tfs

How to Move TFS 2010 Build Definition between Projects?

廉价感情. 提交于 2019-12-10 01:36:50
问题 I have some TFS 2010 build definitions that were created under ProjectX. Now the source code has moved to a folder subordinate to ProjectY. How can I move the build definitions to ProjectY so they display under the Builds node of the Team Explorer for ProjectY? 回答1: I don't think there is something out of the box to copy the build definitions from one project to another. However you should be able to do it using the TFS API. You will want to move the build process templates, which is what

TFS 2010 - VersionControl.config is not valid and cannot be loaded

徘徊边缘 提交于 2019-12-10 01:10:20
问题 Recently, we experienced a strange problem with TFS 2010. We spent a few days before we figured it out. Just want to share my knowledge on the problem that might help other people. It was working before with no problem for about 2 years. But suddenly, the builds started failing with the following error: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected

Getting the dte2 or TeamFoundationServerExt object in a VS Package project?

我的未来我决定 提交于 2019-12-09 18:45:59
问题 I am working on a Visual Studio Package project. This project needs a connection to our TFS. To read the current connection, I would need the TeamFoundationServerExt object, which I should be able to get from the dte2 object. Now I found hundreds of examples and most of them are working with an "_application" variable, which seems to get automatically filled, but of course not for the "Visual Studio Package" project type. How can I get the TeamFoundationServerExt object of the currently

What happens to existing workspaces after upgrading to TFS 2010

蓝咒 提交于 2019-12-09 17:46:31
问题 I was looking for some insight about what happens to existing workspaces and files that are already checked-out on people, after an upgrade to TFS2010. Surprisingly enough I can not find any satisfactory information on this. (I am talking about upgrading on new hardware by the way. Fresh TFS instance, upgraded databases) I've checked TFS Installation guide, I searched through the web, all I could find is upgrade scenarios for the server side. Nobody even mentions what happens to source