1

Resolved

ResXManager does not show my resx

description

<<< 6: ListBox.SelectAll 00:00:00.0106995
7: ListBox.SelectAll @22:28:42.7 <<< 7: ListBox.SelectAll 00:00:00.0086621
8: ListBox.SelectAll @22:28:55.8 9: Enumerate source files @22:28:55.8 <<< 9: Enumerate source files 00:00:00.1239019
<<< 8: ListBox.SelectAll 00:00:00.1375437
10: ResourceManager.Load @22:29:10.6 11: Enumerate source files @22:29:10.6 <<< 11: Enumerate source files 00:00:00.1268249
<<< 10: ResourceManager.Load 00:00:00.1551821
Error: System.Diagnostics.Contracts.__ContractsRuntime+ContractException: Precondition failed: !string.IsNullOrEmpty(key)
at System.Diagnostics.Contracts.__ContractsRuntime.Requires(Boolean condition, String msg, String conditionTxt) in C:\Agent_work\3\s\Main\ResXManager.Model\ResourceManagerExtensions.cs:line 0
at tomenglertde.ResXManager.Model.ResourceTableEntry..ctor(ResourceEntity container, String key, Double index, IDictionary2 languages) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceTableEntry.cs:line 71
at tomenglertde.ResXManager.Model.ResourceEntity.<.ctor>b__11_2(String key, Int32 index) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:line 71
at System.Linq.Enumerable.<SelectIterator>d__5
2.MoveNext()
at System.Collections.ObjectModel.ObservableCollection1.CopyFrom(IEnumerable1 collection)
at System.Collections.ObjectModel.ObservableCollection1..ctor(IEnumerable1 collection)
at tomenglertde.ResXManager.Model.ResourceEntity..ctor(ResourceManager container, String projectName, String baseName, String directoryName, ICollection1 files, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceEntity.cs:line 73
at tomenglertde.ResXManager.Model.ResourceManager.LoadEntities(IEnumerable
1 fileNamesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent_work\3\s\Main\ResXManager.Model\ResourceManager.cs:line 264
at tomenglertde.ResXManager.Model.ResourceManager.InternalLoad(IEnumerable1 resourceFilesByDirectory, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent\_work\3\s\Main\ResXManager.Model\ResourceManager.cs:line 196
at tomenglertde.ResXManager.Model.ResourceManager.Load(IList
1 allSourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent_work\3\s\Main\ResXManager.Model\ResourceManager.cs:line 70
at tomenglertde.ResXManager.Model.ResourceManager.Reload(IList`1 sourceFiles, DuplicateKeyHandling duplicateKeyHandling) in C:\Agent_work\3\s\Main\ResXManager.Model\ResourceManager.cs:line 168
at tomenglertde.ResXManager.View.Visuals.ResourceViewModel.Reload(Boolean forceFindCodeReferences) in C:\Agent_work\3\s\Main\ResXManager.View\Visuals\ResourceViewModel.cs:line 456

comments

tomenglert wrote Mar 18 at 7:25 AM

I think this is a duplicate of https://resxresourcemanager.codeplex.com/workitem/4781
Can you check your resx files if there is one with an empty key?

wrote Mar 19 at 1:58 PM

Associated with changeset 37752: Update GUI for empty resource key handling

wrote Mar 19 at 2:54 PM