tfsbuild

TFSBuild/MSBuild and Project Reference vs File Reference

孤者浪人 提交于 2019-12-22 04:42:02
问题 We Have a large VS solution using project references which is build by TFS Build like so: Solution - Project 1 - Project 2 - Project ... - Project N Because the solution is too large we have several smaller solutions which we use day to day: SubSolution - Project 1 - Project 19 The problem is that developers working on SubSolution find that it is not building because the project references could not be found, so they change the projects to use file references. This then goes on to break the

On Premise Gated Check-in Fails with “The shelveset … could not be found for check-in”

左心房为你撑大大i 提交于 2019-12-22 04:06:17
问题 I am having an issue with the new TFS 2015 Update 2 Gated Builds. After attempting a check-in the gated build queues just fine, every part of the build is successful until it reaches the last step of "Check in gated changes". When I look at the log for that step I get: [Error]The shelveset _Build_5427;Build\ad8fe058-f936-4908-91de-57e7bc6a2f9d could not be found for check-in When I look at the 'Get Sources' log, I see: 2016-04-01T19:11:12.3062092Z tf get /version:C6213 2016-04-01T19:11:13

Build issue when using package restore in Team Foundation Service

一世执手 提交于 2019-12-22 03:42:56
问题 I'm trying Microsoft Team Foundation Service ( the Cloud TFS ) and using automated hosted build and package restore. It always fails, but according to log it seems that the package restore works fine but it's a problem when locating the binaries we got through the package restore, it's like it doesn't look into the right folder. LOG: Build started 4/9/2013 10:24:37 AM. Project "C:\a\src\ValuePlan.Client.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution

Convert C# logic to powershell for TFS

旧街凉风 提交于 2019-12-21 19:55:56
问题 I have a C# program which build me a TFS build definition. I want to do the same code in a powershell script. So far, I have been able code the script which will create me a new build definition in TFS. However, I have trouble setting Process section of the build definition. I need to convert the below code in C# to powershell and all attemps I have made did not work. //Set process parameters var process = WorkflowHelpers.DeserializeProcessParameters(buildDefinition.ProcessParameters); //Set

Cannot add queue to existing TFS 2015 Build agent pool

↘锁芯ラ 提交于 2019-12-21 17:51:54
问题 Trying to set up build server after upgrading to TFS 2015. The way I envision is: Single Agent Pool, that will have 3 queues: 1. Nightly builds 2. CI builds 3. Gated/validation builds. Each of them will have some agents, the goal is to have some control, to make sure nightly builds wouldn't consume all agent, so gated queue will always have some available agent. The problem I have now is when I try to add new queue, the option "Use existing pool" is disabled, I can only add queue with

Tagging a TFS Git repository during a release

我的未来我决定 提交于 2019-12-21 05:02:59
问题 I am setting our build/release environment using TFS 2017. I set up the Build to run automatically after each commit, and when we are ready to release a version of our application, a Release is manually created, and then deployed to various environments. We would like to tag released versions in our git repository in order to easily know which git revision correspond to a binary. The "Label Source" setting in the Build definition allows to tag a git revision at build time, but since we build

TFS build, one build for many branches

旧街凉风 提交于 2019-12-21 04:19:08
问题 We use TFS source control and have two build controllers (one VS2010 the other VS2012). We use the default build workflow template bar a few custom changes. As we have many branches, how would we go about changing the workspace based on the desired branch? I was thinking of adding a parameter for the branch ( $\oursourcecontrol\branches\main ) and then just passing it as a variable in to the get workspace part of the workflow. Or is there a better way of doing it? 回答1: You currently can't and

How to get PAT from on-premise TFS2015

♀尐吖头ヾ 提交于 2019-12-21 03:52:41
问题 We want to migrate our custom steps from XAML build to new build task in TFS2015 on-premise. I installed NodeJS and tfx-cli but when tfx-cli want to connect to TFS I need to provide pat (personal access token) but I cannot find where I can get it. All samples is for VSO but not for on-premise TFS2015. Is it possible to get PAT from on-premise TFS2015? 回答1: TFS 2015 doesn't support Personal Access Tokens, this feature was introduced with TFS 2017. In the mean time you'll either need to

How do I change the build directory that MSBuild uses under Team Foundation Build?

柔情痞子 提交于 2019-12-21 01:22:21
问题 I'm getting the following error when trying to build my app using Team Foundation Build: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3554: Cannot write to the output file "obj\Release\Company.Redacted.BlahBlah.Localization.Subsystems. Startup_Shutdown_Processing.StartupShutdownProcessingMessages.de.resources". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must

MSBuild TFS Build Number

天涯浪子 提交于 2019-12-20 20:03:56
问题 I have been using SVN for a little while now. recently on a project I am using TFS. With the builds I like to append/update the build version number on the project output. I do this on the masterpage so that it is clearly visible on the application. Since the application could be running on multiple machines, it is handy information on which verison are running. I achive this in SVN world as: <!-- Import of the MSBuildCommunityTask targets --> <Import Project="$(MSBuildExtensionsPath)