team-build

completely archive a TFS2012 project

佐手、 提交于 2020-01-24 05:28:04
问题 In TFS 2012 what is the best practice to fully archive a TFS project? Our TFS database has gotten ridiculously large and we need to start archiving things (but of course we do not want to loose anything). I would like to take an abandoned project form the TFS server and completely back it up to an external drive with all its files and its history, workitems and build definitions and then remove all of that from the TFS server. If an abandoned project needs to be reactivated, I would like to

TFS build - deployment/package target does not run

本小妞迷上赌 提交于 2020-01-13 18:05:39
问题 We have a TFS build definition set up where we pass the following extra MSBuild arguments in: /p:DeployOnBuild=true;DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;_PackageTempDir="\\server\build";AutoParameterizationWebConfigConnectionStrings=false This has been detailed elsewhere as a way to have the published files copied to a specific location instead of generating a deploy package. This unfortunately does not work on our build server, however if I run the exact same msbuild command

MSBuild, Extension Pack and TfsVersion

冷暖自知 提交于 2020-01-05 14:11:32
问题 I am trying to implement what I see in this post: TFS and msbuild version number with last changeset. That is, I am trying to get the last Changeset number at build time so I can use it in an AssemblyVersionInfo.cs. I am using VS 2008 and TFS 2008. I have installed MSBuild Extension pack v3.5.9.0 (x64). It is in C:\Program Files\MSBuild\ExtensionPack. Here is my MSBuild project: <Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

MSBuild, Extension Pack and TfsVersion

穿精又带淫゛_ 提交于 2020-01-05 14:11:28
问题 I am trying to implement what I see in this post: TFS and msbuild version number with last changeset. That is, I am trying to get the last Changeset number at build time so I can use it in an AssemblyVersionInfo.cs. I am using VS 2008 and TFS 2008. I have installed MSBuild Extension pack v3.5.9.0 (x64). It is in C:\Program Files\MSBuild\ExtensionPack. Here is my MSBuild project: <Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

TFS build duration report by agent

旧城冷巷雨未停 提交于 2019-12-30 07:08:10
问题 I'm trying to build a report to show the relative efficiency of my various build agents and having trouble getting the info I need out of the tool. What I'd like to have is a simple grid with the following columns: Build Number Build Definition Build Agent Build Status Build Start Time Build Duration Which would let me do something like chart the duration of successful builds of a given build definition on agent1 against the same build definition on agent2 through agentN. How would I go about

How can I copy a TFS 2010 Build Definition?

落爺英雄遲暮 提交于 2019-12-30 02:40:07
问题 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? 回答1: 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

Setting properties in triggered build

白昼怎懂夜的黑 提交于 2019-12-25 14:13:02
问题 When queuing a new build using VS it is possible to pass in arguments to MSBuild which let's you do thing like skipping some steps of the build or do some things conditionally. Is it possible to pass in such arguments to a build that's triggered by a checkin or a nightly build? 回答1: You can check the value of the $(Reason) property in your TfsBuild.proj file. <Target Name="BuildNumberOverrideTarget" Condition=" '$(Reason)' == 'Schedule' "> <MyBuildNumberGenerator TeamFoundationServerUrl="$

trying to get TFS teambuild to build c#>VB6>c# application (ComReference prob?)

半世苍凉 提交于 2019-12-25 05:06:53
问题 I'm trying to get TFS team-build to reliably build a WPF C# app. This app relies on a VB6Lib.dll which we maintain, this VB6Lib.dll itself relies on other C# libs that we also maintain. I've set up a build definition to build (in order): VbDependencies.sln (all libs in this have com interop set, thus the VB6 can find their TLBs) buildVB6Lib.proj (an msbuild file which calls "VB6.exe /make /d" to make the VBLib.dll on the build server, as part of this script I've been copying the VB6Lib.dll

Excluded projects block Team Foundation Build test step

时光毁灭记忆、已成空白 提交于 2019-12-25 04:36:07
问题 A followup to this question, Building select projects only with Team Foundation Build: I’ve now successfully “isolated” three of the projects in a solution with 20+ projects. One of the three projects is a test project, which contains unit tests for one of the other projects (a class library). Team Build is running fine, just the three projects are included in the process. However, when I run the tests in the test project as a part of the build, the tests pass BUT the build fails on the

Building select projects only with Team Foundation Build

眉间皱痕 提交于 2019-12-25 01:49:02
问题 I’m trying to set up Team Foundation Build and so far it’s running ok with builds, tests and code analysis. My problem is, that I can’t figure out how to build just a subset of the projects included in the solution. I know how to use the configuration manager to create custom solution configuration that will build/deploy a selection of my projects. But when I create a new build definition, I only get the default “Debug” and “Release” configurations. alt text http://img686.imageshack.us/img686