代码之家  ›  专栏  ›  技术社区  ›  Tau

在Visual Studio C中引用SDL2#

  •  1
  • Tau  · 技术社区  · 8 年前

    图形库 Veldrid 抛出:

    Could not find or load the native library from any name: [ SDL2.dll ]
    

    当我尝试从 the tutorial 在新的C#控制台应用程序中。NET v4.7.1。

    当我尝试引用 the SDL2 dll ,Visual Studio仅显示“无法添加对“C:\…\SDL2.dll”的引用”

    我需要额外的包装纸吗?Veldrid。StartupUtilities已经被认为是SDL2的简单包装器。

    我是否需要使用不同的。NET版本?

    1 回复  |  直到 8 年前
        1
  •  1
  •   Tau    8 年前

    我右键单击我的项目,选中 Add > Existing Item ,选择了SDL2。与Veldrid下载一起提供的dll,单击 添加(>); As Link ,设置其 Property OnBuild 如果更新且一切正常,则复制。