.NET Framework 工具.NET Framework Tools

.NET Framework 工具可讓您更輕鬆地建立、部署和管理以 .NET Framework 為目標的應用程式和元件。The .NET Framework tools make it easier for you to create, deploy, and manage applications and components that target the .NET Framework.

本節提及的大部分 .NET Framework 工具會隨 Visual Studio 自動安裝Most of the .NET Framework tools described in this section are automatically installed with Visual Studio. 若要下載 Visual Studio,請前往 Visual Studio 下載頁面。To download Visual Studio, visit the Visual Studio Downloads page.

除了組件快取檢視器 (Shfusion.dll) 之外,您可以從命令列執行所有的工具。You can run all the tools from the command line with the exception of the Assembly Cache Viewer (Shfusion.dll). 您必須從 [檔案總管] 存取 Shfusion.dll。You must access Shfusion.dll from File Explorer.

執行命令列工具的最佳方式,是使用 Visual Studio 的 [開發人員命令提示字元]。The best way to run the command-line tools is by using the Developer Command Prompt for Visual Studio. 這些公用程式可讓您輕鬆執行工具,而不必巡覽至安裝資料夾。These utilities enable you to run the tools easily, without navigating to the installation folder. 如需詳細資訊,請參閱命令提示字元For more information, see Command Prompts.

注意

某些工具為 32 位元電腦或 64 位元電腦專用。Some tools are specific to either 32-bit computers or 64-bit computers. 請務必執行電腦適用的工具版本。Be sure to run the appropriate version of the tool for your computer.

本節內容In This Section

Al.exe (組件連結器)Al.exe (Assembly Linker)
從模組或資源檔中產生一個包含組件資訊清單的檔案。Generates a file that has an assembly manifest from modules or resource files.

Aximp.exe (Windows Forms ActiveX 控制項匯入工具)Aximp.exe (Windows Forms ActiveX Control Importer)
將 COM 類型程式庫中的類型定義轉換為 Windows Form 控制項中的 ActiveX 控制項。Converts type definitions in a COM type library for an ActiveX control into a Windows Forms control.

Caspol.exe (程式碼存取安全性原則工具)Caspol.exe (Code Access Security Policy Tool)
可讓您檢視和設定電腦原則層級、使用者原則層級和企業原則層級的安全性原則。Enables you to view and configure security policy for the machine policy level, the user policy level, and the enterprise policy level. 在 .NET Framework 4 與更新版本中,除非將 <legacyCasPolicy> 元素設定為 true,否則此工具並不會影響程式碼存取安全性 (CAS) 原則。In the .NET Framework 4 and later, this tool does not affect code access security (CAS) policy unless the <legacyCasPolicy> element is set to true. 如需詳細資訊,請參閱安全性變更For more information, see Security Changes.

Cert2spc.exe (軟體發行者憑證測試工具)Cert2spc.exe (Software Publisher Certificate Test Tool)
從一個或多個 X.509 憑證建立軟體發行者憑證 (SPC)。Creates a Software Publisher's Certificate (SPC) from one or more X.509 certificates. 這個工具僅供測試用。This tool is for testing purposes only.

Certmgr.exe (憑證管理員工具)Certmgr.exe (Certificate Manager Tool)
管理憑證、憑證信任清單 (CTL) 和憑證廢止清單 (CRL)。Manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs).

Clrver.exe (CLR 版本工具)Clrver.exe (CLR Version Tool)
會報告電腦上已安裝的所有Common Language Runtime (CLR) 版本。reports all the installed versions of the common language runtime (CLR) on the computer.

CorFlags.exe (CorFlags 轉換工具)CorFlags.exe (CorFlags Conversion Tool)
可讓您設定可攜式執行檔 (PE) 影像之標頭的 CorFlags 區段。Lets you configure the CorFlags section of the header of a portable executable (PE) image.

Fuslogvw.exe (組件繫結記錄檔檢視器)Fuslogvw.exe (Assembly Binding Log Viewer)
顯示有關組件繫結的資訊,可以協助您診斷 .NET Framework 為何不能在執行階段時找到組件。Displays information about assembly binds to help you diagnose why the .NET Framework cannot locate an assembly at run time.

Gacutil.exe (全域組件快取工具)Gacutil.exe (Global Assembly Cache Tool)
可讓您檢視和操作全域組件快取的內容並下載快取。Lets you view and manipulate the contents of the global assembly cache and download cache.

Ilasm.exe (IL 組譯工具)Ilasm.exe (IL Assembler)
從中繼語言 (IL) 中產生可攜式執行檔 (PE)。Generates a portable executable (PE) file from intermediate language (IL). 您可以執行產生的可執行檔,來判斷 IL 是否如預期般地執行。You can run the resulting executable to determine whether the IL performs as expected.

Ildasm.exe (IL 反組譯工具)Ildasm.exe (IL Disassembler)
使用包含中繼語言 (IL) 程式碼的可攜式執行檔 (PE),並建立可以輸入至 IL 組譯工具 (Ilasm.exe) 的文字檔。Takes a portable executable (PE) file that contains intermediate language (IL) code and creates a text file that can be input to the IL Assembler (Ilasm.exe).

Installutil.exe (安裝程式工具)Installutil.exe (Installer Tool)
可讓您藉由執行所指定組件的 Installer 元件,來安裝和解除安裝伺服器資源Enables you to install and uninstall server resources by executing the installer components in a specified assembly. (使用 System.Configuration.Install 命名空間中的類別)。(Works with classes in the System.Configuration.Install namespace.)

Lc.exe (授權編譯器)Lc.exe (License Compiler)
讀取含有授權資訊的文字檔,並且產生可內嵌於通用語言執行平台可執行檔中做為資源的 .licenses 檔案。Reads text files that contain licensing information and produces a .licenses file that can be embedded in a common language runtime executable as a resource.

Mage.exe (資訊清單產生和編輯工具)Mage.exe (Manifest Generation and Editing Tool)
可讓您建立、編輯和簽署應用程式以及部署資訊清單。Lets you create, edit, and sign application and deployment manifests. 由於 Mage.exe 是命令列工具,因此可以從批次指令碼及其他 Windows 架構應用程式 (包括 ASP.NET 應用程式) 中執行。As a command-line tool, Mage.exe can be run from both batch scripts and other Windows-based applications, including ASP.NET applications.

MageUI.exe (圖形用戶端、資訊清單產生和編輯工具)MageUI.exe (Manifest Generation and Editing Tool, Graphical Client)
支援與命令列工具 Mage.exe 相同的功能,但使用 Windows 架構使用者介面 (UI)。Supports the same functionality as the command-line tool Mage.exe, but uses a Windows-based user interface (UI). 支援與命令列工具 Mage.exe 相同的功能,但使用 Windows 架構使用者介面 (UI)。Supports the same functionality as the command-line tool Mage.exe, but uses a Windows-based user interface (UI).

MDbg.exe (.NET Framework 命令列偵錯工具)MDbg.exe (.NET Framework Command-Line Debugger)
協助工具廠商和應用程式開發人員尋找並修復以 .NET Framework 通用語言執行平台為目標的程式中的 Bug。Helps tools vendors and application developers find and fix bugs in programs that target the .NET Framework common language runtime. 這個工具使用執行階段偵錯 API 來提供偵錯服務。This tool uses the runtime debugging API to provide debugging services.

Mgmtclassgen.exe (管理強類型類別產生器)Mgmtclassgen.exe (Management Strongly Typed Class Generator)
可讓您為指定的 Windows Management Instrumentation (WMI) 類別,產生早期繫結 Managed 類別。Enables you to generate an early-bound managed class for a specified Windows Management Instrumentation (WMI) class.

Mpgo.exe (Managed 特性指引最佳化工具)Mpgo.exe (Managed Profile Guided Optimization Tool)
可讓您調整使用一般使用者情節的原生映像組件。Enables you to tune native image assemblies using common end-user scenarios. Mpgo.exe 可讓您使用應用程式開發人員選出的訓練情節,產生和使用原生映像應用程式組件 (不是 .NET Framework 組件) 的分析資料。Mpgo.exe allows the generation and consumption of profile data for native image application assemblies (not the .NET Framework assemblies) using training scenarios selected by the application developer.

Ngen.exe (原生映像產生器)Ngen.exe (Native Image Generator)
透過使用原生影像 (含有已編譯之處理器特定機器碼的檔案),改善 Managed 應用程式的效能。Improves the performance of managed applications through the use of native images (files containing compiled processor-specific machine code). 執行階段就可以從快取中使用原生映像,而不是使用 Just-In-Time (JIT) 編譯器來編譯原始組件。The runtime can use native images from the cache instead of using the just-in-time (JIT) compiler to compile the original assembly.

Peverify.exe (PEVerify 工具)Peverify.exe (PEVerify Tool)
可以協助您驗證 Microsoft Intermediate Language (MSIL) 程式碼及相關的中繼資料是否符合類型安全需求。Helps you verify whether your Microsoft intermediate language (MSIL) code and associated metadata meet type safety requirements. 可以協助您驗證 Microsoft Intermediate Language (MSIL) 程式碼及相關的中繼資料是否符合類型安全需求。Helps you verify whether your Microsoft intermediate language (MSIL) code and associated metadata meet type safety requirements.

Regasm.exe (組件登錄工具)Regasm.exe (Assembly Registration Tool)
讀取組件內的中繼資料,並將需要的項目加入登錄。Reads the metadata within an assembly and adds the necessary entries to the registry. 這可讓 COM 用戶端顯示為 .NET Framework 類別。This enables COM clients to appear as .NET Framework classes.

Regsvcs.exe (.NET 服務安裝工具)Regsvcs.exe (.NET Services Installation Tool)
載入並註冊組件、產生並安裝類型程式庫至指定的 COM+ 1.0 版應用程式,以及設定您已利用程式設計方式加入至類別的服務。Loads and registers an assembly, generates and installs a type library into a specified COM+ version 1.0 application, and configures services that you have added programmatically to a class.

Resgen.exe (資源檔產生器)Resgen.exe (Resource File Generator)
將文字檔 (.txt 或 .restext) 和 XML 架構資源格式 (.resx) 檔案轉換為可以內嵌於執行階段二進位執行檔或編譯到附屬組件中的通用語言執行平台二進位 (.resources) 檔案。Converts text (.txt or .restext) files and XML-based resource format (.resx) files to common language runtime binary (.resources) files that can be embedded in a runtime binary executable or compiled into satellite assemblies.

SecAnnotate.exe (.NET Security Annotator 工具)SecAnnotate.exe (.NET Security Annotator Tool)
識別組件的 SecurityCritical 和 SecuritySafeCritical 部分。Identifies the SecurityCritical and SecuritySafeCritical portions of an assembly. 識別組件的 SecurityCriticalSecuritySafeCritical 的部分。Identifies the SecurityCritical and SecuritySafeCritical portions of an assembly.

SignTool.exe (簽署工具)SignTool.exe (Sign Tool)
數位簽署檔案、驗證檔案中的簽章,以及為檔案加上時間戳記。Digitally signs files, verifies signatures in files, and time-stamps files.

Sn.exe (強式名稱工具)Sn.exe (Strong Name Tool)
幫助以強式名稱 (Strong Name) 建立組件。Helps create assemblies with strong names. 這個工具提供了金鑰管理、簽章產生和簽章驗證的選項。This tool provides options for key management, signature generation, and signature verification.

SOS.dll (SOS 偵錯延伸模組)SOS.dll (SOS Debugging Extension)
提供內部通用語言執行平台環境的相關資訊,以協助您在 WinDbg.exe 偵錯工具和 Visual Studio 中偵錯 Managed 程式。Helps you debug managed programs in the WinDbg.exe debugger and in Visual Studio by providing information about the internal common language runtime environment.

SqlMetal.exe (程式碼產生工具)SqlMetal.exe (Code Generation Tool)
為 .NET Framework 的 LINQ to SQL 元件產生程式碼和對應。Generates code and mapping for the LINQ to SQL component of the .NET Framework.

Storeadm.exe (隔離儲存區工具)Storeadm.exe (Isolated Storage Tool)
管理隔離儲存區 (Isolated Storage),提供選項以列出使用者的存放區並加以刪除。Manages isolated storage; provides options for listing the user's stores and deleting them.

Tlbexp.exe (類型程式庫匯出工具)Tlbexp.exe (Type Library Exporter)
產生類型程式庫,類型程式庫會描述通用語言執行平台 (CLR) 組件中所定義的類型。Generates a type library that describes the types that are defined in a common language runtime assembly.

Tlbimp.exe (類型程式庫匯入工具)Tlbimp.exe (Type Library Importer)
將 COM 類型程式庫中找到的類型定義轉換為通用語言執行平台組件中的等效定義。Converts the type definitions found in a COM type library into equivalent definitions in a common language runtime assembly.

Winmdexp.exe (Windows 執行階段中繼資料匯出工具)Winmdexp.exe (Windows Runtime Metadata Export Tool)
匯出已編譯成 .winmdobj 檔案的 .NET Framework 組件至 Windows 執行階段元件中,該組件已封裝為同時包含 Windows 執行階段中繼資料和實作資訊的 .winmd 檔案。Exports a .NET Framework assembly that is compiled as a .winmdobj file into a Windows Runtime component, which is packaged as a .winmd file that contains both Windows Runtime metadata and implementation information.

Winres.exe (Windows Forms 資源編輯器)Winres.exe (Windows Forms Resource Editor)
幫助您當地語系化 Windows Forms 所使用的使用者介面 (UI) 資源 (.resx 或 .resources 檔案)。Helps you localize user interface (UI) resources (.resx or .resources files) that are used by Windows Forms. 您可以解譯字串,然後調整大小、移動和隱藏控制項來容納當地語系化的字串。You can translate strings, and then size, move, and hide controls to accommodate the localized strings.

WPF 工具WPF Tools
包括 isXPS Conformance 工具 (isXPS.exe) 和效能程式碼剖析工具這類工具。Includes tools such as the isXPS Conformance tool (isXPS.exe) and performance profiling tools.

Windows Communication Foundation 工具Windows Communication Foundation Tools
包含多種工具,可以幫助您更輕鬆地建立、部署及管理 Windows Communication Foundation (WCF) 應用程式。Includes tools that make it easier for you to create, deploy, and manage Windows Communication Foundation (WCF) applications.