且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Azure函数运行时异常,系统数据sqlclient异常的类型初始化程序,无法加载DLL'sni.dll'

更新时间:2022-11-04 20:24:26

通过在csproj文件中添加以下代码,它对我有用:

It worked for me by adding below code in csproj file :


<Target Name="PostPublish" BeforeTargets="Publish">
  <Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />
</Target>

此行应注意以下事项: <Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />

This line should be taking care of that: <Exec Command="move $(PublishDir)\runtimes $(PublishDir)\bin" />

reference: github

reference : github