Enterprise Core Objects 注册的问题

VS下Enterprise Core Objects 注册的问题

把下面的文件写入记事本,导入到注册表即可 

REGEDIT4

[HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/AutoLoadPackages/{93694fa0-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/AutoLoadPackages/{adfc4e65-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[HKEY_LOCAL_MACHINE/Software/Microsoft//VisualStudio//8.0/AutoLoadPackages/{adfc4e66-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/AutomationProperties/Eco]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/InstalledProducts/EcoVsPackage]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/Packages/{53ba6655-6f20-47e3-aa22-72b6ad36470e}]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/ToolsOptionsPages/Eco]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/8.0/UserSettings/Eco_General]

[HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/AutoLoadPackages/{93694fa0-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/AutoLoadPackages/{adfc4e65-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[HKEY_LOCAL_MACHINE/Software/Microsoft//VisualStudio//9.0/AutoLoadPackages/{adfc4e66-0397-11d1-9f4e-00a0c911004f}]
"{53ba6655-6f20-47e3-aa22-72b6ad36470e}"=-
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/AutomationProperties/Eco]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/InstalledProducts/EcoVsPackage]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/Packages/{53ba6655-6f20-47e3-aa22-72b6ad36470e}]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/ToolsOptionsPages/Eco]
[-HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/9.0/UserSettings/Eco_General]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 .NET Core 中使用 Enterprise Library,需要执行以下步骤: 1. 安装 NuGet 包:在项目中安装 Enterprise Library 的 NuGet 包。在 Visual Studio 中,右键单击项目并选择“Manage NuGet Packages”,然后搜索“EnterpriseLibrary”并安装。 2. 添加配置文件:在项目中添加一个名为“app.config”的配置文件,并将以下代码添加到文件中: ``` <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /> </configSections> <enterpriseLibrary.ConfigurationSource selectedSource="File Configuration Source"> <sources> <add name="File Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" filePath=".\App.config" /> </sources> <redirectSections> <section name="loggingConfiguration" sourceName="File Configuration Source" /> </redirectSections> </enterpriseLibrary.ConfigurationSource> <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General"> <listeners> <add name="Rolling Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" fileName="C:\logs\myapp.log" footer="--------------------------" formatter="Text Formatter" header="--------------------------" rollFileExistsBehavior="Increment" rollInterval="Day" rollSizeKB="1024" timeStampPattern="yyyy-MM-dd" /> </listeners> <formatters> <add name="Text Formatter" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="{timestamp} [{category}] {message}" /> </formatters> <categorySources> <add switchValue="All" name="General"> <listeners> <add name="Rolling Flat File Trace Listener" /> </listeners> </add> </categorySources> </loggingConfiguration> </configuration> ``` 这个配置文件包含一个名为“Rolling Flat File Trace Listener”的日志记录器,它将日志记录到文件中。你可以根据自己的需要更改此配置。 3. 创建 Enterprise Library 实例:在代码中创建 Enterprise Library 实例,并使用它来记录日志。以下是一个示例: ``` using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; using Microsoft.Practices.EnterpriseLibrary.Logging; ILogger logger = EnterpriseLibraryContainer.Current.GetInstance<ILogger>(); logger.Write("Hello, world!"); ``` 这将使用配置文件中指定的日志记录器记录一条消息。 希望这可以帮助你配置 Enterprise Library 在 .NET Core 中运行。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值