team-build

Team Build: The path 'Path' is already mapped in workspace 'workspace' error even after deleting all workspaces on build agent

白昼怎懂夜的黑 提交于 2019-12-03 04:30:35
I have this problem when I queue a build. The build dies with the error The path C:\[Path]\Sources is already mapped in workspace [Server Name]. the same as this question . but I've removed all the workspaces on the build agent by running this command: tf workspaces /remove:* and also by deleting the TFS cache folder. I've also restarted the server, but the error keeps happening on each build. Glenn Slaven Ok, so the solution ended up being fairly similar to what YeahStu posted on here . I changed the Build Agent's working directory from $(Temp)\UI\$(BuildDefinitionPath) to $(Temp)\UI\$

TFS Build server - CSC : fatal error CS2008: No inputs specified

a 夏天 提交于 2019-12-03 04:04:49
问题 We get the above error message on our build server, when we build the solution or the specific project that the error refers to. We can build the solution without any problem using visual studio (also on the build server), however it fails with the above error when running msbuild. Any Ideas? 回答1: I found the solution. There is a "bug" in msbuild, that results in it failing when there are not source files in the project. For example Filename.cs. Our project only had xml and other file types.

MSBuild & TeamBuild - BuildInParallel failing because of MSB3021 file permission violation

孤街浪徒 提交于 2019-12-03 03:42:05
问题 I maintain the build of a fairly large piece of software, consisting of roughly 350 csharp projects. Our build time for a debug built clocks in at about 17 minutes. I have been looking at ways to improve build time, and the BuildInParallel property did look intriguing. Especially since we have a quad-core server doing our builds, it should really be able to take advantage of the computing power. But alas... After setting the property, modifying the config file for the build agent and

MSBuild & TeamBuild - BuildInParallel failing because of MSB3021 file permission violation

笑着哭i 提交于 2019-12-02 17:08:01
I maintain the build of a fairly large piece of software, consisting of roughly 350 csharp projects. Our build time for a debug built clocks in at about 17 minutes. I have been looking at ways to improve build time, and the BuildInParallel property did look intriguing. Especially since we have a quad-core server doing our builds, it should really be able to take advantage of the computing power. But alas... After setting the property, modifying the config file for the build agent and restarting it, the first run really did look promising, way faster than normal, right up until the point where

How do I deploy using MSDeploy in Team Build 2010 using the WMSVC service and NTLM authentication?

丶灬走出姿态 提交于 2019-12-02 17:06:49
I am trying to deploy using Team Build 2010 to a Windows Server 2008 R2 web server. My build server agent is setup to run under a Windows domain account. I have successfully given this domain account permissions on my web server for the deployment using the IIS Manager permissions. This account is not an Administrator on the web server. I can get the build deploying just fine using the following parameters: /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False /p:MSDeployPublishMethod=WMSVC /p:AllowUntrustedCertificate=True /p:MSDeployServiceUrl=webservername /p

Use $(SolutionName) in the MsBuild commandline parameters

☆樱花仙子☆ 提交于 2019-12-02 01:19:57
问题 In order to emulate the "PerProject" option in TFS 2013's XAML build in the new Build 2015 task based builds, I'd like to be able to pass the SolutionName to the msbuild commandline arguments without having to manually set it every time. I'd like to do something like: /p:OutputPath=$(Build.BinariesDirectory)\$(SolutionName)\ Where I'd like MsBuild to infer the $(SolutionName) parameter. But when passing this on the commandline, the new task runner will substitute the $(Build.BinariesDirectory

Use $(SolutionName) in the MsBuild commandline parameters

别说谁变了你拦得住时间么 提交于 2019-12-01 21:18:55
In order to emulate the "PerProject" option in TFS 2013's XAML build in the new Build 2015 task based builds, I'd like to be able to pass the SolutionName to the msbuild commandline arguments without having to manually set it every time. I'd like to do something like: /p:OutputPath=$(Build.BinariesDirectory)\$(SolutionName)\ Where I'd like MsBuild to infer the $(SolutionName) parameter. But when passing this on the commandline, the new task runner will substitute the $(Build.BinariesDirectory) with the correct target path and leaves $(SolutionName) alone. Unfortunately MsBuild subsequently

MSbuild task fails because “Any CPU” solution is built out of order

本秂侑毒 提交于 2019-12-01 06:30:55
问题 I have two solutions to build in Teambuild, one is the application itself, the other one is the WiX installer. I want to build the application using "Any CPU" build configuration and the installer using "x86". I've listed the "Any CPU" solution first in my project file, but Teambuild always builds the "x86" solution first. I'm setting BuildSolutionsInParallel = false, but it still builds the solutions in the reverse listed order. If I change the first solution to "Mixed Platform", it works

WebDeploy to deploy multiple web sites

与世无争的帅哥 提交于 2019-12-01 04:35:40
We're using this process to use WebDeploy to deploy and compile two web sites that are a part of the solution. The approach we took was found here: http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html But it's only deploying one of the web sites; is there a way to tell it to publish both? Thanks. Vishal R Joshi Web Packages created based on the above walkthrough (i.e. via VS 2010 and its derivatives like TFS etc) can only contain one web project. Unfortunately VS generated Web Packages will be limited from this sense. If you use Web Deploy (MSDeploy) EXE or API

TFSBuild.proj and Importing External Targets

我是研究僧i 提交于 2019-12-01 04:09:06
We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to get those additional steps by simply adding the import line to the TFSBuild.proj created by the wizard. <Import Project="$(SolutionRoot)/libs/my.team.build/my.team.build.targets"/> We cannot have an import on any file in the $(SolutionRoot) because at the time the Import statement is validated, the source has not be fetched from the repository. It looks like TFS is pulling down the TFSBuild.proj first without any other