tfs2010

How can I copy a TFS 2010 Build Definition?

半城伤御伤魂 提交于 2019-11-30 08:21:43
Is there any way to copy a build definition? I work in a mainline source control methodology which utilizes many different branches that live for very short periods (ie. a few days to a week). I'd really like to copy a build template and just change the solution to build. Is there any way to do this? You can write an add-in to do it. Here's the code to copy an existing build definition: static IBuildDefinition CloneBuildDefinition(IBuildDefinition buildDefinition) { var buildDefinitionClone = buildDefinition.BuildServer.CreateBuildDefinition( buildDefinition.TeamProject); buildDefinitionClone

Build error in tfsbuild with database project

无人久伴 提交于 2019-11-30 08:21:34
I have setup my .NET project in TFS Build. It builds fine locally, but I am getting this build error on the server: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. I have no idea what it is, even googling didn't help much. My solution has some database projects. What is the issue here and how I can fix it? Preet Sangha You need to install the SQL Server Data Tools on all build agents . When installing

How to find out who ran the TFS Destroy Command?

早过忘川 提交于 2019-11-30 07:28:29
I have reason to believe that the TFS Destroy command was run on my server. Does TFS provide a way to find out who and when it was done? TFS logs all user-initiated commands in the database for 14 days. Try connect to your Tfs_Collection database and run the following query: SELECT * FROM tbl_Command WITH (NOLOCK) WHERE Command = 'Destroy' Additionally, any time a Destroy command is run, an event is logged to the Application Event Log on the Application Tier that processed the command. I guess this is related to your earlier question. I don't think TFS provides an easy way (or any way) to do

Stop Refresh inside TFS Build window in Visual Studio

时光毁灭记忆、已成空白 提交于 2019-11-30 07:05:03
Is there a way to stop the constant refreshing inside Visual Studio when looking at a TFS Build? Using VS 2010 SP1 and TFS 2010 SP1. When watching a build in the Build window, the screen refreshes every 10 seconds or so. Not a big deal except during every refresh the window resets to somewhere in the middle of the page if looking at the bottom of the build window (and it scrolls). So annoying. I'd rather manually refresh to watch the build run instead of scrolling down to the bottom, then once getting to the bottom, scrolling again because the window reset. Is there a way to turn off this

MSDeploy batch file does not handle quotes anymore

空扰寡人 提交于 2019-11-30 06:41:56
As part of our build process we deploy our web applications using MSDeploy. This worked perfect until a few weeks ago (I think when we updated our build/TFS server to SP1 of TFS 2010). In our build definition there is a step to invoke a process. This process will call the generated deploy.cmd file and passes in a couple of additional parameters. This worked fine for a long time, but now we get this: Error: Unrecognized argument '"-skip:objectName=filePath,absolutePath=.*cmsservices.config"'. All arguments must begin with "-". As described in the help we pass the additional arguments in with

TFS: List changesets that have not been merged

这一生的挚爱 提交于 2019-11-30 05:58:27
问题 Environment TFS 2010. Three branches: Main , Development and Release . Question I would like to easily retrieve a list of changesets that have not been fully merged into all three branches. For Example Lets says I have a changeset, 100, that was a bugfix and checked in directly into Release . I can use the Tracking feature to visualize that it exists only in Release. But that requires me to know to look at that changeset. I'm looking for a generic list that would show me any changeset that

How to get specific version of folder from tfs without creating a workspace?

感情迁移 提交于 2019-11-30 05:06:10
I would like to get the source code of a project at specific time (changeset). So I need do download whole folder. I would like to do it for different times and handling a different workspace is not very convenient. I know about TFS Get Specific Version into separate folder (with workspace) and Need command to get a file from TFS without a workspace (one file). Is there some solution for whole folder without creating a new workspace? Edit I have found the accepted answer too ambitious. I needed something more simple. Assumptions: I can access TFS from Visual Studio on my computer I want to get

Remove a Branching Relationship in TFS 2010

馋奶兔 提交于 2019-11-30 03:04:28
问题 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

TFS 2010 Build Automation and post-build event

ε祈祈猫儿з 提交于 2019-11-30 01:53:40
In the project I've inherited, the original developer used a number of post-build events in his Visual Studio projects to copy around DLL's and stuff when building inside VS. This is causing some grief now that I'm trying to move these things to the TFS 2010 Build system. I was hoping to be able to create a new "Continuous" project configuration, and exclude those post-build events from Visual Studio in that configuration - but it seems those calls aren't configurable based on your project configuration.... Any ideas? Is there something I could check for to know I'm running under TFS Build and

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

时光毁灭记忆、已成空白 提交于 2019-11-30 00:50:27
问题 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