tfsbuild

Publish Visual Studio extension to marketplace.visualstudio.com with TFS build pipeline

时光怂恿深爱的人放手 提交于 2019-12-24 06:35:20
问题 I need to publish a Visual Studio extension to VS market place through the TFS CI build pipeline. I found following article on publishing extension to market place using command line, is there any deployment task in TFS which can use for this? Publish from the command line 回答1: You can use the Visual Studio Team Services Developer Tools for Build and Release tasks. Make sure you generate the PAT with teh correct permissions. In order to publish extensions you'll need "Marketplace (Publish)",

How to change the build timeout on TFS 2015 XAML build agent

北城以北 提交于 2019-12-24 05:18:09
问题 Using the on premise TFS 2015 XAML build agent. I need to change the job timeout value. Preferable on a build definition by build definition basis. However if I have to just changing the agent timeout value is fine as well. It appears that the timeout is current 30 minutes. I see no options on the Team Foundation Server Administrator Console, and no options in the build definitions. Please note this is not a vNext build 回答1: You can change the execution time by editing the XAML build

Treat Warnings as Errors on TFS level VS2017

帅比萌擦擦* 提交于 2019-12-24 04:18:14
问题 I have been struggling with this for a while. I have searched and tried different things but it does not work, so I am posting this here. I want to treat warnings as errors when building on TFS level and this option has not been working. I have done it like suggested on other posts: I have tried: /p:TreatWarningsAsErrors=true and /p:TreatWarningsAsErrors="true" Enabling TreatWarningsAsErrors However, that as been unsuccessful as when building I have the following result: The warning is not

Having trouble enabling the NuGet version of XUnit.NET on Team Build 2013

有些话、适合烂在心里 提交于 2019-12-24 03:43:33
问题 I would like to use Xunit as a test framework. I've created test project, added two nuget packages (xunit and xunit.runner.visualstudio) and everything works great. Visual Studio discover tests. But how can I configure TFS 2013 build to discover that tests? What's the proper way to do that? I found a lot of tips but I think all are related to old test runner which was downloaded as Visual Studio Extensions instead of the current NuGet package. 回答1: With the introduction of the NuGet based

TFS 2010 Build: Sporadic failure in the process

时间秒杀一切 提交于 2019-12-24 01:57:08
问题 We have a situation where our builds have stopped executing in a stable manner. At a rate of about one every three we receive either TF215096 or TF215097 errors & the Build fails. If we then restart the Build controller, it works again - until next time. The errors we get are: TF215096: An error occurred while connecting to controller vstfs:///Build/Controller/1: There was no endpoint listening at ht*p://XXXX that could accept the message. This is often caused by an incorrect address or SOAP

copy files from TFS to build drop location using copy directory activity

主宰稳场 提交于 2019-12-24 01:45:32
问题 my case , i want to copy from Folder TFS to build drop location when my build succeeded i am using copy directory activity, in copy activity directory destination directory =" Build Drop Location " BuildDetail.DropLocation source directory =" TFS Floder " i know that build agent get source code from TFS to its machine on to this path $(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath) , so how i want to get this path to use it in copy activity 回答1: There is property in build workflow

TFS 2015 / vNext Build - Set Build.Clean Control Variable in a build step

只愿长相守 提交于 2019-12-24 00:45:21
问题 Is it possible to set the Build.Clean control variable during a build step (Not at Queue Time), based upon the way the build is queued? For instance, I have a build that if queued manually during the day, I want it to run Incrementally. If it runs on its schedule in the middle of the night, I want to have it do a Build.Clean, recreating the Binaries (b) folder on the build agent. It seems like this control variable has to be set at queue time, because the build runs this operation on the

VSTS Extension - Storing parameters from build task and call a web service from summary tab

不羁岁月 提交于 2019-12-24 00:43:26
问题 I need to display the result of a custom build task in summary tab (“ms.vss-build-web.build-results-section”). In order to do this I need to retain some data from build task and use it to call a web service from summary section. Is it possible to store data in a variable using Extension Data Service and use it in summary page? What should be the best approach for this? Thanks in advance. 回答1: I have attached my build task data using a Logging command https://github.com/Microsoft/vsts-tasks

TFS Online Build Fails on local Build Server with TF270016 / TF270002

不想你离开。 提交于 2019-12-24 00:12:15
问题 We're using Visual Studio Online, but we have local Build Controller and Build agent. This has been running fine for the past 6 months or so, but just this week the builds have consistently failed. The software itself appears to build successfully, and the tests also seem to pass, but it fails due to an error during the publication of the log files (see error below). The build uses an unmodified Default Template, and is setup so that it "does not copy output files to a drop folder" (in the

DotNet CLI build fails for VS .NET Core project when run from TFS 2015 build agent

喜欢而已 提交于 2019-12-23 23:57:19
问题 Problem The command dotnet build ... fails when run from TFS 2015 build agent with the following errors: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): Error : Object reference not set to an instance of an object. C:\Program Files\dotnet\dotnet.exe compile-csc @(path to dotnet-compile.rsp) returned Exit Code 1 Steps to Reproduce Create an ASP.NET Core 1.0 web application with Visual Studio 2015 (Tools Preview 2). Commit solution to