2013-05-07 45 views
3

然后,新的企业库6已经出来,可以是downloaded here。我已经将EnterpriseLibrary6-binaries.exe下载并提取到我的C:驱动器上的文件夹中。自述文件中提到:使用企业LIbrary 6应用程序块

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文件夹,所有的二进制文件都在那里。现在,这里是企业库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是我卡住的地方。我有一个WCF服务项目和一个web.config。我右键单击web.config,但没有看到“编辑企业库V6配置”上下文菜单选项。

我看到“编辑服务器配置文件v6”。但是,当我点击这个时,我得到以下错误。

enter image description here

所有我想要做的是使用异常处理应用程序块在我的WCF服务项目。我浏览过网页,找不到任何简单的分步教程来指导我。任何帮助是极大的赞赏。

回答

3

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

4

您需要为“Enterprise Library v6二进制文件路径”设置解决方案属性,以将您解压缩的文件夹“EnterpriseLibrary6-binaries.exe”设置为 。

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

Visual Studio Gallery提供了Enterprise Library 5 Config工具,这显然是错误的版本。

0

刚刚从下面的链接下载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才能工作。

0

这是对我工作:

下载Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix,从here和安装过程中,提供VS2012或VS2013。

然后重新启动您的VS2012/2013,你应该很好去!