Geeks With Blogs
Mike Azocar So long and thanks for all the Fish!
We have had trouble getting Team Build to build and deploy web apps.á While it was still in beta, I downloaded the web deployment project and it still did not give us exactly what we needed with web apps that referenced class libraries.á Here a quick solution that the architect on my currentáprojectácame up witháthat doesn't require you to use the web deployment projects.ááBefore you begináyou willáneed to copy the aspnet_merge executable to the build server.á If you install the web deployment project locally and accept the defaults, you can find the executable in the following folder: "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0".á Place the executableáat the root ofáthe folder you specified for drops on the Build Server.á Now you are ready to customize your build. First in your TFSBuild.proj file, create the following property: <PropertyGroup> ááá <PreCompiledWebSite>$(DropLocation)\$(BuildNumber)\Mixed Platforms\Debug\_PublishedWebsites\[WEBSITEPATH]</PreCompiledWebSite> </PropertyGroup> Next, override the AfterDropBuild targetá by placing the following in your TFSBuild.proj file. <Target Name="AfterDropBuild"> ááá <Message Text="Precompiled path: $(PreCompiledWebSite)" /> ááá <Exec Command="[DIRECTORY]\aspnet_merge.exe "$(PreCompiledWebSite)""á />? </Target> Now you will have a deployable web site. Happy Coding! Posted on Wednesday, November 1, 2006 8:11 PM Team Build | Back to top

Comments on this post: Building Web Apps the Easy Way

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Mike Azocar | Powered by: