Is there a way to have Visual Studio 2008 execute the “Publish Now” button from the command line?
I’ve seen posts that suggest to use msbuild /target:publish to call it. That is OK, but MSBuild doesn’t increment the revision number. I’m hoping for something like:
devenv mysolution.sln /publish
To increment build numbers, I am using MSBuild Extension pack inside my .csproj file as follows:
This way, anytime the configuration is set to Release-VersionIncrement, the version number is changed. When this is done, I can use the following MSBuild command to publish it:
Note that this is for an ASP.NET 3.5 web application.