Open Andrew-Lahikainen opened 3 months ago
Moving to backend issues list and sending this over to the engineer that works on this
@hartra344 Thank you for your respond. Could you please confirm this is a bug and need to be fixed?
So by expectation, logic app custom code should be able to use nuget package or referenced projects. Or the logic app custom code runs in a sandbox that only allows "safe" assemblies, hence, the current behavior is expected.
As far as I'm aware, it should allow the use of nuget packages, but I run the UX team so I'm not fully sure. I'm following up internally to try to get some answers.
Seems like you can't use any dependencies at all not just transitive ones. Getting another error when trying to load AngleSharp. This is a pretty huge blocker for me unfortunately. Any way around this? I don't care how hacky it is at this point.
The worker process where the .net8 function is hosted currently using version 1.37.0.0 of Azure.Core.dll. Can you try adding the following package reference to csproj file?
<PackageReference Include="Azure.Core " Version="1.37.0" />
While this will solve the issue with Azure.Core assembly. It will not solve the problem with other assemblies that are not part of the worker host (e.g., Azure.Data.Tables).
Supporting this requires some changes in the worker host and we will try to get this in the next 3-4 weeks.
Can I follow up the status of this issue?
This issue is stale because it has been open for 45 days with no activity.
@rohithah Its was giving similar Azure.Core assembly load error for Azure.Storage.Blobs.dll and it worked for us after we downgraded storage dll such that its dependent Azure.Core is less than 1.37.0.
Thanks for helping on this; However, I have a question that how did you identify that worker is using Azure.Core version 1.37.0?
Describe the Bug with repro steps
I have a custom code function app with the following dependencies:
They have a dependency on
Azure.Core
which seemingly cannot be resolved at runtime when my function is triggered (run through local debugger).I have verified the package exists on my machine:
I'm not really an expert on .net or azure functions so I don't really know what could be causing this. The project builds without issue (I always make sure to
dotnet clean
anddotnet build
). All the files seem to transfer to the LogicApp folder ok. Any pointers?Thanks!
What type of Logic App Is this happening in?
Standard (VSCode)
Which operating system are you using?
Windows
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
No response
Browser
na
Additional context
No response