我正在使用飞行捕捉相机库在 Visual Studio 中创建一个程序。我的目标是将程序构建成一个独立的应用程序。在调试模式下运行时,程序运行正常,但在发布模式下,我得到一个“System.IO.FileNotFoundExeception”:
Could not load file or assembly 'FlyCapture2Managed_v140.dll' or one of its dependencies. The specified module could not be found.
所以我缺少一个 dll 文件,但为什么我只在发布模式下得到这个错误?如何在视觉工作室中正确链接文件?