Set “Copy Local” to False by default?

前端 未结 6 1785
闹比i
闹比i 2020-12-04 19:48

Can I set the default-option of \"Copy Local\" in Visual Studio to False? In most times, when I add a dll as dependency of a project, I want the Copy Local property set to F

6条回答
  •  生来不讨喜
    2020-12-04 19:55

    No - Visual Studio uses an internal set of rules to determine what to set Copy Local to.

    From 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.

提交回复
热议问题