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

后端 未结 30 1572
旧巷少年郎
旧巷少年郎 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:17

    In my case, the issue caused by defining class the wrong way:

    namespace MyBuggyWorld
    {
        public class BackendObject //This hack broke the VS 2017 winform designer and resources linker!
        {
            public TcpClient ActiveClient { get; set; }
            public BackgroundWorker ActiveWorker { get; set; }
        }
        public partial class FormMain : Form
        {
        }
    }
    

    After Reallocating BackendObject to the end (better to separate file), doing project clean + rebuild resolved the issue.

提交回复
热议问题