Home > Net >  Docker run netcore application cited in an unmanaged DLL prompt Unable to load Shared library
Docker run netcore application cited in an unmanaged DLL prompt Unable to load Shared library

Time:04-16

Unable to load Shared library 'bin \ \ HCNetSDK DLL' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libbin/HCNetSDK. DLL: always open a Shared object file: No to the file or directory

Excuse me each great god how to solve this problem? Tried all kinds of online hair method,
My working folder is under/publish, Windows dotnet launch directly no problem

CodePudding user response:

Program is camera SDK secondary micro encapsulated into service, the camera SDK is introduced through dllimport engineering,
Netcore3.1
I dockerfile below

 the FROM McR.microsoft.com/dotnet/aspnet:3.1 AS base 


COPY./publish

WORKDIR/publish

ENTRYPOINT [" dotnet ", "Ncdawn. Service. The DLL"]

  • Related