tfsbuild

TFS 2017 build as code

自作多情 提交于 2019-12-07 16:28:56
问题 How I can configure the build tasks in 2017 within "build" and "release" as code? I am searching for something like the Jenkinsfiles for the Jenkins Pipelines. Use case is: I need to validate params and then decide which tasks I call in which order etc. based on globally passed parameters Don't have the only source of changes in a web UI Have the configuration in source control Is there may be a possibility or a Plugin available doing this? 回答1: There's no out of the box way. There are

TFS 2017 doesn't build Fakes targets

筅森魡賤 提交于 2019-12-07 14:21:08
问题 I have a TFS 2017 Update 2 on-prem server with VS 2017 Enterprise installed. Our Build contains a Unit-Testing project which contains a Fakes assembly and works locally on the dev machines. When build on TFS, the build fails with The type or namespace name 'Fakes' does not exist in the namespace 'Our.Product' (are you missing an assembly reference?) (i.e. misses/fails to generate the Our.Product.Assembly.Fakes.dll file) I have additionally set up Fakes as suggested here. What baffles me is

How to tell Visual Studio Online VS Test Task to ignore certain nUnit test categories

被刻印的时光 ゝ 提交于 2019-12-07 12:46:13
问题 I am having a hard time telling Visual Studio Online to ignore certain tests I do not want to run during VSO build. I have one set of tests in my test library I do not want them to run during the online build process. Those tests might will take an extremelly long time to complete, so I do not want them to be part of the tests that will execute during the build phase, so the build agent takes as few minutes as possible to complete the build. So, I can mark those test with an NUnit category

tfsbuild delete/destroy - founds no builds for build specification

只谈情不闲聊 提交于 2019-12-07 08:18:26
There are 100s of builds left in our build definition indefinitely, regardless of the retention settings: i want to delete builds with scripts, i am trying run from remote PC. our tfs server is 2015.2. tfsbuild destroy /collection:http://tfsserver:8080/tfs/ProjectCollection /dateRange:01/01/2017~31/12/2017 /buildDefinition:teamProject\Builddefintion output shows: No builds found for build specification . even though there are many builds meets the criteria. any help is appreciated. Thanks! Tfsbuild delete/destroy only availabe for Xaml builds. And need to delete first then destroy . For vNext

Buid definition: Error HRESULT E_FAIL has been returned from a call to a COM component

时光毁灭记忆、已成空白 提交于 2019-12-07 07:21:17
问题 When I add a new work item to TFS, build definition throw a exception as below: Exception Message: Error HRESULT E_FAIL has been returned from a call to a COM component. (type COMException) Exception Stack Trace: at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative.BeginDataStoreInit(IntPtr handle, String defaultCachePath, String instanceId, Int32 cacheVersion) at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.Datastore.BeginDataStoreInit(String

How to configure multiple project in Team Build 2015

半世苍凉 提交于 2019-12-07 04:37:57
问题 How to configure multiple project in Team Build 2015 (using the new task based workflow, not the old XAML builds). Right now I see only one solution can be configured for Visual Studio build task. 回答1: You can easily add more than one build task that explicitly calls a single solution. That will also allow you to control the order that they get built. Just select "Visual Studio Build" from the sea list. This works in Visual Studio Online and TFS 2015. 回答2: As others have mentioned there are

Upgrading to TFS 2013. Parameters tab is blank when queuing up a build

丶灬走出姿态 提交于 2019-12-07 03:09:41
问题 I'm trying to migrate from TFS 2012 Update 2 to TFS 2013. Following the documentation I installed TFS 2012.2 on the new hardware, backed up/restored the databases, then installed TFS 2013 as an upgrade. I can see the Team Project and the builds. The problem is when I right click a build to queue up a new one and click on the Parameters tab I just get a blank panel. My best guess is there was an error loading the parameters. Note those builds worked fine in TFS 2012.2. If I create a new build

reference assemblies for framework “.NETFramework,Version=v4.5” were not found in TFS2010

不问归期 提交于 2019-12-07 02:59:20
问题 I am getting below error, while execute build in TFS 2010: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be

How to set Node.js and NPM version numbers in a hosted VSO Build Agent?

荒凉一梦 提交于 2019-12-07 02:50:47
问题 In Visual Studio Online you can now set build dependencies on the General tab of a build definition. But.. is there a way to set the version of Node.js and NPM? It seems like a hosted build agent is currently using Node.js v0.12.7 and NPM v2.11.3 but I need Node.js v4.2+ and NPM v3.3+. Is there a way to enforce it? P.S.: On-premise VSO build agent is not an option. 回答1: There is now a Node Tool installer available. The link to software inventory shared by Daniel was very helpful, and I

Specifying code analysis setting in TFS 2010 build

做~自己de王妃 提交于 2019-12-07 00:14:32
In the build definition of TFS 2010, when "Perform Code Analysis" set to "Always" how can I specify a custom code analysis rules file? The build flavour is "Release". I prefer not to set "AsConfigured" for "Perform Code Analysis" so that the settings are picked from proj file. Thanks. You should be able to use the "MSBuild Arguments" entry in your build process parameters configuration to provide a /property command line entry that will be passed to MSBuild, thereby allowing override of the CodeAnalysisRuleSet property value to be applied. Depending on how you have set up the