【问题标题】:No "Copy to Output Directory" for DLL using Visual Studio 2015, C++ project使用 Visual Studio 2015、C++ 项目的 DLL 没有“复制到输出目录”
【发布时间】:2017-08-03 18:55:39
【问题描述】:

我知道这个问题已经被问过很多次了,但是在 VS2015 中有些不同。

我单击我的项目,选择添加现有并添加我的 DLL。

然后我右键单击DLL并进入属性,但我只能看到3个属性:

Excluded From Build Content Item Type

关于堆栈溢出的其他问题用

回答这个问题

使用 Project + Add Existing Item 并选择 DLL。选择添加的 解决方案资源管理器窗口中的文件。在“属性”窗口中,更改 复制到输出目录设置为“如果较新则复制”。

见:Are there any better ways to copy a native dll to the bin folder?

但是在我的VS2015中,我没有Copy to Output Directory的选项

这是为什么?什么不见​​了? 我尝试将 DLL 放在 Source files 和 Resource Files 下,但我似乎无法在 References 下调整它,因为它只能让我选择另一个项目。

【问题讨论】:

    标签: c++ visual-studio-2015


    【解决方案1】:

    我了解此属性仅对 C++ 项目隐藏。多么不幸

    在这里回答:

    Automatic copy files to output during application building

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-04
      • 2010-12-03
      • 1970-01-01
      • 1970-01-01
      • 2010-12-19
      相关资源
      最近更新 更多