我已下载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.现在,我在解压.exe的文件夹中查找,所有二进制文件都在那里。
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. 第三步是我被卡住的地方。我有一个带有web.config的WCF服务项目。我右键单击web.config,但没有看到"Edit Enterprise Library V6 Configuration“上下文菜单选项。
我确实看到了一个“编辑服务器配置文件v6”。然而,当我点击它时,我得到了下面的错误。

我要做的就是在我的WCF服务项目中使用异常处理应用程序块。我在网上四处寻找,也找不到任何简单的分步指南来指导我。任何帮助都是非常感谢的。
发布于 2013-05-14 01:14:30
我不得不使用NuGet来安装我想在项目中使用的应用程序块。对我来说,工具WCF库包管理器>>管理解决方案的NuGet包,并添加适当的EntLib 6异常处理应用程序块WCF。
发布于 2013-08-21 18:20:58
您需要将“企业库v6二进制文件路径”的解决方案属性设置为您解压缩的文件夹"EnterpriseLibrary6-binaries.exe“。
您可以通过单击解决方案,然后按F4来查看属性窗口,但是您需要确保您的"Enterprise Library Config tool“是v6。http://www.microsoft.com/en-us/download/details.aspx?id=38789
Visual Studio Gallery提供了Enterprise Library 5 Config工具,该工具显然是错误的版本。
发布于 2016-03-21 05:04:05
只需从下面的链接下载Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix,并在安装时提供VS2012或Vs2013。
http://www.microsoft.com/en-us/download/details.aspx?id=38789
安装完成后,重新启动Visual Studio。您将配置Enterprise Library 6.0。默认情况下,VS中的扩展和更新提供了5.0配置,我们需要6.0才能工作。
https://stackoverflow.com/questions/16425235
复制相似问题