본문 바로가기
카테고리 없음

internal로 생성되는 자동코드. public으로 어떻게 변경할까?

by GreatCoding 2014. 8. 29.

ASP.NET MVC에서 다국어 작업을 하던 도중

리소스를 별도의 클래스라이브러리 프로젝트를 분리 하였다.

(참고 : http://aspdotnet.tistory.com/1101)

 

문제는 해당 리소스를 갖다 쓰게 하는 C# 코드가 internal로 생성되는지라

다른 프로젝트에서 저 다국어 리소스 파일을 갖다 쓸수가 없다는데 있었다.

 

하지만 역시 구글님과 스택오버플로님!

http://stackoverflow.com/questions/4274311/visual-studio-resx-file-default-internal-to-public

*.resx 파일의 속성에 보면 "사용자 지정 도구"가 "ResXFileCodeGenerator"로 되있는데 이것을

"PublicResXFileCodeGenerator"로 바꿔주면 된다.

 

명시적으로 랭귀지 변경할때 볼만한 주소

http://blog.danggun.net/m/post/1493

댓글