简体   繁体   中英

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

  • Set "Embed Interop Types" to False (this will ungray Copy Local)

  • Set "Copy Local" to 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.

For background see my Answer here: https://stackoverflow.com/a/50755604/1196586

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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