Configuration Editor not available in VS2010 EntLib 5.0

Topics: General discussion
Apr 9, 2010 at 4:47 AM

After installing Enterprise Library 5.0, I tried to edit the app.config file with the configuration edtor of entlib5.0 but there was no menu item available.

It seems that there's something missing.

So I opened the regedit willing to find the problem.

Lucky I finally recognized that intergration is just ok for VS2008, missing the items for VS2010.

After exporting those items, changing VS version from 9.0 to 10.0, and importing them back to register, I find it works now.

The following are the reg item I imported.

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\InstalledProducts\EnterpriseLibraryIntegrationPackageV5]
@="#110"
"Package"="{88220936-600f-4815-8f00-e9ef22a31929}"
"ProductDetails"="#112"
"PID"="4.0"
"LogoID"="#400"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{88220936-600f-4815-8f00-e9ef22a31929}]
@="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.EnterpriseLibraryIntegrationPackage, Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration"
"InprocServer32"="C:\\Windows\\system32\\mscoree.dll"
"Class"="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.EnterpriseLibraryIntegrationPackage"
"CodeBase"="D:\\Program Files\\Microsoft Enterprise Library 5.0 Beta 2 - March 2010\\Visual Studio Integration\\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.dll"
"ID"=dword:00000001
"MinEdition"="Standard"
"ProductVersion"="5.0.0.0"
"ProductName"="Enterprise Library Configuration Editor"
"CompanyName"="Microsoft"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{88220936-600f-4815-8f00-e9ef22a31929}\ConfigurationEditor]
"defaultConfigurationSet"="Microsoft Signed"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{88220936-600f-4815-8f00-e9ef22a31929}\ConfigurationEditor\Microsoft Signed]
"ConfigurationUIAssemblyPath"="D:\\Program Files\\Microsoft Enterprise Library 5.0 Beta 2 - March 2010\\Bin\\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll"
"ConfigurationUIAdapterClass"="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Hosting.SingleHierarchyConfigurationUIHostAdapter"
"ConfigurationUIPluginDirectory"="D:\\Program Files\\Microsoft Enterprise Library 5.0 Beta 2 - March 2010\\Bin\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\AutoLoadPackages\{F1536EF8-92EC-443C-9ED7-FDADF150DA82}]
"{88220936-600f-4815-8f00-e9ef22a31929}"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Editors\{b664d5bf-b647-422a-ad19-d73b92490e5f}]
@="EnterpriseLibraryIntegrationPackage"
"DisplayName"="#105"
"Package"="{88220936-600f-4815-8f00-e9ef22a31929}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Editors\{b664d5bf-b647-422a-ad19-d73b92490e5f}\Extensions]
"config"=dword:0000001f

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Editors\{b664d5bf-b647-422a-ad19-d73b92490e5f}\LogicalViews]
"{7651a703-06e5-11d1-8ebd-00a0c90f2e6c}"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Menus]
"{88220936-600f-4815-8f00-e9ef22a31929}"=", 1000, 1"

-----------------------------------------------------------

Chinese translation:

安装了 Enterprise Library 5.0 Beta2 之后,我始终无法找到文档中指出的右键菜单来编辑 app.config。为了使 Configuration Editor 可用,我尝试找到了相关的注册表项。幸运的是,这个类库对我安装的VS2008完全支持。于是我导出了针对VS2008的相关注册表项,并且更改版本9.0到10.0,然后重新导入。再次启动VS2010时配置文件编辑器就可用了。如果您有相同的问题但是不知道如何解决,可以尝试一下我的方法,注册表项请参照以上。

 

Apr 9, 2010 at 8:59 AM

We'll have an integration experience for VS 2010 at release, but it won't be the fully integrated editor. We ended up with a ton of problems around assembly loading with the integrated editor in 2010 - basically, when running in VS 2010, you're limited to picking types in 32-bit .NET 4.0 projects. If you're working on a 64-bit project, or targetting .NET 3.5 instead, you're kind of stuck.

Instead, you'll get the same "Edit with Enterprise Library" menu item, but it'll launch the standalone config tool in a separate process. We do a little spelunking on the project file to make sure we launch the right combination of bitness and framework target so things just work.