Ber*_*ryl 5 .net silverlight wpf resources visual-studio
下面的措辞来自生成的AssemblyInfo文件.这是否意味着MS建议我手动修改.csproj文件?通过设置?
如果是设置,那么NeutralResourcesLanguage属性有什么用?你应该如何在代码中访问它.
干杯,
Berryl
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
Run Code Online (Sandbox Code Playgroud)
可以在项目属性中定义此属性(不是设置),如此
在.Net 核心项目中,您可以在csproj以下位置指定它:
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<NeutralLanguage>fr</NeutralLanguage>
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
或使用Visual studio:
Properties。PackageAssembly neutral language| 归档时间: |
|
| 查看次数: |
3633 次 |
| 最近记录: |