tfsbuild

Not all TFS Build type files are getting copied

China☆狼群 提交于 2019-12-08 12:26:42
问题 Because I have several builds sharing some assemblies containing common build tasks, I have one TFSBuild.proj for all builds and import different targets depending on the build, like the following: <Project DefaultTargets="DesktopBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <Import Project="Build_1.targets" Condition="'$(BuildDefinition)'=='Build_1'" /> <Import Project="Build_2.targets" Condition="'$(BuildDefinition)'=='Build_2'" /> <Import Project=

How do I install a SQL Server on the hosted build agent in Visual Studio Online?

。_饼干妹妹 提交于 2019-12-08 11:14:44
问题 One of our customers uses Visual Studio Online ( http://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx ) which is based on capabilities of Team Foundation Server (TFS) We were researching how to do automated Builds and automated Unit Tests using the Visual Studio Online account. Using Visual Studio 2012 IDE, I was able to setup a build in the Hosted Build Service. However, my Unit Tests need a Microsoft SQL Server Database to run properly, which I have installed on

Restoring NuGet packages from custom Nugetserver using TFS Build 2015

余生颓废 提交于 2019-12-08 05:47:27
问题 We have a large number of solutions in our source control, which all use NuGet packages from a custom source (http://nugetserver/nuget). All solutions restore and build successfully locally within Visual Studio. Using the new TFS 2015, our build definition looks like this: The NuGet Installer step is there for us to restore our packages from a custom resource: There is however no NuGet.exe file in the custom NuGet server directory. As suggested here tried just setting the -source to "https:/

TFS 2015 Build vNext recursive variable substitution

本小妞迷上赌 提交于 2019-12-08 05:34:07
问题 Is it possible that the variable substitution is not recursive? Example1: Variable Value SqlInstance (localDb)\mssqllocaldb DbCatalogName FooDb ConnStr data source=$(SqlInstance);initial catalog=$(DbCatalogName)$(Build.BuildId); During the build the connection string substituted to: data source=(localDb)\mssqllocaldb;initial catalog=FooDb3211; This configuration works perfectly. But if i move the BuildId parameter to DbCatalogName variable it won't be substituted. Example2: Variable Value

How do I modify a VS Build Workflow if VS can't find any custom DLLs it uses?

自作多情 提交于 2019-12-08 04:53:20
问题 I'm using TFS Server 2010. In my source I have a folder called BuildProcessTemplates . This has a child folder called Custom Assemblies . Now, when the build runs, it happily loads the DLLs in the Custom Assemblies folder and does its thing. I need to modify the .xaml file that defines the workflow of the build. If I double click on the .xaml file VS tries to open it but throws an error saying it can't find certain types that I know are defined in the DLL that is in the Custom Assemblies

Does TFS Record the Parameters to a Build?

≯℡__Kan透↙ 提交于 2019-12-08 03:58:00
问题 When queueing a new build, we get the option to change the default parameters. Do these changes get recorded somewhere, either in the TFS Operational Store or in the TFS Data Warehouse? 回答1: These parameters should be available in the Team Foundation Build Operational Store, according to the behavior described in http://msdn.microsoft.com/en-us/library/ms244687.aspx. 回答2: My advice is to log them as part of the build workflow, then the log will be stored with the build outputs. If you read

VSTS build summary tab with visible condition or Task dependency

戏子无情 提交于 2019-12-08 03:33:27
问题 I try to add new custom tab to summary page for build result, but which will be added only for builds with my custom build Task. For example, Task "publish artifacts", only if this task was added, the tab "artifacts" added in summary page. I want the same behavior for my task and tab. For now, I've just added in vss-extension.json, in "contributions" { "id": "build-info-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view", "targets": [

TFS 2012 automatically build projects that depend on current one

醉酒当歌 提交于 2019-12-08 01:40:55
问题 Ok so I have to admit, I'm very new to all of this build automation stuff. But basically what I'm wondering is if there is a way to wire up my build definitions in such a way that if I have a case like so ProjectA produces ComponentA.dll ProjectB references ComponentA.dll and produces ComponentB.dll ProjectC references ComponentB.dll then when I make changes to ProjectA and check them in, the build process would automatically also build ProjectB, and finally ProjectC, and report any errors.

TFS Build 2015 not publishing test results

Deadly 提交于 2019-12-07 22:06:44
问题 UPDATE (I have restructured this question with a new and basic solution and build as the same problem exists there) I'm using the new build system in Tfs 2015 and I'm using Update 1. I have noticed that on the build summary screen, no test results or Code Coverage results are submitted: I have a test step which runs and contains results and I have a .trx and a .coverage file but the test step log contains the warning: ##[warning]Failed to publish test results: The value for the Build.Id

Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]

爱⌒轻易说出口 提交于 2019-12-07 18:28:37
问题 I am trying to put a build together on TFS that starts another build within a different TFS collection by using a PowerShell script that a coworker wrote and had working previously. However, this script was written and tested on VS 2015 Professional and I am using 2017 Enterprise. When I go to run this script in my build I get the following error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] when it hits this: $tfs = [Microsoft.TeamFoundation.Client