【问题标题】:Could not find schema information for the element/attribute xxx XAML找不到元素/属性 xxx XAML 的架构信息
【发布时间】:2017-09-12 04:11:57
【问题描述】:

我有 180 条类似的消息:

Could not find schema information for the element'http://schemas.microsoft.com/winfx/2006/xaml/presentation:VisualStateGroup'

所有这些消息都在我的 uwp UI 的 xaml 文件中。我应该忽略它们还是如何摆脱它们。

【问题讨论】:

    标签: wpf visual-studio xaml uwp


    【解决方案1】:

    有现有的http://schemas.microsoft.com/winfx/2006/xaml/presentation,你不能添加VisualStateGroup

    如果你在 xmlns 中写xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ,它会说错误。

    但是如果有一段时间vs没有清理Bin文件夹和Obj文件夹,可能会出现奇怪的问题。

    我认为您可以首先检查 nuget 以找到合并,第二种方法是清理 bin 文件夹和 obj 文件夹。

    尝试更新vs可能会解决它。

    并且你应该对文件进行右击以查看其编译选项正确的属性。

    见:How to fix Error: "Could not find schema information for the attribute/element" by creating schema

    https://stackoverflow.com/a/14965640/6116637

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-15
      相关资源
      最近更新 更多