private void SetBundlesEnvironmentVariables() { var bundleId = ExtensionBundleHelper.GetExtensionBundleOptions(_hostOptions).Id; if (!string.IsNullOrEmpty(bundleId)) { Environment.SetEnvironmentVariable("AzureFunctionsJobHost__extensionBundle__downloadPath", ExtensionBundleHelper.GetBundleDownloadPath(bundleId)); Environment.SetEnvironmentVariable("AzureFunctionsJobHost__extensionBundle__ensureLatest", "true"); } }
private void SetBundlesEnvironmentVariables() { var bundleId = ExtensionBundleHelper.GetExtensionBundleOptions(_hostOptions).Id; if (!string.IsNullOrEmpty(bundleId)) { Environment.SetEnvironmentVariable("AzureFunctionsJobHost__extensionBundle__downloadPath", Path.Combine(Path.GetTempPath(), "Functions", ScriptConstants.ExtensionBundleDirectory, bundleId)); Environment.SetEnvironmentVariable("AzureFunctionsJobHost__extensionBundle__ensureLatest", "true"); } }