2013-04-30 3 views
0

Resources.resx 템플릿을 변경하고 싶습니다. 나는 그것이 다음과 같은 형태로 자동 생성 된 코드를 표시해야합니다 새 리소스 파일을 추가 할 때마다Resources.resx 템플릿을 변경하는 방법

:

//------------------------------------------------------------------------------ 
// <auto-generated> 
//  This code was generated by a tool. 
//  Runtime Version:4.0.30319.296 
// 
//  Changes to this file may cause incorrect behavior and will be lost if 
//  the code is regenerated. 
// </auto-generated> 
//------------------------------------------------------------------------------ 

namespace ProjectName.Properties 
{ 


/// <summary> 
/// A strongly-typed resource class, for looking up localized strings, etc. 
/// </summary> 
// This class was auto-generated by the StronglyTypedResourceBuilder 
// class via a tool like ResGen or Visual Studio. 
// To add or remove a member, edit your .ResX file then rerun ResGen 
// with the /str option, or rebuild your VS project. 
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 
**public** class Resources 
{ 

    private static global::System.Resources.ResourceManager resourceMan; 

    private static global::System.Globalization.CultureInfo resourceCulture; 

    [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 
    **public** Resources() 
    { 
    } 

    /// <summary> 
    /// Returns the cached ResourceManager instance used by this class. 
    /// </summary> 
    [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 
    **public** static global::System.Resources.ResourceManager ResourceManager 
    { 
     get 
     { 
      if ((resourceMan == null)) 
      { 
       global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LocBaml1.Properties.Resources", typeof(Resources).Assembly); 
       resourceMan = temp; 
      } 
      return resourceMan; 
     } 
    } 

    /// <summary> 
    /// Overrides the current thread's CurrentUICulture property for all 
    /// resource lookups using this strongly typed resource class. 
    /// </summary> 
    [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 
    **public** static global::System.Globalization.CultureInfo Culture 
    { 
     get 
     { 
      return resourceCulture; 
     } 
     set 
     { 
      resourceCulture = value; 
     } 
    } 
} 

여기 (** ** 사이에 또는에서) 굵은 부분을 참조하십시오. 기본 템플릿에서 내부를 공개로 변경해야합니다. 어떻게해야합니까? 제발 제안 해주세요.

답변

3

enter image description here

당신은 리소스 파일에 공공에 대한 액세스 수정을 변경할 수 있습니다.

+0

위대한 친구. 나는 이것을 알아 채지 못했다. 고맙습니다 – user2039445

+0

대단합니다. 당신을 기쁘게 생각합니다. –