【问题标题】:Using Enterprise LIbrary 6 Application Blocks使用 Enterprise LIbrary 6 应用程序块
【发布时间】:2013-05-07 17:38:23
【问题描述】:

然后新的 Enterprise Library 6 出来了,可以是downloaded here。我已将 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 服务项目中使用异常处理应用程序块。我浏览了网络,也找不到任何简单的分步教程来指导我。非常感谢任何帮助。

【问题讨论】:

    标签: enterprise-library


    【解决方案1】:

    您需要将“企业库 v6 二进制文件路径”的解决方案属性设置为 您提取“EnterpriseLibrary6-binaries.exe”的文件夹。

    您可以通过单击解决方案然后按 F4 来查看属性窗口来执行此操作,但您需要确保您的“企业库配置工具”是 v6。 http://www.microsoft.com/en-us/download/details.aspx?id=38789

    Visual Studio Gallery 提供的 Enterprise Library 5 Config 工具明显是错误的版本。

    【讨论】:

      【解决方案2】:

      我必须使用 NuGet 来安装我想在项目中使用的应用程序块。对我来说,工具 >> 库包管理器 >> 管理 NuGet 包以获得解决方案并添加适当的 EntLib 6 异常处理应用程序块 WCF 提供程序。

      【讨论】:

        【解决方案3】:

        只需下载 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 才能工作。

        【讨论】:

          【解决方案4】:

          这对我有用:

          here下载Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix,安装时提供VS2012或VS2013。

          然后重新启动您的 VS2012/2013,您应该一切顺利!

          【讨论】:

            猜你喜欢
            • 2013-05-02
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2011-04-21
            • 1970-01-01
            • 2011-12-31
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多