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

后端 未结 30 1478
旧巷少年郎
旧巷少年郎 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 21:18

    I faced this issue for running Migration command.Update-Database in Package Manager console.

    Accepted answer didn't solve my problem.

    I had to change Build Action from Compile to Embedded Resource and It worked for me.

    You can do the same using below steps:

    1. Right click on migration.
    2. Change the "Build Action" property "Compile" to "Embedded Resource"
    3. Run Update-Database command.

提交回复
热议问题