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:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.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 objDebugPackagePackageTmp
. 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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…