I am trying to setup Continuations Integration
for an old project.
The project still uses websites and not web applications. In Visual studio
It works great when i publish from within Visual studio but as soon as I run MSbuild command then it creates a PrecompiledWeb folder and places the code in there.
The website project the publish process is not plumbed into the build process. For website project since there is no formal build process there was nothing for us to really extend.
After creating a publish profile in VS the following are created:
1) A publish profile (.pubxml file) under App_Data/PublishProfiles
2) A website.publishproj in the root of the website
The purpose of the website.publishproj is to facilitate command line publishing. Then you can try to use command like the following:
C:\Program Files (x86)\Microsoft Visual Studio 14.0>msbuild "C:\Users\UserName\Documents\Visual Studio 2015\WebSites\WebSite1\website.publishproj" /p:deployOnBuild=true /p:publishProfile=WebsiteTestDemo /p:VisualStudioVersion=14.0
After that, you will noticed it does not create the PrecompiledWeb folder and the publish uses the setting in the profile:
Note:The publish file should be website.publishproj rather than WebSite1(1).sln file.