Replies: 3 comments 4 replies
-
Short answer: This is not a RazorLight issue. This is a Azure Functions customer support issue. Open a case with them and ask them why this doesn't just work out of the box. Workaround: Don't use in process Azure Functions. They're a terrible architecture. Use out of process hosting via a container. Long answer: To elaborate, I hate the way Azure Functions manages dependencies, and the whole thing is absolutely crazy to me. I absolutely hate getting requests from people to make their RazorLight integration app work with Azure Functions, when I think the problem is strictly on the side of Microsoft building a terrible plug-in architecture for customers. Here is the worst part: https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=in-process%2Cazure-cli%2Cv4&pivots=programming-language-csharp#migrating-from-3x-to-4x
What does "highly backwards compatible" even mean, when code that worked on 3.x doesn't work on 4.x because of a core system library being different? I loath this marketing gimmick, because it pushes the support costs on everyone else, since they don't precisely define what their compatibility scheme is, so it forces customers to run around blaming various vendors for the problem. I'm not even referencing the library you're asking me to support, so why is it my responsibility to fix Microsoft's terrible architecture? I went to them 2 years ago and voiced my concerns about how bad this was, and how many false positive reports I get across my two open source projects, and I actually got thumbs down'ed by their engineers. Yup. (It looks like the engineers since removed the thumbs down, but they WERE there.) Here are our dependencies: Tell me how we're referencing the assembly you're talking about. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you very much for your detailed answer. You are right, there's no direct reference to the assembly that fails to load. Anyway, I have added
to the project file of the Azure function. Now it works, but I am not sure if this is a good solution. |
Beta Was this translation helpful? Give feedback.
-
If someone looking for working sample I have made some effort to setup it and share it with you, here is my repo. |
Beta Was this translation helpful? Give feedback.
-
With RazorLight 2.0.0 after converting a project to .net 6 the following code:
now results in the following exception:
Is it feasible to fix this issue? The application was working fine with netcoreapp3.1 and azure functions V3.
Beta Was this translation helpful? Give feedback.
All reactions