The situation from which a course of is invoked is essential.  A course of, I.e. an executable (.exe) is this system which accommodates the entry level to the code which must run.  If the situation is in a relative place associated to the assemblies it requires, then the .exe can use relative paths to entry an load them at runtime.  Think about that I’ve a course of which shops its dependent assemblies in a listing location like the next.

D:homeSiteExtensionstheBestSiteExtensionEver

Then contemplate that the method which wants the assemblies in that listing location is instantiated on this listing.

D:homesitewwwroot

That course of is not going to know something about the place TheBestSiteExtensionEver assemblies are situated.  The way in which through which you present this data is utilizing the PATH Atmosphere variable.  You may view the present values for PATH in KUDU/SCM, both from the Atmosphere web page or by operating SET PATH through the CMD Debug console.

Determine 1, Find out how to set the PATH atmosphere variable on an Azure App Service / Operate home windows

image

Determine 2, Find out how to set and think about the PATH atmosphere variable on an Azure App Service / Operate home windows

I’ve written just a few articles about utilizing XDT transformation to make modifications to the IIS configuration on which Azure App Providers and Azure Operate Apps run.  Listed below are just a few:

So, you guessed it, the best way to make this occur is to make use of XDT transformation.

Here’s a copy of the XDT file I used, to realize the next.  CAUTION: don’t carry out such actions like this immediately into manufacturing, as a result of if you happen to in some way have a typo, miss one thing or depart one thing out, it might have sever penalties to your web site, probably requiring a re-provision and redeployment.  Carry out this on a take a look at atmosphere or a slot earlier than shifting it into manufacturing.

After including the XDT file to the D:homesite listing and restarting the location, I see the trail which ought to let my course of load the required binaries/assemblies.

image

Determine 3, Find out how to set and think about the PATH atmosphere variable on an Azure App Service / Operate home windows

image

Determine 4, Find out how to set and think about the PATH atmosphere variable on an Azure App Service / Operate home windows