Azure logic app (standard) with custom code doesn't inlcude all dlls

Zhu, Henry 15 Reputation points
2024-08-27T17:49:04.3033333+00:00

I created a logic app workspace with custom project. Here is the steps and instruction.

https://video2.skills-academy.com/en-us/azure/logic-apps/create-run-custom-code-functions#write-your-code

When I build the project (dotnet build) and I can see the dlls are exported to {logic flow proj}/lib/custom/net8/. However, I have packages from nuget and referenced projects. Their DLLs are not copied to lib folder. In this situation, when I ran local function task, it returns "cannot find the assembly".

Is this a bug or I use the wrong way?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,087 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 27,771 Reputation points Microsoft Employee
    2024-08-29T00:38:19.73+00:00

    Hi @Zhu, Henry

    One suggestion I have using CopyLocalLockFileAssemblies property in the csproj file. This property copies Nuget references to the output directory of the project.

    <PropertyGroup>
        <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
    </PropertyGroup>
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.