asp.net - MSBUILD script building solution, but not deploying publishing profile -
i have created publishing profile web page, , can publish using web deploy interface in visual studio (right click project, deploy etc). builds project on local pc, , copies files across destination iis server.
but trying create msbuild command, should same, building solution, not copying across server.
my msbuild command looks this, , run solution source directory
msbuild "test.co.za.sln" p:deployonbuild=true /p:publishprofile="test.co.za" /p:username="domain\test" /p:password="test"
is there wrong build command? can see in screenshot, building successfully, no files beingness copied across. makes me wonder if publishing profile executed @ all. have tried various combinations of publishprofile paths, total paths, extensions, without, nil seems re-create files accross.
my publishing profile looks app_data\publishprofile\test.co.za.pubxml
<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <propertygroup> <webpublishmethod>msdeploy</webpublishmethod> <lastusedbuildconfiguration>debug</lastusedbuildconfiguration> <siteurltolaunchafterpublish>http://test.co.za</siteurltolaunchafterpublish> <launchsiteafterpublish>true</launchsiteafterpublish> <msdeployserviceurl>test.co.za</msdeployserviceurl> <deployiisapppath>test.co.za</deployiisapppath> <skipextrafilesonserver>true</skipextrafilesonserver> <msdeploypublishmethod>wmsvc</msdeploypublishmethod> <username>domain\test</username> <_savepwd>true</_savepwd> </propertygroup> </project>
edit: existing classic asp website added solution, doesn't contain ".csproj" file, "website.publishproj", doesn't seem execute
it doesn't passing in visualstudioversion
property. should include that. value either 11.0
, 12.0
, or 14.0
based on version of visual studio using. should pass in value configuration
it's not required. i've blogged why of import @ http://sedodream.com/2012/08/19/visualstudioprojectcompatabilityandvisualstudioversion.aspx.
you can find docs asp.net command line publishing @ http://www.asp.net/mvc/tutorials/deployment/visual-studio-web-deployment/command-line-deployment
asp.net msbuild msdeploy
No comments:
Post a Comment