ResourceManager trying to load .resources not .resx file

前端 未结 5 1746
陌清茗
陌清茗 2021-01-11 12:21

I am trying to load a resx file in my .net website using:

ResourceManager rm = new ResourceManager( \"Project.Resource\", Assembly.GetExecutingAssembly() );
         


        
5条回答
  •  遥遥无期
    2021-01-11 13:11

    I think the way you are using ResourceManager is wrong. See this post.

    Also note, when you open Visual Studio command prompt, & run resgen.exe, it says its used to convert resource files from one format to another (i.e. resx to resources). I think, you will need to convert your file to resources from resx & then load it using resourceManager.

提交回复
热议问题