<developmentMode > 元素<developmentMode> Element

指定运行时是否搜索由 DEVPATH 环境变量指定的目录中的程序集。Specifies whether the runtime searches for assemblies in directories specified by the DEVPATH environment variable.

<configuration><configuration>
<运行时 ><runtime>
<developmentMode><developmentMode>

语法Syntax

<developmentMode developerInstallation="true | false"/>  

特性和元素Attributes and Elements

下列各节描述了特性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

特性Attributes

特性Attribute 描述Description
developerInstallationdeveloperInstallation 指定运行时是否搜索由 DEVPATH 环境变量指定的目录中的程序集。Specifies whether the runtime searches for assemblies in directories specified by the DEVPATH environment variable.

developerInstallation 属性developerInstallation Attribute

“值”Value 描述Description
truetrue 搜索由 DEVPATH 环境变量指定的目录中的程序集。Searches for assemblies in directories specified by the DEVPATH environment variable.
falsefalse 不会搜索由 DEVPATH 环境变量指定的目录中的程序集。Does not search for assemblies in directories specified by the DEVPATH environment variable. 这是默认值This is the default

子元素Child Elements

无。None.

父元素Parent Elements

元素Element 描述Description
configuration 公共语言运行时和 .NET Framework 应用程序所使用的每个配置文件中的根元素。The root element in every configuration file used by the common language runtime and .NET Framework applications.
runtime 包含有关程序集绑定和垃圾回收的信息。Contains information about assembly binding and garbage collection.

备注Remarks

仅在开发期间使用此设置。Use this setting only at development time. 在运行时不会检查位于 devpath 查找程序集强名称的程序集上的版本。The runtime does not check the versions on strong-named assemblies found in the DEVPATH. 它只需使用它找到的第一个程序集。It simply uses the first assembly it finds.

示例Example

下面的示例演示如何会导致运行时用于搜索由 DEVPATH 环境变量指定的目录中的程序集。The following example shows how to cause the runtime to search for assemblies in directories specified by the DEVPATH environment variable.

<configuration>  
   <runtime>  
      <developmentMode developerInstallation="true"/>  
   </runtime>  
</configuration>  

请参阅See also