0

我有一个包含 WPF 项目、C# 库和一个 C++/CLI 项目的解决方案。安装程序是使用 WiX 构建的。

当我安装 Release 版本时,一切正常,当我安装 Debug 版本时,应用程序崩溃并出现System.IO.FileNotFoundException: Could not load file or assembly 'MyC++CLIComponent.dll' or one of its dependencies. The specified module could not be found.

当我将构建配置更改为仅对这个组件使用 Release 而对其他组件使用 Debug 时,它工作正常。

什么会导致 C++/CLI 项目的调试构建失败?

我试图AtlTrace在安装后从组件中获取信息,但它不会在发布版本中输出。

4

0 回答 0