然后新的 Enterprise Library 6 出来了,可以在这里下载。我已将 EnterpriseLibrary6-binaries.exe 下载并解压缩到我的 C: 驱动器上的文件夹中。自述文件是这样说的:
MICROSOFT ENTERPRISE LIBRARY 6
Summary: This package contains Enterprise Library configuration console, MSMQ distributor service, merge configuration tool and a script to download binaries for all application blocks from NuGet.
In order to get all the binaries, run the install-packages.ps1 script.
Note: For the Semantic Logging Application Block Out-of-Process service, a separate package is available for download.
然后我运行 Powershell 并运行脚本。我现在查看将 .exe 提取到的文件夹,所有二进制文件都在那里。现在,这里是来自 Enterprise Library 6 .chm 的说明。
To install the integrated Visual Studio configuration editor
1. On the Visual Studio Tools menu, choose Extensions and Updates.
2. In the Extensions and Updates dialog, search online for EnterpriseLibrary.config.
3. Click the Download button to download and install the Enterprise Library configuration editor.
4. Restart Visual Studio to complete the installation.
To launch and use the configuration editor from Visual Studio
1. Open a solution in Visual Studio.
2. If the solution does not contain a configuration file, add one using the Visual Studio Add menu.
3. In Solution Explorer, right-click the configuration file and then click Edit Enterprise Library V6 Configuration. This launches the integrated configuration editor or the appropriate standalone version of the configuration tool.
步骤#3是我卡住的地方。我有一个带有 web.config 的 WCF 服务项目。我右键单击 web.config,但没有看到“编辑企业库 V6 配置”上下文菜单选项。
我确实看到了“编辑服务器配置文件 v6”。但是,当我单击此按钮时,会出现以下错误。
我要做的就是在我的 WCF 服务项目中使用异常处理应用程序块。我浏览了网络,也找不到任何简单的分步教程来指导我。任何帮助是极大的赞赏。