Could not find any resources appropriate for the specified culture or the neutral culture

后端 未结 30 1564
旧巷少年郎
旧巷少年郎 2020-11-28 20:15

I have two ASP.NET Web projects (ProjectA and ProjectB). When class in ProjectA is instantiating a class of ProjectB which uses a resource file Blah.resx, I get this error:

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 20:59

    I solved the problem like this:

    1. Right click on your ResourceFile
    2. Change the "Build Action" property Compile to "Embedded Resource"
    3. Then build and run

    It works perfectly.

提交回复
热议问题