0

I've been trying to generate a satellite assembly using the LocBaml tool downloaded from here, but haven't been successful. I'm using the code present in the book "WPF 4 Unleashed". Here is what I'm doing :

  • I first created a CSV file:

    LocBaml /parse ProjectName.g.en-US.resources /out:en-US.csv
    

    This step was successful.

  • Next I modified the file and saved it as nb-NO.csv

  • Now when I try to generate the dll file using

    LocBaml /generate ProjectName.resources.dll /trans:nb-NO.csv /cul:nb-NO
    

    The tool runs, but no resource file is generated (There is no exception).

Am I doing anything wrong? Is the above command not correct?

Hasan Fahim
  • 3,875
  • 1
  • 30
  • 51
  • Please refer to my another post for the details https://stackoverflow.com/questions/4933726/how-does-locbaml-work/49918287#49918287 – Geniuslead Apr 19 '18 at 10:09

1 Answers1

1

You are missing the out parameter. MSDN help.

LocBaml /generate ProjectName.resources.dll /trans:nb-NO.csv /out:c:\ /cul:nb-NO
anivas
  • 6,437
  • 6
  • 37
  • 45
  • I've tried that before. But it doesn't work. The file is not generated – Hasan Fahim Jul 13 '11 at 07:49
  • Are you having the dll and csv in the same folder as LocBaml.exe? – anivas Jul 13 '11 at 08:10
  • 1
    I used to follow the steps metioned here and it has always worked. http://msdn.microsoft.com/en-us/library/ms746621.aspx – anivas Jul 13 '11 at 08:23
  • I'm getting error while executing LocBaml.exe /generate en-US/WpfApplication2.resources.dll /trans:WpfApplication2nb-NO.csv /out:c:\ /cul:nb-NO It says "Each row must have the 2nd column as the key to the resource" – Hasan Fahim Jul 13 '11 at 09:09
  • how did you edit your csv, does it have something like this as the second column if you open in excel :TextBlock_1:System.Windows.Controls.TextBlock.$Content – anivas Jul 13 '11 at 09:15
  • The problem is due to some formatting issue. When we modify the file in excel and save it, then I get the error of "Each row must..." while running locbaml. But the error doesn't come if the file is modified in notepad – Hasan Fahim Jul 13 '11 at 09:24
  • Thanks for your help @anivas. I really appreciate it ! Thanks for the article aswell. – Hasan Fahim Jul 13 '11 at 09:35