我可以将 Visual Studio 中“复制本地”的默认选项设置为 False 吗?大多数时候,当我添加 dll 作为项目的依赖项时,我希望将“复制本地”属性设置为 False。默认情况下,它是 True。有没有办法改变 Visual Studio 的默认行为? (2008)
最佳答案
否 - Visual Studio 使用一组内部规则来确定将“复制本地”设置为什么。
来自MSDN :
- If the reference is another project, called a project-to-project reference, then the value is true.
- If the assembly is found in the global assembly cache, the value is false.
- As a special case, the value for the mscorlib.dll reference is false.
- If the assembly is found in the Framework SDK folder, then the value is false.
- Otherwise, the value is true.
关于visual-studio - 默认情况下将 "Copy Local"设置为 False 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3101055/