Compiling web sites with Team Build

I am trying to automate the build process. I have 5 web sites and I want to be able to run the team build and then be able to run the aspnet_compiler to publish them to a new server. How do I use the team build to produce all the associated dlls with that website like it is done by right clicking on the web site and clicking 'Build Web Site'


Answer this question

Compiling web sites with Team Build

  • Jim McDermott

    That was it, thanks!

  • Muder

    Hey Aaron,
    Here is a bigger chunk of the log.txt.....

  • oznative

    What is the context here (i.e. could you post a bigger hunk of BuildLog.txt)

    -Aaron



  • Jonesie

    Assuming ASP.NET 2.0 Web sites, try changing your platform from "Any CPU" to "Mixed Platforms". This will usually take care of it for you.

    In terms of deploying, there are various approaches. Most people use copy or EXEC with Xcopy in the build. (Can't be more verbose now. this is a hand-written reply on my Tablet.)

     


  • lt777

    Thanks,

    That worked but when I do a build using mixed platform I get an "error MSB3021" message.

    c:\tfsbuilds\TFS\NightlyBuild\Sources\Platform.sln(0,0): error MSB3021: Unable to copy file "c:\tfsbuilds\TFS\NightlyBuild\Binaries\Mixed Platforms\Release\Microsoft.ApplicationBlocks.ExceptionManagement.xml" to "tex\\Bin\Microsoft.ApplicationBlocks.ExceptionManagement.xml". Access to the path 'tex\\Bin\Microsoft.ApplicationBlocks.ExceptionManagement.xml' is denied.

    Any ideas

  • Keith Thomson

    Ah - I should have thought of this before... Probably you mistakenly checked these files into source control, so they get synced down as read-only and cannot be overwritten during the build. Let me know if this is not the case.

    -Aaron



  • Compiling web sites with Team Build