tfs2010

Exclude a config file from the merge process

不问归期 提交于 2019-11-30 23:37:35
问题 Is there a way to exclude a specified file from the merge process? when merging from our production branch to the test branch for the testers to use, we want to exclude a config file which contains the SQL connection string. Preventing the need to edit it post merge. I did see a comment about using the cloak option but i can only see this available for folders not files. Tim 回答1: There are a few different ways you can do this. If you don't plan on changing your config file in the future and

TFS Build 2010 Code Coverage using NUnit

扶醉桌前 提交于 2019-11-30 22:37:48
I was wondering if any of you guys had any experience generating code coverage reports in TFS Build Server 2010 while running NUnit tests. I know it can be easily done with the packaged alternative (MSTest + enabling coverage on the testrunconfig file), but things are a little more involved when using NUnit. I've found some info here and there pointing to NCover, but it seems outdated. I wonder if there are other alternatives and whether someone has actually implemented this or not. Here's more info about our environment/needs: - TFS Build Server 2010 - Tests are in plain class libraries (not

Is it possible to Export TFS 2010 Build Definitions?

牧云@^-^@ 提交于 2019-11-30 21:00:24
I'm cleaning up old build definitions and I want to back them up in case there is something I'm missing, is there a way to export the build definitions using Visual Studio 2010? Sean Lynch You could use the TFS API to export it to a format that you could load it back in with like in How to Move TFS 2010 Build Definition between Projects? . Team Foundation Power Tools commands has a command that will allow one to export/dump out a build definition to a text file. From the Visual Studio command prompt: C:\Program Files\Microsoft Visual Studio 10.0\VC> tfpt builddefinition /dump ProjectName

Remove a Branching Relationship in TFS 2010

不问归期 提交于 2019-11-30 18:37:41
I have a TFS 2010 Team Project that I've just taken over. The branching hierarchy is Dev is a child of Test, Test is a child of Main e.g. Main ----Test --------Dev However at some point in the past someone has done a baseless merge between Dev and Main. this is causing a great deal of confusion as Developers are now accidentally merging code directly from Dev to Main. This is causing pain with unforeseen merge conflicts when code follows the correct process and is merged from Test to Main, as well as potentially creating a scenario where untested code is promoted to the Main branch. Is there

Is MSBuild going to be dead because of Windows Workflow? [closed]

北城余情 提交于 2019-11-30 17:42:56
MSBuild in TFS 2010 has been replaced by Windows Workflow 4.0. It means when you are creating a Build Definition, you won't have a TFSBuild.proj to edit instead you must edit a workflow to customize your build. BTW am I correct if I say Microsoft is not supporting MSBuild in TFS 2010 and learning MSBuild as a TFS 2010 Team Build administrator doesn't worth? And another more question: is Microsoft going to replace Visual Studio Projects' language from MSBuild to something like Windows Workflow? Jim Lamb I'm the Program Manager for the build automation features of TFS, so I'd like to comment on

how to prevent an Gated Check-In to put the Keyword ***NO_CI*** in the Comment

久未见 提交于 2019-11-30 17:26:42
This Question is related to my Question Combining “Gated Checkin” and “Continuious Integration” Builds in Team Foundation Server I Posted this Morning Thanks to @pantelif I know that after a Gated Checkin Build build Continuous Integration Builds are prevented to be triggered as an (in mostly cases) expected behavior. The Team Foundation Server adds to the Check-In Comment the Keyword ***NO_CI*** to do that. In the Question you find here there is discribed that someone accidentally turned off adding this Magic Phase. What I want is triggering Continuous Integration Builds as an expected

How to solve TFS error TF246021 and SQL Server error 500200 while checking in?

旧城冷巷雨未停 提交于 2019-11-30 17:17:51
I'm trying to check in a file, and one file (one and only one file) has a problem while being checked in. This file has been deleted many times and undeleted (due to a conflict in architecture and design) and now TFS throws this error: TF246021: An error occurred while processing your request. Technical information (for administrator): SQL Server Error: 500200 As we saw the log file of the Event Viewer, the problem is: Violation of PRIMARY KEY constraint 'PK_tbl_PendingDelta'. Cannot insert duplicate key in object 'dbo.tbl_PendingDelta'. However, there is no pending changes in dbo.tbl

Change logged in user

天涯浪子 提交于 2019-11-30 16:26:25
问题 When I setup TFS for the first time, I usually use the TFSSetup account, and with this account going to login for the first time. How to login as a different user? How to check who is the cuerrent user? 回答1: Checkout a file in Source Control Explorer and user column it will show your username with which you are connected to TFS. If you want to connect TFS using other credentials, then add the address of your TFS server and the credentials in Credentials Manager(Control Panel->User Accounts-

Custom Check in policy in TFS?

廉价感情. 提交于 2019-11-30 16:22:37
We have some xml files in the our project and whenever we check-in these xml files into TFS, We have make sure before checking-in that we have added those xml files to proprietary application. Now the new employees more often forget to add files into proprietary application before check-in and this is getting serious... We want kinda confirmation dialog (a reminder) asking the developers if they have added the xml files into the app. If yes then check-in otherwise keep it checkedout... Please suggest if such thing is possible and any relevant code or links will be really appreciated. It's not

Remote access to Team Foundation Server 2010

寵の児 提交于 2019-11-30 14:13:05
We are four developers in different locations (in a 100 km radius of each other) tryint o collaborate on a software development project. We would like to install Team Foundation Server 2010 on one of our machines (we are all using Windows 7) and use that as our central source code repository and work items management. However we cannot seem to be able to configure TFS to accept remove connections (through Visual Studio). Is it possible to use TFS in this manner? TFS is just a bunch of web services and should be set up for remote access out of the box. Things you'll probably need to configure.