ResourceManager trying to load .resources not .resx file

前端 未结 5 1642
陌清茗
陌清茗 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:04

    Add the .resx extension explicitly.

    You can also use the auto-generated class and use its properties if that is suitable for your project.

提交回复
热议问题