bech
bech

Reputation: 637

<codeBase> element equivalent in Azure Functions?

I'm in a position where two different 3rd party libraries use different versions of Newtonsoft.Json, which are incompatible. For a regular application with a web.config or app.config, I can solve this using the <codeBase> tag to resolve the different versions. How do I do this in Azure Functions, when there is no app- or web.config? Would I have to resort to to the AssemblyResolve event or is there some mechanism to do the same thing?

Thanks in advance.

Upvotes: 0

Views: 42

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

Reputation: 35144

That's a known gap, there is no binding redirect support in Azure Functions yet.

Study this github issue to see the discussion from the team.

This repository shows some workarounds that you can apply, or will be able to apply in the future.

Upvotes: 1

Related Questions