Customizing Drop Folder Structure with Team Team Team

I use TFS 2012 to automate the build of a solution that contains several Windows services and two web applications.

I used the manual I found here to customize the build process template so that Windows services are put in the folder structure that I like. In particular:

  • \ dropserver \ droproot \ MyApp \ BuildNumber \
    • \ Service1
    • \ Service2
    • \ service3
    • \ Service4

This works fine, but unfortunately it does not work for web applications. If I used the same strategy for them, I just get the contents of / bin for each web application, and not the contents of the entire site.

MSBuild usually uses web application targets to handle this, but for some reason this does not work when you configure the assembly like me. I no longer get the _PublishedWebSites folder in assembly output. (I assume that since I cleared our OutDir property of the MSBuild task.)

Has anyone done something similar and got it to work with web applications?

+5
source share
5 answers

With a bit of tweaking, this solution ended for me:

http://www.edsquared.com/2011/01/31/Customizable+Output+Directories+For+TFS+2010+Build.aspx

Basically, I did what this link recommended, but also used the new solution configuration (which I called TeamBuild), rather than defining conditional properties.

, , , TeamBuildOutDir MSBuild. OutDir OutputPath Team Build , .

_PublishedWebSites, .

EDIT: TFS 2013 :

enter image description here

+1

, , , - , OutDir OutputPath.

, , csproj , "\ bin\deploy \", _PublishedWebsites

<DeployOnBuild>True</DeployOnBuild>
<OutDir>bin\deploy\</OutDir>
+1

. Team Build: MSDeploy -, , , , , . , (2) ​​ . , .

0

, . - , .

.html,.css,.js .. _PublishedWebSites, -. , publish VS .

, , MSBuild script, AspNetCompiler. MSDN. TargetPath, , .

.

0

You checked this blog, it solved my problem when I wanted to configure TeamBuild Ouput Directory. Custom O / P with TFS 2013

Custom O / P with TFS 2012 and .NET Framework 4.5

0
source

All Articles