I have a Visual Studio 2010 MVC2 web application that I'm building via the command line using Hudson. I'd like to make Hudson publish a web output, so I added the DeployOnBuild=true and CreatePackageOnPublish=True tags to my command line.
My command is:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
/target:Clean,Build
/property:Configuration=Debug;DeployOnBuild=True;CreatePackageOnPublish=True;
[my project name.csproj]
Running this command on my development machine (Windows 7) successfully publishes a web output to \obj\Debug\Package\PackageTmp\
. But running it on the Hudson server (WS 2008) compiles successfully, but it doesn't publish. Same command, same version of MSBuild, same source code.
I've tried the /t:Publish
target, which gives me a Skipping Unpublishable Project response, as I've seen on several other people's posts.
I've tried adding the DeployOnBuild=True
and CreatePackageOnPublish=True
tags to my project file as well, and no change.
Any thoughts on why this isn't publishing? Am I using these tags incorrectly? I'm sure there's something here that I'm just not seeing.