<developmentMode > 元素<developmentMode> Element

指定執行階段是否要在 DEVPATH 環境變數所指定的目錄中搜尋組件。Specifies whether the runtime searches for assemblies in directories specified by the DEVPATH environment variable.

<configuration> <configuration>
    <runtime >   <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