This project has moved. For the latest updates, please go here.
1

Closed

LHM Problems with Multilingual App Toolkit

description

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 7:44 AM by floriandecker

comments

stefanwenig wrote Oct 11, 2013 at 10: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 10:15 AM

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