The situation from which a course of is invoked is vital.  A course of, I.e. an executable (.exe) is this system which accommodates the entry level to the code which must run.  If the placement 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.  Take into account 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 wherein you present this info is utilizing the PATH Setting variable.  You possibly can view the present values for PATH in KUDU/SCM, both from the Setting web page or by operating SET PATH through the CMD Debug console.

Determine 1, Easy methods to set the PATH surroundings variable on an Azure App Service / Perform home windows

image

Determine 2, Easy methods to set and examine the PATH surroundings variable on an Azure App Service / Perform home windows

I’ve written a couple of articles about utilizing XDT transformation to make adjustments to the IIS configuration on which Azure App Providers and Azure Perform Apps run.  Listed here are a couple of:

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 instantly into manufacturing, as a result of in case you by some means have a typo, miss one thing or go away one thing out, it will probably have sever penalties to your website, presumably requiring a re-provision and redeployment.  Carry out this on a take a look at surroundings or a slot earlier than transferring it into manufacturing.

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

image

Determine 3, Easy methods to set and examine the PATH surroundings variable on an Azure App Service / Perform home windows

image

Determine 4, Easy methods to set and examine the PATH surroundings variable on an Azure App Service / Perform home windows