我无法调试我的应用程序,因为我什至无法运行它。我没有改变任何东西,只是在我的解决方案资源管理器的文件夹中添加了一张图片,现在我什至不能按 F5 来调试它。
这是错误:
System.Windows.Markup.XamlParseException 未处理
Message="Can't create instance of 'MainWindow' in the assembly.'testapp1 v0.1[WPF], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'。异常已被调用目标抛出。标记文件“MainWindow.xaml”第 1 行位置 9 中的错误。”
Source="PresentationFramework"
LineNumber=1 LinePosition=9
我知道这不是很多信息,但我真的很想知道是否有明确的信息我应该寻找。这是我第一次遇到这样的事情。
编辑:这是据说破坏了我的应用程序的 XAML 代码的第一行。
<Window x:Class="Testapp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Tome of Newerth" Height="700" Width="900">