sharpdx_direct3d11_effects_x64.dll DLLNotFoundException

不羁的心 提交于 2019-12-12 05:04:41

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/39505374/sharpdx-direct3d11-effects-x64-dll-dllnotfoundexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!