[英]Get Type of assembly by file name without using reflection
這是我的代碼
ResourceManager temp = new ResourceManager("App_LocalResources",typeOf(MyResource));
這工作正常,但是我想通過物理文件名或它的路徑創建ResourceManager。 在c#中怎么可能?
我在這里找到解決方案! 我需要將.resx文件轉換為.resource文件。 例如 :
C:\Program Files (x86)\Microsoft Visual Studio 14.0>resgen E:\MyResource.resx E:\MyResource.resources
這工作了!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.