Resxresourcemanager: 打开 RESX 资源管理器时出现空白屏幕

创建于 2018-03-12  ·  13评论  ·  资料来源: dotnet/ResXResourceManager

自从今天更新 VS 2017 以来,RESX 资源管理器不起作用,只是一个空白屏幕?? 我已经成功使用该产品一年多了,没有出现任何问题。 顺便说一下,解决方案是开放的,以防万一你想知道。 我已经卸载并重新安装,但仍然不高兴。

image

最有用的评论

作为快速修复,我从错误消息中提到的文件夹中的另一个项目中复制了 Newtonsoft.Json.dll 文件。 在我的情况下 c:\Users\erik\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\mxiin3v3.hu0。 这似乎暂时有效。

所有13条评论

VS 2015 上的同样问题
default

ResX 版本:1.12.976

这是来自输出窗口的错误消息

ResX Resource Manager loaded.
Home: https://github.com/tom-englert/ResXResourceManager
Report issues: https://github.com/tom-englert/ResXResourceManager/issues
Support the project by adding a short review: https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager#review-details
Assembly location: C:\Users\shawn\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\obmgdcqr.v3y
Version: 1.12.976.0
Error: System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. 系統找不到指定的檔案。

Resulting in: An exception occurred while trying to create an instance of type 'tomenglertde.ResXManager.Translators.TranslatorHost'.

Resulting in: Cannot activate part 'tomenglertde.ResXManager.Translators.TranslatorHost'.
Element: tomenglertde.ResXManager.Translators.TranslatorHost -->  tomenglertde.ResXManager.Translators.TranslatorHost -->  AssemblyCatalog (Assembly="ResXManager.Translators, Version=1.12.976.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b")

Resulting in: Cannot get export 'tomenglertde.ResXManager.Translators.TranslatorHost (ContractName="tomenglertde.ResXManager.Translators.TranslatorHost")' from part 'tomenglertde.ResXManager.Translators.TranslatorHost'.
Element: tomenglertde.ResXManager.Translators.TranslatorHost (ContractName="tomenglertde.ResXManager.Translators.TranslatorHost") -->  tomenglertde.ResXManager.Translators.TranslatorHost -->  AssemblyCatalog (Assembly="ResXManager.Translators, Version=1.12.976.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b")

Resulting in: Cannot set import 'tomenglertde.ResXManager.View.Visuals.TranslationsViewModel..ctor (Parameter="translatorHost", ContractName="tomenglertde.ResXManager.Translators.TranslatorHost")' on part 'tomenglertde.ResXManager.View.Visuals.TranslationsViewModel'.
Element: tomenglertde.ResXManager.View.Visuals.TranslationsViewModel..ctor (Parameter="translatorHost", ContractName="tomenglertde.ResXManager.Translators.TranslatorHost") -->  tomenglertde.ResXManager.View.Visuals.TranslationsViewModel -->  AssemblyCatalog (Assembly="ResXManager.View, Version=1.12.976.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b")

Resulting in: Cannot get export 'tomenglertde.ResXManager.View.Visuals.TranslationsViewModel (ContractName="VisualComposition-86E8D1EF-1322-46B4-905C-115AAD63533D")' from part 'tomenglertde.ResXManager.View.Visuals.TranslationsViewModel'.
Element: tomenglertde.ResXManager.View.Visuals.TranslationsViewModel (ContractName="VisualComposition-86E8D1EF-1322-46B4-905C-115AAD63533D") -->  tomenglertde.ResXManager.View.Visuals.TranslationsViewModel -->  AssemblyCatalog (Assembly="ResXManager.View, Version=1.12.976.0, Culture=neutral, PublicKeyToken=695a75ddb69d5a4b")

   at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
   at System.ComponentModel.Composition.Primitives.Export.get_Value()
   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)
   at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass11_0`2.<CreateStronglyTypedLazyOfTM>b__1()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at TomsToolbox.Wpf.Composition.ItemsControlCompositionBehavior.<OnUpdate>b__4_1(Lazy`2 item)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at TomsToolbox.Wpf.Composition.ItemsControlCompositionBehavior.OnUpdate()
   at TomsToolbox.Wpf.Composition.VisualCompositionBehavior`1.Update()

我可以确认问题:VS 15.6.1 Professional

作为快速修复,我从错误消息中提到的文件夹中的另一个项目中复制了 Newtonsoft.Json.dll 文件。 在我的情况下 c:\Users\erik\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\mxiin3v3.hu0。 这似乎暂时有效。

我可以确认这是 ResX Resource Manager 的 V 1.12 版本问题,卸载它并手动安装 1.11 工作,然后禁用自动更新。

在 Visual Studio Community 15.6.1 中也一样

在第 15 社区中也是如此
我不得不卸载新版本,下载旧版本并安装它才能重新开始工作

我可以确认问题:VS 15 Professional

vanengelen 的解决方案有效,谢谢!

我也可以在 vs 15 pro 中确认。 iVcardo 的解决方案对我有用,我禁用了自动更新。

@tom-englert 有没有机会解决这个问题汤姆? 谢谢

我也可以在 vs 15 pro 中确认。

VS 2015 Enterprise 也一样

在 V1.13 中修复

此页面是否有帮助?
0 / 5 - 0 等级