在 Visual Studio C# 中引用 SDL2
Referencing SDL2 in a Visual Studio C#
图形库 Veldrid 抛出:
Could not find or load the native library from any name: [ SDL2.dll ]
当我在新的 C# 控制台应用程序 .NET v4.7.1 中尝试 运行 来自 the tutorial 的示例时。
当我尝试引用 the SDL2 dll 时,Visual Studio 只显示 "A reference to 'C:\...\SDL2.dll' could not be added"
我需要任何额外的包装吗? Veldrid.StartupUtilities 应该是 SDL2 的简单包装。
我需要使用不同的 .NET 版本吗?
我right-clicked我的项目,选择Add >
Existing Item
,选择Veldrid下载提供的SDL2.dll,点击Add >
As Link
, 如果更新且一切正常,将其 Property
OnBuild
设置为复制。
图形库 Veldrid 抛出:
Could not find or load the native library from any name: [ SDL2.dll ]
当我在新的 C# 控制台应用程序 .NET v4.7.1 中尝试 运行 来自 the tutorial 的示例时。
当我尝试引用 the SDL2 dll 时,Visual Studio 只显示 "A reference to 'C:\...\SDL2.dll' could not be added"
我需要任何额外的包装吗? Veldrid.StartupUtilities 应该是 SDL2 的简单包装。
我需要使用不同的 .NET 版本吗?
我right-clicked我的项目,选择Add >
Existing Item
,选择Veldrid下载提供的SDL2.dll,点击Add >
As Link
, 如果更新且一切正常,将其 Property
OnBuild
设置为复制。