stefanlenselink / ResXFileCodeGeneratorEx

A VS2022 port of the ResXFileCodeGeneratorEx extension
Other
6 stars 4 forks source link

Help #1

Closed marknadig closed 5 years ago

marknadig commented 5 years ago

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: image

I opened a solution that contains vb and c# files and change the Custom Tool for one of the VB Resx files: image

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.

marknadig commented 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)]