al.exe 参数太长
我正在尝试为我正在开发的产品创建本地化的卫星程序集。我正在使用 resgen.exe 工具将项目中的 .resx 文件编译为 .resource 文件。
然后,我使用以下命令将资源文件嵌入到新程序集中。
al.exe /t:lib /out:"C:\Localization\Translations\dll_files\PBS.POS.UI.Common\es\PBS.POS.UI.Common.resources.dll" /culture:es /embed:"C:\Localization\Translations\resource_files\PBS.POS.UI.Common\es\ARPaymentMethodLookup.es.resources",POS.POS.UI.Common.ARPaymentMethodLookup.es.resources
/embed :每个资源文件重复参数。
我的一个项目有大量表单,因此有大量 .resx 和 .resource 文件(每个表单一个)。这会导致 /embed: 参数重复足够多次,以致命令达到控制台中的 8000 个字符限制。因此我无法生成程序集。
该产品非常小,我想市场上的其他应用程序已经以某种方式解决了这个问题。理想情况下,我希望避免必须返回项目中的所有表单并将本地化字符串移至单个文件中,因为这将是一个非常耗时的过程。
有人有解决方法吗?
I am trying to create localized satellite assemblies for a product i'm working on. I'm using the resgen.exe tool to compile the .resx files in my project into .resource files.
I then use the following command to embed the resource file into a new assembly.
al.exe /t:lib /out:"C:\Localisation\Translations\dll_files\PBS.POS.UI.Common\es\PBS.POS.UI.Common.resources.dll" /culture:es /embed:"C:\Localisation\Translations\resource_files\PBS.POS.UI.Common\es\ARPaymentMethodLookup.es.resources",POS.POS.UI.Common.ARPaymentMethodLookup.es.resources
The /embed: parameter is repeated for each resource file.
One of my projects has a very large number of forms and therefore a large number of .resx and .resource files (one for each form). This results in the /embed: parameter being repeated enough times that the command it hits the 8000 character limit in the console. I'm therefor unable to generate the assembly.
The product is quite small and I imagine that other applications on the market have gotten around this issue somehow. Ideally i'd like to avoid having to go back over all the forms in the project and move the localised strings into a single file as this will be a very time consuming process.
Does anyone have a workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
al.exe
将获取响应文件。将参数(每行或空格分隔一个)放入文本文件中,然后调用:
al.exe
will take a response file.Put the parameters, one per line or space separated, into a text file, then call: