【问题标题】:Include native dlls in publish folder when targeting specific architecture针对特定架构时,在发布文件夹中包含本机 dll
【发布时间】:2019-07-11 02:51:29
【问题描述】:

我的代码在 win-x64 上运行时使用了一些非托管 dll。我正在尝试将它们打包为单独的 nuget 包。 这就是我设置我的 nuget 包的方式:

.
│   MITKerberos.1.0.0.nuspec
└───runtimes
    └───win-x64
        └───native
                comerr64.dll
                gssapi64.dll
                k5sprt64.dll
                kdestroy.exe
                kinit.exe
                klist.exe
                kpasswd.exe
                krb5_64.dll
                krbcc64.dll
                leashw64.dll
                wshelp64.dll
                xpprof64.dll

我的应用程序是一个 netcoreapp,我将上面的包添加为依赖项并执行了dotnet publish -r win-x64。发布文件夹不包含预期的依赖项。我在这里做错了什么?

【问题讨论】:

    标签: .net .net-core nuget nuget-package nuspec


    【解决方案1】:

    我的愚蠢错误 - csproj 未保存在 Visual Studio 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-12
      • 1970-01-01
      相关资源
      最近更新 更多