我不确定为什么,但最近Visual Studio似乎无法在根窗口上找到在XAML中使用的模式。如何修复Visual Studio 2010中的模式/命名空间错误? (WPF/XAML)
这是错误消息我得到:
消息1未能找到元素“http://schemas.microsoft.com/winfx/2006/xaml/presentation:Window架构信息”。
错误导致IntelliSense无法正常工作。但是,该项目仍按预期进行编译和运行。在我打开的每个项目中,问题都是一样的。从一个新的项目开始给我以下的XAML:
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
</Window>
但我得到同样的错误。
我试过,没有运气,所有的以下内容:
- 重新安装Visual Studio 2010的
- 重新安装.NET
- 删除在Visual Studio目录(\用户\ [用户] \文件\ Visual Studio 2010)。
我该怎么办才能修复它?
我都试过“.Net框架4" 和” .Net框架4客户端配置文件”。没有运气 :( – Reimund 2010-12-06 08:03:49