c# - UWP 不支持的 API

标签 c# c++ api dll uwp

我正在尝试将我的 UWP 应用程序发布到 Windows 应用商店,但我遇到了 API 不受支持的问题。有问题的 API 是 opus.dll (Opus) 和 libsodium.dll (NaCl)。

我知道这意味着我需要找到这些的通用版本并以某种方式使我正在使用的包 (Discord.Net) 引用它们而不是原始版本,但是有人知道在哪里可以找到通用版本吗?除了原始的 C 之外,我似乎找不到任何东西。

供引用,这是错误:

  • API crypto_secretbox_easy in libsodium.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API crypto_secretbox_open_easy in libsodium.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_decode in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_decoder_create in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_decoder_destroy in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_encode in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_encoder_create in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_encoder_ctl in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.
  • API opus_encoder_destroy in opus.dll is not supported for this application type. Discord.Net.WebSocket.dll calls this API.

最佳答案

您不能将这些库发布到应用商店,至少在构建 dll 时不能。您需要使用适用于 Windows 应用商店发布的适当设置来制作(但更具体地说是编译)您自己的 dll 文件。

关于c# - UWP 不支持的 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42799162/

相关文章:

c++ - 哪种方法可以更好地找到最大数量?

c++ - LNK2019 : Calling C function from CPP code

python - 错误 : OSError: libmediainfo. so.0:无法打开共享对象文件:没有这样的文件或目录

javascript - 从您的网站打开 Teamviewer

c++ - 使用 mysql c api 设置 visual studio c++ 2008

c# - 如何从 C# 调用具有 char[] 作为 OUT 参数的非托管函数?

c# - 为什么在继承中调用固定数据类型参数的对象类参数方法linseed

c# - WPF:使用不透明蒙版作为背景的图像

c# - 索引文件后删除模板

c++ - 我可以修改 std::exception_ptr 中异常的值吗?