Logic app with custom code function app Sdk version issue #3050
petteripoyhtari
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I noticed that we have old libraries in our custom code function app project. This function app is triggered by logic app.
When I updated the libraries I received tons of errors. I pinned down that when I update the
Microsoft.Azure.Functions.Worker.Sdk version 1.15.1 --> 1.16.0 I receive these errors immediately:
/Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(5,28): error CS0234: The type or namespace name 'Hosting' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(8,40): error CS0234: The type or namespace name 'Context' does not exist in the namespace 'Microsoft.Azure.Functions.Worker' (are you missing an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(9,40): error CS0234: The type or namespace name 'Invocation' does not exist in the namespace 'Microsoft.Azure.Functions.Worker' (are you missing an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(8,40): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'Microsoft.Azure.Functions.Worker' (are you missing an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(10,28): error CS0234: The type or namespace name 'Hosting' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(14,45): error CS0246: The type or namespace name 'IFunctionExecutor' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(51,76): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(51,23): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(16,26): error CS0246: The type or namespace name 'IFunctionActivator' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(22,39): error CS0246: The type or namespace name 'IFunctionActivator' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(19,54): error CS0246: The type or namespace name 'IFunctionMetadataProvider' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(63,48): error CS0246: The type or namespace name 'IAutoConfigureStartup' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(50,84): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(50,23): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(69,31): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(63,56): error CS0246: The type or namespace name 'IAutoConfigureStartup' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(22,36): error CS0246: The type or namespace name 'IFunctionMetadata' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionExecutorGenerator/GeneratedFunctionExecutor.g.cs(28,45): error CS0246: The type or namespace name 'FunctionContext' could not be found (are you missing a using directive or an assembly reference?) /Debug/net8/Microsoft.Azure.Functions.Worker.Sdk.Generators/Microsoft.Azure.Functions.Worker.Sdk.Generators.FunctionMetadataProviderGenerator/GeneratedFunctionMetadataProvider.g.cs(69,31): error CS0246: The type or namespace name 'IHostBuilder' could not be found (are you missing a using directive or an assembly reference?)
Piece of our custom code function app looks like this:
<ItemGroup> <PackageReference Include="CSharpier.MsBuild" Version="0.30.6"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.3.0" /> <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.15.1" /> <PackageReference Include="Microsoft.Azure.Workflows.Webjobs.Sdk" Version="1.1.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" /> </ItemGroup>
What could be wrong? I have understood that custom code function apps can be picky of dependencies (like mentioned here https://learn.microsoft.com/en-us/azure/logic-apps/create-run-custom-code-functions#limitations "To avoid package references conflicts..."), but I can't quite understand how to pinpoint what dependencies could be needed to use little bit newer nugets? Or are we forever stuck for these older versions of libraries?
Beta Was this translation helpful? Give feedback.
All reactions