I am working on writing some new build scripts for a few of our applications, the current scripts build all projects in place with MSBuild and then manually copy all of the content (views, scripts, etc...) and the bin folder manually to an artifacts folder to be zipped; this requires that all files and folders that aren't part of the bin directory for an ASP.NET project to be explicitly listed in a configuration file which is of course immensely error prone.
Is there a way using MSBuild when specifying the output directory to also include the content files? Ideally this would be done without creating a publish profile as the current deployment method is not open to change so I need to make sure my build artifact matches the current one.
If it helps I am planning to use Cake for the build mechanism.