...">

Azure set hostHeader according to project configuration

hostHeader can be set in the ServiceDefinition.csdef file as

<Site name="Web"> <Bindings> <Binding name="Endpoint1" endpointName="Endpoint1" hostHeader="www.mysite.com"/> </Bindings> </Site> 

How to change this parameter according to my project configuration?

eg. when my project is published in debug mode, hosetHeader must be installed in test.mysite.com , and when the project is published in release mode, hostHeader must be installed in www.mysite.com

+4
source share
1 answer

We use Visual Studio 10 configuration transforms. To get transformations that work with Azure configurations, see this answer .

+2
source

All Articles