我有一個像180級一樣的消息架構信息:無法找到元素/屬性XXX XAML
Could not find schema information for the element'http://schemas.microsoft.com/winfx/2006/xaml/presentation:VisualStateGroup
「
所有這些消息都在我的UWP UI的XAML文件。我應該忽略它們還是如何擺脫它們。
我有一個像180級一樣的消息架構信息:無法找到元素/屬性XXX XAML
Could not find schema information for the element'http://schemas.microsoft.com/winfx/2006/xaml/presentation:VisualStateGroup
「
所有這些消息都在我的UWP UI的XAML文件。我應該忽略它們還是如何擺脫它們。
現存有http://schemas.microsoft.com/winfx/2006/xaml/presentation
如果你寫在XMLNS的xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
,你不能添加VisualStateGroup
,它會說錯誤。
但是如果有一段時間vs還沒有清理Bin文件夾和Obj文件夾,可能會出現奇怪的問題。
我認爲你可以檢查nuget來找到合併,第二種方法是清理bin文件夾和obj文件夾。
嘗試更新vs可能會解決它。
你應該正確的文件來查看它的屬性,編譯選項是正確的。
參見:How to fix Error: "Could not find schema information for the attribute/element" by creating schema