I'm with Visual Studio 2012 Update 3.
Comments: ** Comment from web user: ferry2 **
No it's not. I have selected a single resource file but "Add new key" not work. As I told that happens when I delete field.
No it's not. I have selected a single resource file but "Add new key" not work. As I told that happens when I delete field.
Thanks for the quick fix...
Could reproduce it like this:
1. Open ResXManager window
2. Select one or more resource files
3. Click one cell so it changes to edit mode (cursor is visible)
4. Click on the filter and change the text while the cell is still in edit mode.
So it's simply because on cell is in editing mode. Will be fixed soon.
Is it still empty if you click the refresh tool button?
Is there something in the output pane, e.g. an exception dump?
Is there any type of project that is in the new solution, but not in the old?
What version of Visual Studio do you use?
Its a hard job doing a rename on resource keys when you want to update the references, too.
References can be in code or in XAML, resources might be accessed by the generated code of the built in tool, indexed by string id, by some other code generated from custom text templates etc.
There is so many that can go wrong, so I would recommend to use the plain old "Search and Replace" method, that will cover the most cases, gives you full control of the result, and is already built in to Visual Studio.
Hi,
Thanks for the quick follow-up. Here are the answers:
- Yes, still empty even after clicking the refresh button
- Yes, exception dump (see below)
- No new project
- Tested with VS2012 Ultimate and VS2013 RC Ultimate
I guess the exception is pretty obvious (I didn't saw it until you mention it...). I will try to fix the resx :-)
Maybe you should display this kind of dialog to the user ?
Error: System.InvalidOperationException: Duplicate keys in 'C:\Users\Jérémy\TFS\Trunk\2Day.Core.Shared\Resources\StringResources.resx':
"TaskGroup_Due" ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at tomenglertde.ResXManager.Model.ResourceLanguage..ctor(String languageName, ProjectFile file)
--- End of inner exception stack trace ---
at tomenglertde.ResXManager.Model.ResourceLanguage..ctor(String languageName, ProjectFile file)
at tomenglertde.ResXManager.Model.ResourceEntity.<.ctor>b__5(<>f__AnonymousType1`2 <>h__TransparentIdentifier1)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at tomenglertde.ResXManager.Model.ResourceEntity..ctor(String projectName, String baseName, String directory, IEnumerable`1 files)
at tomenglertde.ResXManager.Model.ResourceManager.<GetResourceEntities>d__16.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at tomenglertde.ResXManager.Model.ResourceManager.InternalLoad(IEnumerable`1 fileNamesByDirectory)
at tomenglertde.ResXManager.Model.ResourceManager.Load(IEnumerable`1 allResXFiles)
at tomenglertde.ResXManager_VSIX.MyToolWindow.Solution_Changed(Boolean forceReload)
And I confirm fixing the ResX fixes my problem :-)
Cheers and thanks again for the nice tool :-)
Finally, a small Paypal donation is on its way to you sir !