【发布时间】:2015-07-15 16:20:17
【问题描述】:
我将为我们的客户项目升级 TargetFramework,但他们使用法语进行开发。但是我们在这里使用英语。现在,当我升级目标框架时,资源设计器文件 cmets 从法语更改为英语。 资源设计器在框架 4.0 中文件 cmets
<summary>
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
/// </summary>
使用项目属性升级 TargetFramework 后,下拉更改为
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
您能帮我吗?我们如何才能将 Visual Studio 自动生成的 cmets 保存为法语,我需要采取哪些步骤来处理这个问题?
是否有可能,如果我在我的机器上安装法语和英语语言的 4.5.2 框架。那么当我当时从下拉列表中选择targetframwork时,我可以指定我需要迁移法语或英语的哪种语言?
这些是自定义资源文件,例如 EmployeeException.resx 文件。现在该文件的内容没有改变。它仍然是法语,但其设计器文件 MEGExceptionMessages.Designer.cs 已更改为英语翻译。由于这些是 Visual Studio 支持的文件,所以我认为它会由于框架更改而自动转换..
早点
<auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.18444
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
Target 框架更改后,现在是....
/ <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
【问题讨论】:
-
好吧,至少他们会学英语^^
-
如果项目可以在
.editorconfig中指定首选的自动生成评论语言,那就太好了。但我不认为这样的事情存在(还没有?)。
标签: c# .net visual-studio-2012