c++ - 使用 Visual Studio 2015、C++ 项目的 DLL 没有 "Copy to Output Directory"

标签 c++ visual-studio-2015

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

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

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

从构建中排除 内容 项目类型

关于 Stack overflow 的其他问题用

回答了这个问题

Use Project + Add Existing Item and select the DLL. Select the added file in the Solution Explorer window. In the Properties window, change the Copy to Output Directory setting to "Copy if newer".

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

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

这是为什么?缺什么? 我尝试将 DLL 放在源文件和资源文件下,但我似乎无法在引用下调整它的速度,因为它只能让我选择另一个项目。

最佳答案

我知道此属性只是针对 C++ 项目隐藏的。多么不幸

在这里回答:

Automatic copy files to output during application building

关于c++ - 使用 Visual Studio 2015、C++ 项目的 DLL 没有 "Copy to Output Directory",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45492404/

相关文章:

c++ - 在 C++ 中重构一个类

asp.net - 在 ASP .NET vNext 中使用 Bower 更新包时遇到问题

c# - Visual Studio 2015 表示 'cast is redundant' 。为什么?

c# - VS2015 MVC 无编译经验

c++ - 添加相邻像素的问题

c++ - 文件是否需要扩展名才能在 C/C++ 中使用 open() 打开?

c++ - 在 C/C++ 中加载 DLL 时遇到问题

c++ - 将斯坦福 C++ 库添加到 Visual Studio 2015

visual-studio-2015 - 将Visual Studio 2015解决方案文件转换/降级到2013

c++ - 制作 uint128 库但不能,找出什么功能搞砸了