Closed marknadig closed 5 years ago
To enable for VB, add these lines to ResXFileCodeGeneratorEx.cs
[CodeGeneratorRegistration(typeof(ResXFileCodeGeneratorEx), "ResXFileCodeGeneratorEx", VSConstants.UICONTEXT.VBProject_string, GeneratesDesignTimeSource = true)] [CodeGeneratorRegistration(typeof(ResXFileCodeGeneratorEx), "ResXFileCodeGeneratorEx", vsContextGuids.vsContextGuidVBEditor, GeneratesDesignTimeSource = true)]
I was able to clone the repo and build locally w/ VS2019. I closed Visual Studios and opened src\ResXFileCodeGeneratorExPackage\bin\Debug\ResxCodeFileGeneratorEx2019.vsix file and installed the addin. I confirmed it is listed under extensions:
I opened a solution that contains vb and c# files and change the Custom Tool for one of the VB Resx files:
I then opened the resx file and changed one of the keys and saved it.
.... nothing... the .designer.vb file remained untouched.
I repeated the same steps with a resx in a csharp project, and it worked (as I'm typing this).
Hoping you have some idea why it isn't working w/ the VB resx.