teamcity - Azure and Publish on buildserver. Need to specify the physical directory for the virtual path -
i'm getting strange errors build server in cspack step when build cloud service (web role) project publish target on build server. publish through visual studio 2012 works fine, not on build server.
error reported team city:
[azure\azureapi\azureapi.ccproj.teamcity] corepublish [15:58:49][corepublish] corepublish: packagewebrole = true [15:58:49][corepublish] publishing starting... [15:58:49][corepublish] roleplugins [15:58:49][corepublish] publishing 'bin\release\app.publish\' [15:58:49][corepublish] makedir [15:58:49][corepublish] targetservicedefinition bin\release\servicedefinition.csdef [15:58:49][corepublish] targetserviceconfiguration bin\release\serviceconfiguration.cscfg [15:58:49][corepublish] roles [15:58:49][corepublish] cspack [15:58:49][cspack] d:\azureapi\bin\release\servicedefinition.csdef error cloudservices077: need specify physical directory virtual path 'web/' of role application.mywebapi
my servicedefinition file contains these settings site.
<webrole name="application.mywebapi" vmsize="small"> <sites> <site name="web"> <bindings> <binding name="endpoint1" endpointname="www" /> </bindings> </site> </sites> ... </webrole
on build server have "azure authoring tools v2.0" , "windows azure libraries .net 2.0".
do need define physical path when publishing on build server, or there other scenarios may cause error?
i had same issue able fix adding more specific properties command line properties section of build step. following additions prevented error showing , able correctly generate .cspkg file:
/t:publish /p:targetprofile=cloud /p:configuration=release /p:platform="any cpu" /p:publishdir=bin\release\app.publish /p:outputpath=bin\release
also, changed "targets" field following: publish
from understanding, point of having /t:publish
command line property in case, error not appear in build anymore.
Comments
Post a Comment