I am currentlly in the process of writing a Cake build script to build a number of ASP.NET MVC sites.
At the moment I am unable to see an option to pass arguments to MSBuild to produce the _PublishedWebsites folder for deployment.
I believe the arguments that I need to pass are:
/p:OutDir=$(build.stagingDirectory)
/p:DeployOnBuild=true
/p:WebPublishMethod=Package
/p:PackageAsSingleFile=true
/p:SkipInvalidConfigurations=true
If there is an alternative approach which produces the same output content just not in the same folder directory that would be fine.
DeployOnBuild
,WebPublishMethod
,PackageAsSingleFile
not existing onMSBuildSettings
. The documentation linked above also does not list these properties. – Grecoroman