tfsbuild

Visual Studio/TFS check-in migration

社会主义新天地 提交于 2019-12-24 20:02:55
问题 Is it possible to copy checked in files to a specific folder using a build definition or script? For example, if a check-in a file that is in a folder in TFS, on check-in can I copy that file to a server that has the same folder structure? TFS $/Website/files/index.html Copy To \ws-file01-dv\files\index.html 回答1: You could easily setup a TFS Build that is triggered on Check-In (CI Build) that simply does a Get Latest then copies the source to a file share. You would have to modify the

Custom build task is not deleted

不羁岁月 提交于 2019-12-24 19:06:12
问题 I'm trying to delete a Build Task using tfx-cli . C:\Users\Work>tfx build tasks list TFS Cross Platform Command Line Interface v0.4.11 Copyright Microsoft Corporation id : 122d5ad0-61a1-11e6-b9c1-5b12bd371fa9 name : VersionAssembly friendly name : Version Assembly visibility : Build description : Update the assembly version number to match the build number version : 1.0.9 I now have the Task ID. C:\Users\Work>tfx build tasks delete --task-id 122d5ad0-61a1-11e6-b9c1-5b12bd371fa9 TFS Cross

PS New-Item : Access is denied runs fine from command line but not during execution from TFS build

喜夏-厌秋 提交于 2019-12-24 18:38:31
问题 I'm trying to create a script that's triggered by a TFS build that creates a new directory on a network share and then saves the location of that share in an environment variable. Here's the (abridged) script as it originally was: $NewPathForFiles = "\\NetworkShareName \" + "ProductName "+ $MajorBuildNumber New-Item -Path $NewPathForFiles -ItemType directory # Create the folder But when I run the the script from TFS I get this error: New-Item : Access is denied I can run the script from the

How can my first Build definition work if is getting broken after “Queue a new Build” in Visual Studio 2010?

邮差的信 提交于 2019-12-24 17:22:31
问题 I am trying to use my automated coded UI test (CUIT) with Microsoft Test Manager 2010 in a physical enviroment. Created a Build definition Defined a drop folder for Builds and Shared this folder as recomended here Created a Build service in TFS 2010 as "Interactive Process" Created a Build Controler Created a Agent Controler I dont remember in which order (In case this is important) ERRORS FROM MS Visual Studio 2010 (For IMAGE Plese go HERE) Error One (1) TF215097: An error occurred while

TFS 2013 build agents sharing common build folder

偶尔善良 提交于 2019-12-24 14:03:50
问题 I'm using TFS 2013 on premises. I have four build agents configured on a Build machine. Several build definitions compile ASP .NET websites. I configured the msbuild parameters to deploy the IIS application to the integration server, which sits out there in Rackspace. By default webdeploy does differential deployments by comparing file dates. In my case that's a big plus because copying files from our network to Rackspace takes quite some time. Now, in order to preserve file dates the build

Update Build Controller for C# 6 /.NET 4.6 Applications

心已入冬 提交于 2019-12-24 13:33:18
问题 We're still using TFS 2010 and it can't seem to build anything with new C# 6 syntax. I tried to follow this post to update the ToolPath property in the process template but it didn't help. What else can I do? Install VS 2015 on the build server? UPDATE I realized that in the process template there is more than one "Run MSBuild for Project" place that I had to update the ToolPath property. Actually, the one I updated wasn't the right place. After I update the property at the right place the

TFS 2010 Linked Files failing the build

情到浓时终转凉″ 提交于 2019-12-24 13:26:31
问题 I have a two Visual Studio 2010 solutions - one contains 4 files in a class project, the other has links to those files via the "Add as Link" (also in a class project). These solutions both build and run on my machine without any issues. I have checked these solutions into TFS and created a build definition which is configured to build both of them (the one with the actual files first if that matters). However, when I run the build it fails saying that "The type or namespace name

Specifying agent at queue build time with TFS 2015

风流意气都作罢 提交于 2019-12-24 09:53:23
问题 Is it possible to configure a build so you can set which agent you want it to run on when you manually queue a build? 回答1: Do you have any special in your scenario? Generally, in VSTS you can select which agent (Hosted) you want to run directly when you manually queue a build: UPDATE: If you are using on-premise TFS (TFS 2015 in your scenario) or Private agent for VSTS. Then you can set Demands when you queue a build. You can also queue build with the REST API and specify the demands which

TFS build custom conditions for running a task - check if specific previous task has failed

删除回忆录丶 提交于 2019-12-24 08:49:08
问题 TFS build allows to specify conditions for running a task: reference. The condition I would like to define is: a specific task [addressed by name or other mean] has failed. This is similar to Only when a previous task has failed , but I want to specify which previous task that is. Looking at the examples I don't see any condition that is addressing a specific task outcome, only the entire build status. Is it possible? any workaround to achieve this? 回答1: It doesn't seem like there's an out-of

Why does msbuild fail while building within VS builds fine?

孤者浪人 提交于 2019-12-24 07:04:10
问题 We have a complex solution (22 sub-projects, one of which is a website) that won't build using TFS Build. If I open the solution on the build server the code compiles fine inside of Visual Studio, but if I open a CMD prompt and try MSBUILD piccsserver.sln I get this error: "C:\TFS2017_agent\_work\4\s\CorePlatform\PICCS\Main\src\piccsserver.sln" (default target) (1) -> "C:\TFS2017_agent\_work\4\s\CorePlatform\PICCS\Main\src\PICCS_WebHost.metaproj" (default target) (24) ->(Build target) ->