我想通过B执行LocBaml 的方式实现程序的全球化,仿照msdn上的说明,地址见:点击打开链接一步步的都成功了,但是到了最后一步,
本地化的最后一步涉及到创建新近本地化的附属程序集。可以使用下面的 LocBaml 命令完成此操作:
LocBaml.exe /generate RunDialog.resources.dll /trans:RunDialog.resources.dll.CSV /out: . /cul:de-DE。
执行完上述命令后,Debug下面根本就没有RunDialog.resources.dll,试了N次都没有实现,最后果断放弃了。今天打开这个程序运行的时候却报了标题中的错误:Cannot locate resource 'app.xaml',于是从网上各种找啊,试验过的方法如下:
1.
[assembly: NeutralResourcesLanguage("zh-cn", UltimateResourceFallbackLocation.Satellite)]
如果没有,将其屏蔽掉即可 。结果:无效
2.If your project is under source control, your .csproj or .vbproj needs to be checked out
- You need to delete previously published files
- Delete the contents of publish\
- Delete the contents of bin\Debug\app.publish
- or bin\Release\app.publish