Undefined CLR namespace

前端 未结 10 1138
萌比男神i
萌比男神i 2020-12-18 23:18

I have the following:

\"Error!

The error says The \'clr-namespace\' URI refers to a na

相关标签:
10条回答
  • 2020-12-18 23:45

    Judging from your screenshot, your ViewModel folder seems to be empty. If there are no classes in the namespace BlooblieBlablie.ViewModel, the namespace does not exist yet.

    0 讨论(0)
  • 2020-12-18 23:45

    I had the same error message given to me. But the underlying problem was different. I moved my MainWindow.xaml to a different folder, and I forgot to update my App.xaml StartupUri. I then updated my StartupUri in my App.xaml and the problem was fixed.

    0 讨论(0)
  • 2020-12-18 23:50

    I had similar problem when project's solution platform was set to x64. When I changed it to x86 problem went away.

    Here is some explanation: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6379d330-f382-4b4d-a690-e89326ab4c72

    0 讨论(0)
  • 2020-12-18 23:53

    I had the same problem today after I had to rename class (and file with it) in the namespace. So I was able to solve it by deleting .sln file, then run .csproj and recreate .sln file.

    0 讨论(0)
提交回复
热议问题