Hi Rainer
I'm glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
Issue: You're using Terraform to create Azure Function instance which then pulls your app code from a container registry. After image pull, the function app failed to load.
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'BeerApp.ServiceFunctions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Resolve: You found that in your .csproj
file you have the below property element. After removing the below content, the issue was resolved.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>