简体   繁体   English

如何在Visual Studio社区2015中将Copy Local Property设置为true

[英]How to Set the Copy Local Property to true in visual studio community 2015

我试图在Visual Studio 2015中将Copy Local属性设置为True但是当我将其从false更改为true并移动到下一个属性时,值将更改回false

在此输入图像描述

You will need to do the following 您需要执行以下操作

  • Click on the reference in the references tab 单击引用选项卡中的引用

  • Hit F4 to bring up the properties grid 点击F4调出属性网格

  • Set "Embed Interop Types" to False (this will ungray Copy Local) 将“嵌入互操作类型”设置为False(这将取消对“复制本地”的影响)

  • Set "Copy Local" to true 将“复制本地”设置为true

This could caused by "global Settings" 这可能是由“全局设置”引起的

Check if there is a Directory.Build.props -File somewhere in the folder that contains your source, and remove it. 检查包含源的文件夹中是否存在Directory.Build.props -File,并将其删除。

For background see my Answer here: https://stackoverflow.com/a/50755604/1196586 有关背景,请参阅我的答案: https//stackoverflow.com/a/50755604/1196586

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM