i'm trying website deployed jenkins job.
i'm using following command line sentence, no success:
"c:\windows\microsoft.net\framework\v3.5\msbuild.exe" myproj.csproj /p:deployonbuild=true
i've tried:
"c:\windows\microsoft.net\framework\v3.5\msbuild.exe" myproj.csproj /p:configuration=debug /p:outputpath="obj\debug" /p:deployiisapppath="default web site/demo"
none works although project compiled properly.
when go c:\inetpub\wwwroot nothing new there. want site start running , accesible browser in localhost.
you can use msdeploy deploy web app using following msbuild arguments
/p:configuration=release /p:deployonbuild=true /p:deploytarget=msdeploypublish /p:msdeployserviceurl=https://targetserver:8172/msdeploy.axd /p:deployiisapppath=mysite /p:allowuntrustedcertificate=true /p:username= /p:authtype=ntlm
msdeploy, however, has proven better solution us. use msbuild create msdeploy package , can deploy package many environments using msdeploy.exe. build once, deploy many. here overview of webdeploy may helpful:
http://dotnetcatch.com/2016/02/25/the-anatomy-of-a-webdeploy-package/
Comments
Post a Comment