visual studio 2013 - Azure worker role gets published with the wrong service configuration -


i'm trying "publish azure" functionality in vs2013 going worker-role cloud-service project.

the problem i'm having no matter change service configuration settings application deployed localservice configuration

my .azurepubxml:

<?xml version="1.0" encoding="utf-8"?> <project toolsversion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  <propertygroup>     <azurecredentials>{"servicemanagementendpoint":"https:\/\/management.core.windows.net\/","subscriptionid":"redacted"}</azurecredentials>     <azuredeletedeploymentonfailure>false</azuredeletedeploymentonfailure>     <azuredeploymentlabel>myworkerrole</azuredeploymentlabel>     <azuredeploymentreplacementmethod>automaticupgrade</azuredeploymentreplacementmethod>     <azureslot>staging</azureslot>     <azureenableremotedesktop>true</azureenableremotedesktop>     <azureenablewebdeploy>false</azureenablewebdeploy>     <azurefallbacktodeleteandrecreateifupgradefails>false</azurefallbacktodeleteandrecreateifupgradefails>     <azurehostedservicelabel>mylabel</azurehostedservicelabel>     <azurehostedservicename>myservice</azurehostedservicename>     <azureenableintellitrace>false</azureenableintellitrace>     <azureenableprofiling>false</azureenableprofiling>     <azureserviceconfiguration>staging</azureserviceconfiguration>     <azuresolutionconfiguration>staging</azuresolutionconfiguration>     <azurestorageaccountlabel>webstorage</azurestorageaccountlabel>     <azurestorageaccountname>webstorage</azurestorageaccountname>     <azureappendtimestamptodeploymentlabel>true</azureappendtimestamptodeploymentlabel>   </propertygroup> </project> 

as can see, azureserviceconfiguration set staging. if @ output build can see these lines:

target "resolveserviceconfiguration" in file "c:\program files (x86)\msbuild\microsoft\visualstudio\v12.0\windows azure tools\2.6\microsoft.windowsazure.targets" project "path-to.ccproj" (target "coreresolveservicemodel" depends on it): 3>  task "message" 3>      target profile: local 3>  task "message" 3>      service configurations: serviceconfiguration.staging.cscfg;serviceconfiguration.production.cscfg;serviceconfiguration.local.cscfg 3>  task "message" 3>      looking service configuration file named: serviceconfiguration.local.cscfg 3>  task "findinlist" 3>  task "message" 3>      source service configuration: serviceconfiguration.local.cscfg 3>  task "message" 3>      target service configuration: bin\staging\serviceconfiguration.cscfg 

the end-result serviceconfiguration.local.cscfg used in deployment instead of serviceconfiguration.staging.cscfg.

what does work though change service configuration setting staging under development->run/debug. enter image description here

but setting controls configuration file used when run app locally, naturally don't want mess it.

also, if use project->package... option , choose staging correct package , correct config file generated. i've tried bulding manually msbuild commandline, works great well.

tried updating azure sdk 2.6 in hopes solve it, no difference.

should have working in web-role project. external reasons had split worker-role own cloud project.

update more info, took closer @ build log , found this:

 1>------ build started: project: myproject, configuration: debug cpu ------ 1>build started 6/5/2015 5:15:03 pm. 1>building tools version "12.0". 1>target "_checkforinvalidconfigurationandplatform" in file "c:\program files (x86)\msbuild\12.0\bin\microsoft.common.currentversion.targets" project "path_to_project.csproj" (entry point): 1>task "error" skipped, due false condition; ( '$(_invalidconfigurationerror)' == 'true' ) evaluated ( '' == 'true' ). 1>task "warning" skipped, due false condition; ( '$(_invalidconfigurationwarning)' == 'true' ) evaluated ( '' == 'true' ). 1>using "message" task assembly "microsoft.build.tasks.v12.0, version=12.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a". 1>task "message" 1>  task parameter:text=configuration=debug 1>  task parameter:importance=low 1>  configuration=debug 

so seems neither

<azureserviceconfiguration>staging</azureserviceconfiguration> <azuresolutionconfiguration>staging</azuresolutionconfiguration> 

from .azurepubxml being used input build script.

it seems boil down to, publish azure function pulling parameters from, if not .azurepubxml file?

never got working in vs2013 i've gone vs2015 , publish azure works expected again.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -