Azure / Azure/azure-functions-host

Locating dll in different folder

Open
#6,016 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Is your question related to a specific version? If so, please specify:
v3.1
#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)
c#
#### Question
We are trying to get the IBM.Data.DB2.Core package working in azure function app. This library has some very specific ways it probes for the unmanaged dll.

It specifically looks in the Assembly.GetEntryAssembly folder + clidriver\bin first (D:\Program Files (x86)\SiteExtensions\Functions\3.0.13353\64bit)

Otherwise it looks for \lib in the Assembly location of IBM.Data.DB2.Core.dll, then tries \build\clidriver\bin from the \lib location (This is how they are handling the code running from the nuget package folder)

I can move the IBM.Data.DB2.Core.dll under bin in a lib folder, how can I get the host to probe that folder for dll's? I believe in a regular web application I could add an additionalProbingPaths to a runtimeconfig.json file. Is there a mechanism I am missing?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Azure Functions v3 host's assembly probing behavior for IBM.Data.DB2.Core and the unmanaged clidriver\bin location described in the issue. Compare that behavior with the proposed runtimeconfig.json additionalProbingPaths mechanism; done means identifying a supported configuration path or confirming that the host cannot probe the requested folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.