tfs2010

tfs: how to unlock changes

橙三吉。 提交于 2019-12-05 05:18:27
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/project I get no errors, but when I go into Visual studio 2010 (We're using tfs 2010 as well) The files

Forcing a TFS2010 workflow build to FAIL instead of PARTIALLY SUCCEED

天大地大妈咪最大 提交于 2019-12-05 03:59:58
I currently have a custom workflow activity to run an external process, after the solution has been compiled successfully, that returns an ExitCode <> 0 if the external process has failed. Once I know that the process has failed, I want to set the build status to FAIL (as you would see if code has not compiled) so I have added a SetBuildProperties activity which will set the Status property to BuildStatus.Failed but this only seems to result in giving a Partially Succeeded build when the build is finished. I have tried setting the build's compilation status to failed inside my custom activity

Branching plan required?

时光怂恿深爱的人放手 提交于 2019-12-05 03:56:25
问题 In the TFS Branching Guide 2010 v1 (here) the ALM Rangers gives you 4 branch plans (scenarios) at the moment. But in a related project, TFS Guide, also from the ALM Rangers (here), they offer a scenario "No Branch". This is good starting point, because having for example 2 branches (dev and main) will slow down the velocity and does introduce more complexity because of all the FI (forward integrate) and RI (reverse integrate) handling. It looks for me that ALM Rangers do not sync both

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

爷,独闯天下 提交于 2019-12-05 03:36:31
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 that way which works fine. How can I discover why my Work Item won't save? Here's my code: // get a

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

一个人想着一个人 提交于 2019-12-05 03:26:20
问题 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. 回答1: (Assumption: you are using the DefaultTemplate.xaml) When you edit the build definition, you can locate the Process at the left side of the screen. Open the Items to build node and

TFS Build doesn't download missing NuGet packages

南笙酒味 提交于 2019-12-05 03:08:57
I've been trying to setup my build server (Team Foundation Service) to automatically download 3rd party libraries and successfully build, but I don't know how to do this. Is there a way ? Radoslav Minchev you need to enable package restore for the solution you want to build on the build machine. This is at least what I did to get NuGet to work with Team build. Here's a link about package restore and how to use it during build http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages To build upon what John Korsnes says above in his comment (because that alone wasn't enough

TFS/Visual studio 2010: Clear cached password for TFS in Visual Studio 2010, Need it to ask me to login again

六眼飞鱼酱① 提交于 2019-12-05 02:56:30
I am using Windows 7 and i installed TFS Server and connected to it from my VS 2010 install. It prompted me for a password so I entered the admin password. All went well, now i added myself as a user but i can't get it to ask me to login again. It is remembering (caching) the password. Hence it always logs me in as Administrator. I search the Internet and some people recommend ClearCred.exe which ships with VS SDK but it doesn't anymore ... And then checking the managed credentials in windows 7, i have also checked this and i see nothing with regards to my cached TFS password. I also tried

How to fix TFS incorrect branching

╄→尐↘猪︶ㄣ 提交于 2019-12-05 02:46:10
问题 We have a project that is in TFS 2010 and was incorrectly branched. We want to fix it. This is the current structure we have: Development Integration Main The problem is that Main is a branch of Integration , which in turn is branch of Development , when it should be the very opposite. In other words, first it was created Development, then branched Integration and then Main. Now all three branches have same code (were merged). So, Is it possible to fix the TFS references to have the right

How do I make a TeamCity build appear in the TFS Build Explorer?

别等时光非礼了梦想. 提交于 2019-12-05 02:43:09
We are using TFS 2010 for source control and project management, and TeamCity 6.0 for performing builds and build reporting (CI and daily deployments for testers). Setting up TFS source labeling in TeamCity to match the build number was very straightforward, but I cannot find a way to link this back to TFS Build Explorer. We want link these to be able to assign bugs to particular builds through TFS for the daily tester deployment builds. I don't know if you can, at least without some heavy VSX work or direct manipulation of the database, get the TeamCity builds to show up in the TFS Build

Why are unchanged files automatically checked out in TFS?

做~自己de王妃 提交于 2019-12-05 01:55:49
问题 In an ASP.NET project, whenever I edit an .aspx (or .ascx ) file, TFS automatically checks out all the corresponding .aspx.cs and aspx.designer.cs . I understand that changes to server-side tags on the .aspx can affect the server-side files as well, but as long as I don't actually change anything in them, shouldn't the .cs s wait with the checkout? Environment: VS2013, TFS2010. Note: The only real negative affect here is that before checking in, I need to go over each .cs file and make sure I