This project has moved and is read-only. For the latest updates, please go here.


LHM Problems with Multilingual App Toolkit


In a project that is using both LHM and the Multilingual App Toolkit, the option for "Add License Header to All Files" attempts to open the designer for every xlf file in the project. This usually means more than 30 windows open and not only is it annoying to have to close them all, they usually start crashing after 20 or so windows have opened. The .xlf extension is not in my .licenseheader file, so I don't know why LHM is trying to open them in the first place.
Closed Aug 18, 2015 at 8:44 AM by floriandecker


stefanwenig wrote Oct 11, 2013 at 11:11 AM

Until this is fixed, there seems to be a workaround:

Change the default editor for .xlf to "XML editor" or something else before you select "Add License Header to All Files".

Then you can set it back to Multilingual Editor (in fact you can set it back immediately and "Add License Header to All Files" will work while the solution is open). You have to right-click the .xlf in solution explorer while the multilingual editor is open, or right clicking will just open the editor. This thing is strange, I guess they could fix a thing or two as well.

stefanwenig wrote Oct 11, 2013 at 11:15 AM

The problem seems to be in LicenseHeaderReplacer.TryCreateDocument
      if (language == null)
        return CreateDocumentResult.LanguageNotFound;
should happen before
      item.Open (Constants.vsViewKindTextView);