【发布时间】:2022-12-14 20:00:40
【问题描述】:
这是来自 GitHub 的一个 c# dll 被很多人使用所以它应该编译但是这一行 [DllExport(CallingConvention.StdCall)] 给出这些错误
错误 CS0246 找不到类型或命名空间名称“DllExport”(是否缺少 using 指令或程序集引用?)
错误 CS0246 找不到类型或命名空间名称“DllExportAttribute”(是否缺少 using 指令或程序集引用?)
这是代码中唯一有错误的行。
using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Windows.Services.Store;
...
[DllExport(CallingConvention.StdCall)]
...
【问题讨论】:
标签: namespaces dllexport