tfs2010

TFS 2010 + MSDeploy when solution has multiple web applications

戏子无情 提交于 2019-12-03 20:54:21
问题 I have two solutions SolutionA.sln WebApplication1.csproj SolutionB.sln WebApplication1.csproj WebApplication2.csproj I also have two TFS 2010 build configurations BuildConfigA should build SolutionA and deploy WebApplication1 BuildConfigB should build SolutionB and deploy WebApplication2 (but not WebApplication1) To prevent BuildConfigB from trying to deploy WebApplication1, I put a <DeployOnBuild>false</DeployOnBuild> in WebApplication1.csproj. But that also prevents BuildConfigA from

Running Async Task unit tests with TFS 2010

旧时模样 提交于 2019-12-03 20:11:58
I am writing an application that is written in VS 2012 targeting .NET 4.0 using the Async library. My auto builds run on a TFS 2010 build agent that has VS 2012 and .NET 4.5 installed. I read everywhere that if your unit test is async it must have the async Task TestMethod() signature (rather than async void TestMethod() ). However when I do that my build server gives me this error for that method: Test method marked with the [TestMethod] attribute must be non-static, public, does not return a value and should not take any parameter. for example: public void Test.Class1.Test(). I have read

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-03 17:12:51
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. (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 modify the Configurations to Build. 来源: https://stackoverflow.com/questions/3498224/how-do-i-force-my-tfs-2010

How to fix TFS incorrect branching

会有一股神秘感。 提交于 2019-12-03 17:09:13
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 flow: Main -> Integration -> Development ? As far as I know, there is no way to make this change behind

TFS Meltdown - How can I recover shelved changes

北战南征 提交于 2019-12-03 17:06:19
I had my working folder set to a RAM drive. During the night there was an extended power outage, the UPS ran out and my machine went down. Thankfully I shelved my changes before I went home and that shelveset is visible in Team Explorer. The changeset includes the project file and some new files which have not yet been added to source control. I'm attempting to recover the affected files but am getting errors: Attempting to view the shelved files gives TF10187 (or a general, unnumbered) The system cannot find the file specified even though I can see them in the Pending Changes list. Attempting

TFS 2010 API - Get work items from merge

别等时光非礼了梦想. 提交于 2019-12-03 16:08:59
I need to send an email on completion of a build in TFS 2010 which details the work items associated with check-ins that have been compiled as part of this build. This works no problem via use of the associatedChangesets variable available in the build workflow. However, in a production situation, we will merge changes from our Development branch into a Release branch. At this point, the build considers there to have only been one change - which is the aforementioned merging of Development into Release. Obviously this is fairly useless as we need to find out which changes where made in the

Why is TFS ignoring a project in my solution?

两盒软妹~` 提交于 2019-12-03 14:25:14
问题 I have multiple projects in our solution that is in our TFS 2010 repository. I've added about 5 new projects to this solution in recent days. I have found that for one of the projects, that the project file itself will not check-in to TFS. All of the artifacts contained in this project are working fine; they are checked in and I can see them in the Team Explorer. But I cannot see the project file in Team Explorer, nor is their an icon next to the project in Solution Explorer that would

Nuget repository per branch with TFS

非 Y 不嫁゛ 提交于 2019-12-03 13:36:53
问题 I have a TFS environment with the following branching setup Dev - Primary working branch for developers Main - Stable, releasable branch Hotfix - For fixes to production code that aren't part of a normal release cycle We're setting ourselves up to use Nuget, and I want to configure things such that code in the Dev branch pulls packages from the 'Dev' nuget repository, main from the 'Main' one, etc. Now, I've figured things out to the point where I have a single file sitting the root of my

How to configure TFS burndown chart to be for effort points not task hours?

一曲冷凌霜 提交于 2019-12-03 13:19:27
问题 My question is really simple, hopefully the answer will be too. You all know the task burndown in TFS online right ? Here's an example Obviously, the y-axis is the remaining hours of tasks. I want to change that to be the remaining effort points of Product Backlog Items and Bugs. Can I do that ? If so, How ? 回答1: Yes. You have to edit the "Sprint Burndown.rdl" file in your process template (it's in the reports folder). Particularly, you have to change this field: <Field Name="Remaining_Work">

TFS Execute Custom Code on a Work Item Transition

限于喜欢 提交于 2019-12-03 12:53:07
问题 I'd like TFS 2010 to run a bit of custom code whenever a particular workflow transition happens. Is that possible? I've found documentation about Custom Actions, which seem to be actions that can automatically trigger work item transitions (am I getting that right?) I also found Custom Activities, which are related to Builds. But nothing that serves this particular requirement - am I missing something? Thanks for your help! 回答1: This is very doable. It is so doable, that there are many ways