WCF - How to publish from the command line using MSBuild

You can do this with msbuild, by specifying the build properties DeployOnBuild and PublishProfile. Don't forget to set the build configuration to Release, so that you aren't deploying a Debug build.

msbuild WcfService.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile

/p is short for /property.

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath