visual-studio - 默认情况下将 "Copy Local"设置为 False 吗?

标签 visual-studio copy-local

我可以将 Visual Studio 中“复制本地”的默认选项设置为 False 吗?大多数时候,当我添加 dll 作为项目的依赖项时,我希望将“复制本地”属性设置为 False。默认情况下,它是 True。有没有办法改变 Visual Studio 的默认行为? (2008)

最佳答案

否 - Visual Studio 使用一组内部规则来确定将“复制本地”设置为什么。

来自MSDN :

  1. If the reference is another project, called a project-to-project reference, then the value is true.
  2. If the assembly is found in the global assembly cache, the value is false.
  3. As a special case, the value for the mscorlib.dll reference is false.
  4. If the assembly is found in the Framework SDK folder, then the value is false.
  5. Otherwise, the value is true.

关于visual-studio - 默认情况下将 "Copy Local"设置为 False 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3101055/

相关文章:

c# - 如何使用 NuGet 包添加对 Visual 项目的引用?

mysql - 尝试并捕获插入 MySQL 中的 MysqlCmd.ExecuteNonQuery

c# - C#.NET 和 Xamarin 移动应用程序共享代码库?

visual-studio - 在 nuget 包中将内容文件设置为 "copy local : always"

c# - 引用 dll 而不复制它们 C#

visual-studio - 解决方案中损坏的引用

c++ - 将所有 { 移动到函数名称的右侧?

wpf - 仅在 XAML 中使用的程序集不会复制到 bin 文件夹

.net - 我应该如何确定哪些引用必须是 "copied locally"?

visual-studio - 将 nuget 包中的内容文件设置为 "copy local : always"