tfsbuild

Cause TFS InvokeProcess Build Activity to run under other credentials

不羁岁月 提交于 2019-12-01 11:28:49
We have customized the build process with a InvokeProcess action that runs a powershell script that deploys our sln. Problem is that this script must be run under a given user (not the tfsbuild user). How can we achive this? Alternative 1: Make the InvokeProcess run as a different user - Alternative 2: Make the powershell script itself run as different user Problem is that I have no idea of how to do any of this. I have created a blog post on this how you can achieve this: Customize Team Build 2010 – Part 9: Impersonate activities (run under other credentials) A pure PowerShell option,

Should artifacts associated with a build record be deleted when the build record is deleted?

廉价感情. 提交于 2019-12-01 11:13:29
I am using the new VSO scriptable build system with an on premise build agent. The build publishes the following assets to an internal file share. Install Symbols to our internal symbol store. When a build is deleted either manually or based on retention policy the associated assets are not deleted. Should I expect that assets are deleted when the associated build record is deleted? In 2015 RTM and currently in VSO, server drops are deleted when a build is deleted but drops to UNC shares are not. We have work on our backlog to address this. EDIT: In 2015 QU2, this is enabled. Also if you on

Testing an WPF app with CodedUI tests, should the coded ui test project share a solution or not?

自闭症网瘾萝莉.ら 提交于 2019-12-01 11:09:10
问题 First some context; we are developing a large desktop WPF application in .NET 4.5 targeting 64 bit Windows 7 and 8. We are using Visual Studio 2012.2 (soon to be .3 then probably 2013!) and TFS 2012 (again .2 soon to be .3 then 2013). Currently this product is all in a single large solution (just over 50 projects) yielding a WPF exe, a load of dlls and a nice MSI to install it. We use TFS (gated and scheduled) to build the solution, its installer (WiX) and run its tests (SpecFlow for BDD and

TFS 2015 Visual Studio Build - Package .zip not being created

放肆的年华 提交于 2019-12-01 10:22:20
问题 I'm trying to build my solution and package up the web app into a web deploy (.zip) package to be deployed. I've added the Visual Studio Build step with the following MSBuild Arguments: /p:DeployOnBuild=True /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:PackageLocation="$(build.artifactstagingdirectory)\" And I've set up the Copy and Publish Build Artifacts step to copy all .zip files to the drop folder. The build completes successfully but nothing is copied to the drop folder

TFS build definition not deploying mvc application to IIS

早过忘川 提交于 2019-12-01 08:33:15
问题 I am attempting to use Visual Studio's Team Explorer and TFS to create a Build Definition to deploy a MVC site to IIS. I followed the Pluralsight tutorial called 'Continuous Deployment with Team Foundation Server 2010'. The steps I followed from the tutorial included: Installed IIS Management Scripts and Tools Installed Management Service On the Management Service I allowed remote connections and enable Windows Credentials Only Installed Web Deploy Created a deployment domain account Allowed

Msbuild and SVN update

放肆的年华 提交于 2019-12-01 06:12:44
I want to write a simple task which will update and commit source code that was Nightly build to SVN. I was on the msbuildtasks.tigris.org page, and downloaded the dll's but I have no idea how to write it. Could you please provide some basic samples? Here is an example (taken from the MSBuild Community Tasks Build) that does exactly that: <ItemGroup> <CommitFiles Include="www\index.html" /> <CommitFiles Include="www\MSBuild.Community.Tasks.Nightly.zip" /> <CommitFiles Include="www\MSBuild.Community.Tasks.Nightly.msi" /> </ItemGroup> <SvnCommit Targets="@(CommitFiles)" Message="AutoBuild"

How to add a timestamp to TFSBuild.proj?

旧时模样 提交于 2019-12-01 05:59:20
I have a TFSBuild.proj file and I need to add date/time logging for statistics i.e. which parts of the builds take the most time and where can we improve the process. The build outputs the log to BuildLog.txt. I use the following tags to get custom messages in the BuildLog.txt file, but I need to add a timestamp to each message. <Message Text="Debug: BeforeGet start: StartTimeGoesHere"></Message> <Message Text="Debug: BeforeGet end: EndTimeGoesHere"></Message> Is it possible to get a timestamp in the message? Is there a MSBuild variable that gets the current datetime value? In the example

What is expected for DeployIisAppPath setting on MSBuild argument?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 05:15:24
SERVERNAME(myDomain\Username) Application Pools Sites DEV Site1 DEV Site2 dev Site 3 bin Content ... Views etc ... This is my basic layout of our DEV web server. Our DEV web server has many sites running on it. I am trying to use TFS 2013 Build to publish my web site to the DEV server following articles from Vishal Joshi , Microsoft and others. My error is " ERROR_SITE_DOES_NOT_EXIST ". The basic fix does not help me. In my example, I'm using /p:DeployIisAppPath="dev Site 3" . There are no applications defined under the site. Microsoft's instructions are useless. I thought I should just use

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

How to add a timestamp to TFSBuild.proj?

笑着哭i 提交于 2019-12-01 04:06:37
问题 I have a TFSBuild.proj file and I need to add date/time logging for statistics i.e. which parts of the builds take the most time and where can we improve the process. The build outputs the log to BuildLog.txt. I use the following tags to get custom messages in the BuildLog.txt file, but I need to add a timestamp to each message. <Message Text="Debug: BeforeGet start: StartTimeGoesHere"></Message> <Message Text="Debug: BeforeGet end: EndTimeGoesHere"></Message> Is it possible to get a