Can't use LocBaml with WPF .NetCore 3.1 project in Visual Studio 2019 Preview

  • Thread starter Thread starter H75
  • Start date Start date
H

H75

Guest
I have a very simple WPF project that I'm trying to lcoalize.

I've run "MSBuild" to add the UID's (msbuild /t:updateid WPFLocalizationWithXAML.csproj). This worked ok and added the UID's.

My problem is that I can't parse "WPFLocalizationWithXAML.resources.dll" with "LocBaml.exe". I've copied "LocBaml.exe" and "WPFLocalizationWithXAML.exe" into the "\en-us" so that it sits with "WPFLocalizationWithXAML.resources.dll". I then ran the following command (locbaml.exe /parse WPFLocalizationWithXAML.resources.dll /out:trans.csv) but this always results in the following error and a trans.cvs file wth garbage in it:

Microsoft (R) Baml Localization Utility 1.0.0.0

Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified

Any idea whats causing this?

Thanks in advance.

H

Continue reading...
 
Back
Top