What dependencies or underlying libraries changed in the basic Linux Azure App service container in .NET 8?

Paul Ivanov 0 Reputation points
2024-01-12T17:27:59.82+00:00

I host a large number of services with Azure App services basic Linux stack (non docker containerized). I have started migrating an app from .NET 6 to .NET 8 and ran into an issue with a PDF generation dependency that worked on the .NET 6 runtime stack but now no longer works in the .NET8 version. The underlying library (https://github.com/HakanL/WkHtmlToPdf-DotNet) is a .NET wrapper around a native library and it looks like one of its dependencies got dropped in the new .NET 8 runtime container.

More details here:
https://github.com/HakanL/WkHtmlToPdf-DotNet/issues/121

Does anyone know if there is a way to add in the required dependencies again or if there is any possible solution to this problem?

Given the above nuget package is one of the only open source options for PDF generation in .NET currently, its unfeasible for us to migrate away from it at this point in time.

Developer technologies | ASP.NET | ASP.NET Core
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,968 questions
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    2024-01-13T17:38:49.89+00:00

    If your code is dependent on a complex list of native libraries, you should probably switch to docker containers where you can control the installed native libraries.

    0 comments No comments

  2. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2024-02-05T01:55:27.1133333+00:00

    @Paul Ivanov We took your scenario to the product group, and they verified that your best course of action to use a container if there is a dependency that has not been updated to work with .NET 8. A container will give you more control of what you can run. Let me know if you have any further questions or concerns.

    0 comments No comments

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.