"Move to Resource" not replacing string with Code + not adding the value (cshtml - VS Community 2022 64-bit)
MashhorSoftware opened this issue · comments
Describe the bug
1 - "Move to Resource" not replacing string with Code.
2 - "Move to Resource" not adding the value.
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.7.6
Programing language: cshtml
To Reproduce
1 - Right click the string.
2 - Click on "Move to Resource"
3 - Choose any type of Code template.
4 - Type in any value.
5 - Click Ok.
Expected behavior
1 - String is replaced with Code.
2 - Value is added to the key values.
Is there any message in the output window?
Yes, here is the output from ResX Resource Manager:
Error: System.ArgumentException: Language is not defined: "Neutral".
at ResXManager.Model.ResourceTableValues`1.SetValue(Object culture, T value) in D:\a\1\s\src\ResXManager.Model\ResourceTableValues.cs:line 46
at ResXManager.VSIX.Refactorings.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ResXManager.VSIX.VsPackage.d__31.MoveNext() in D:\a\1\s\src\ResXManager.VSIX\VSPackage.cs:line 386
You don't have a neutral resource in your project