vs2017: 查找资源字典时出错
Vs2017: An Error Occured while finding the resource dictionary
当我尝试引用我的 app.xaml 文件
中的资源字典时出现以下错误
<Application x:Class="DesignerPoc.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DesignerPoc"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Dashboard.Designer.WPF;Connection/Views/test.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
错误
An Error occurred while finding the resource dictionary "pack://application:,,,/Dashboard.Designer.WPF;Connection/Views/test.xaml"
refer the image
如何解决这个问题??
应该是这样的,包括component
部分:
pack://application:,,,/Dashboard.Designer.WPF;component/Connection/Views/test.xaml
当我尝试引用我的 app.xaml 文件
中的资源字典时出现以下错误<Application x:Class="DesignerPoc.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DesignerPoc"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Dashboard.Designer.WPF;Connection/Views/test.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
错误
An Error occurred while finding the resource dictionary "pack://application:,,,/Dashboard.Designer.WPF;Connection/Views/test.xaml"
refer the image
如何解决这个问题??
应该是这样的,包括component
部分:
pack://application:,,,/Dashboard.Designer.WPF;component/Connection/Views/test.xaml