I have never worked with a website, not with a web project, so take it with salt.
website.publishprojIt seems to be created the moment you touch the Build> menu Publish Web Sitein Visual Studio and import Microsoft.WebSite.Publishing.targets, which is a good reason for this same file to be imported by your regular web projects ( Microsoft.WebApplication.targets) and both of which are imported Microsoft.Web.Publishing.targets.
, Visual Studio, DefaultTargets = Build OutputPath, Targets MSBuild , Microsoft.WebSite.Publishing.targets Microsoft.Web.Publishing.targets.
msbuild website.publishproj /t:Package /p:OutputPath=.\, .cmd .zip obj\Debug\Package. .cmd .zip msdeploy.exe -source:package=.zip /t:Build /p:DeployOnBuild=true, , , -.
Edit:
, - , , 2/3 PackageTmp\_PublishedWebsites, OutDir, OutputPath, PackageDestinationRoot , . - .csproj .targets, .
Edit:
, App_Data\PublishProfiles\Foo.pubxml, PublishProfileName/WebPublishProfileFile . .
Edit:
-, , 2012/2013, 2010 aspnet_compiler.
aspnet_compiler -v Foo -p . -f obj
msdeploy -verb:sync -source:iisApp=%CD%\obj -dest:iisApp="Default Web Site/foo"