【发布时间】: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 下调整它,因为它只能让我选择另一个项目。
【问题讨论】: