LocBAML to Localize WPF Applications
Recently I was trying to work with LocBAML (default installation location - C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\WPFSamples\GlobalizationLocalization\LocBaml) to generate localized version of my WPF application. Things worked fine, but I did observe a few differences from what is documented on MSDN Site and this another detailed article. Two main observations
The command LocBaml.exe /parse HelloApp.resources.dll /out:c:\Hello.csv (as discussed in the MSDN article) didn't work. I got a "cannot load HelloApp.resources.dll or one of dependencies error". What worked for me was this - LocBaml.exe /parse HelloApp.g.en-US.resources /out:c:\Hello.csv.
Note that the *.g.en_US.resources file is found in the \Obj\Debug directory (for Debug build configuration).
The second observation is while generating the resources assembly by using the localized .csv file (say for fr-CA culture), the command LocBaml.exe /generate HelloApp.resources.dll /trans:Hello.csv /out:c:\ /cul:fr-CA works only if HelloApp.resources.dll is in the same folder already. This is strange, since the command is used to create the localized resource assembly and hence it can't be already present. I had to copy the existing english resource file in the same folder from where I was running this command and then pointed the output to a different location to get the french version of the localized resources assembly and then deploy it appropriately.
Will try this on VS 2008 Beta 2 also and see if there is a difference of behavior.