Is it possible to have App.config transforms for an Azure WebJob for different publish profiles? -


Where do I work, we create Azure Web sites and SQL databases for development purposes as well as staging and production environments Are there. We change the database connection string in the database associated with that web site to a web for each publication profile. Configure transforms.

Now, I am trying to create a special webpage that will need to be updated. I create a database by right-clicking it on the web app project and choosing to add a new Azure WebZob .

What I should do to do this, what I need it is the SQL Database Connection String that points to the same database using the web app. I know that these can be set in the Ezoor Portal and can be caught with the Configuration Manager, but I can be able to configure it in WebZob's app. And I can convert App.config as needed.

I tried to use a slow cheetah for it, but it seems that you can only transform for debug and release configurations.

I started to go through the steps specified in this blog:

This tells you how to manually edit the .csproj file to enable App.config conversion Please. However, this is not a better solution, because you have to manually edit the project file for every result.

Can anyone tell me how to accomplish this? Is this possible? Or the web of my web app What is a way to share prices in a config file that I know what I need for them?

As @Binard suggested, slow chita web. Config or App Configurable conversion is a great way. Once you create a conversion, you can also preview the conversion for a specific configuration.

My preferred method is to create a custom configuration. Create a conversion for Dev and Prod in addition to debug and release using Dev and Prod and "Slow Cheetah XML Conversion" extension.

Once this step is completed, the next challenge is to ensure that the correct configuration is raised by the continuous deployment setup in Azure To do this, you will see the "Application Settings" section in Azure Portal You must set up the configuration associated with your Azure Web App. Example:

  SCM_BUILD_ARGS = -p: Configuration = dev  

After this set up, all web pages under this web app include conversion to Ezur The configuration is specified in the original web app.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -