2010-07-23 1 views
3

나는 C#에서 급격한 발전을 사용하여 클래스 라이브러리를 작성하고있다. 일부 문자열 값을 포함하는 resx (리소스) 파일을 포함합니다. 다음 코드를 사용하고 있습니다 :resx 파일에서 문자열 읽기 sharpdevelop C#

ResourceManager rm = new ResourceManager("ResourceFileName",this.GetType().Assembly); 
string str=rm.GetString("Keyname"); 

잘 컴파일됩니다. 런타임에, 그것은 다음과 같은 오류가 발생합니다 :

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "ResourceFileName.resources" was correctly embedded or linked into assembly "myassembly" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Sharpdevelop에서 resx 파일을 사용할 수 있습니까? 그렇다면이 문제를 해결하는 방법. secound 인수에 자원 클래스 "namespace.classname"의 전체 이름을 사용하는 첫 번째 인수에

감사와 안부,
Vamyip

답변

3

Assembly.GetExecutingAssembly()