2011-12-15 1 views
4

以下の言葉は、生成されたAssemblyInfoファイルからのものです。これは、MSが手動で.csprojファイルを変更することを推奨していることを意味しますか?設定で?NeutralResourcesLanguage使用法

設定によっては、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)] 

答えて

7

この属性(ない設定)ソリューションエクスプローラでそう

  1. のように、プロジェクトのプロパティで定義することができ、その後、プロジェクトを右クリックし、 [プロパティ]をクリックします。
  2. 左側のナビゲーションバーから[アプリケーション]を選択し、[アセンブリ情報]をクリックします。
  3. [アセンブリ情報]ダイアログボックスの[中立言語]ドロップダウンリストから言語を選択します。
  4. [OK]をクリックします。
+0

ありがとうございますが、VS Expressは**、UltimateResourceFallbackLocation.Satellite **を追加しません。したがって、AssemblyInfo.csを開き、強調表示されたテキストを手動で追加する必要があります – Dmitriy