gpt4 book ai didi

.net - C# : Change the resource file without re-building?

转载 作者:行者123 更新时间:2023-12-04 19:17:13 24 4
gpt4 key购买 nike

对于 Asp.Net MVC 3 应用程序,我将使用资源文件来存储我的 I18N( How-to )。

不是我会翻译所有语言的所有字段,我只需要用一种语言创建并为其他两种语言创建空的语言文件。在实现中,我将使用这三个文件。

所以对于开发我没有任何问题,但是在我创建了网站之后,客户将翻译所有这些字段。我发现了一个很棒的应用程序,它允许从一个 resx 转换到另一个 (SimpleResxEditor)。但是现在,客户如何在没有visual studio的情况下更改asp.net网站中的这个resx文件?有没有办法在visual studio中指定我们使用“非嵌入”资源文件,更改此文件会立即生效?

最佳答案

您必须通过 resgen 创建资源文件第一的:

resgen InternationalResources.resx

输出是一个 .resources 文件。

在您必须通过 al.exe 将资源链接到程序集之后:
al.exe 
/t:lib
/culture:de-AT
/out:"\LocalizeableConsole.resources.dll"
/embed:InternationalResources.resources,LocalizeableConsole.InternationalResources.de-AT.resources
/template:"LocalizeableConsole.exe"
/keyf:KeyFile.snk

关于.net - C# : Change the resource file without re-building?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7991178/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com