views:

104

answers:

0

Hi,

I'm trying to automate deployment of a site. I started with this article

and everything works great from VS 2010. However, I'm having problems with the command line I use this

c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "d:\Projects\test.csproj" /T:Package /P:PackageLocation="d:\Package\packageTest.zip"

to create the package

and

d:\Projects\packageTest.deploy.cmd "-setParam:name='IIS Web Application Name',value=MSBuild/Test2" /y

to get to at least deploy correctly. However, it doesn't take any of the IIS options (the app pool is MSBuild instead of ASP.NET v2.0) and, as I said before, the IIS Web Application Name is wrong. Shouldn't this information be taken from .csproj file? All these settings are done for debug configuration and platform any cpu