sharpdx_direct3d11_effects_x64.dll DLLNotFoundException [英] sharpdx_direct3d11_effects_x64.dll DLLNotFoundException

查看:37
本文介绍了sharpdx_direct3d11_effects_x64.dll DLLNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署使用

What's the correct procedure for deploying WinForms / WPF Applications which use SharpDX.Direct3D11.Effects v3 NuGet package?

They seem to depend on two unmanaged DLLs:

  • sharpdx_direct3d11_effects_x64.dll
  • sharpdx_direct3d11_effects_x86.dll

Should these be copied to the output directory? As a post build step or otherwise?

解决方案

After we publish the WPF/WinForms applications from Visual Studio, it will generate an Application Files folder which contains .dll.deploy files.

I installed the SharpDX.Direct3D11.Effects package in my WPF application. And after I publish this application, I found the sharpdx_direct3d11_effects_x64.dll and sharpdx_direct3d11_effects_x86.dll will generate sharpdx_direct3d11_effects_x64.dll.deploy and sharpdx_direct3d11_effects_x86.dll.deploy files in Application Files folder. We need not to copy to them to output directory.

If the depend on DLLs are not include in your Application Files folder, please configure them through Project Properties -> Publish tab -> Application Files to set the Publish Status for these Dlls as Include.

这篇关于sharpdx_direct3d11_effects_x64.dll DLLNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆