【问题标题】:MahApps.Metro Errors appear after initial install初始安装后出现 MahApps.Metro 错误
【发布时间】:2016-08-06 22:50:22
【问题描述】:

我刚刚从 GitHub 安装了 MahApps

https://github.com/MahApps/MahApps.Metro

我立即收到错误消息。在 MainWindow.xaml 中,以下行带有下划线

d:DataContext="{d:DesignInstance MetroDemo:MainWindowViewModel}

并且有几个错误信息,比如:

The name "MainWindowViewModel" does not exist in the namespace "cld-namespace:MetroDemo".

The name "ButtonsExample" does not exist in the namespace "clr-namespace:MetroDemo.ExampleViews".

项目确实运行了,但我无法检查任何设计。

有没有人遇到过这种情况并设法解决?

【问题讨论】:

    标签: mahapps.metro


    【解决方案1】:

    原来这与我 Mac 上的 Parallels 有关。

    Issue found here, with resolution from Mick MacCallum.

    命名空间的问题是由于 VS 使用网络共享来访问我的 Mac 文件系统上的文件。

    我把整个项目复制到虚拟机上的绝对路径,问题就解决了。

    项目现在可以正确构建/运行,但我也可以检查设计。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-01
      • 2014-12-07
      • 2014-12-14
      • 2015-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多