我正在编辑App.xaml文件,向其中添加新的资源字典,该字典是在应用程序的同一文件夹中创建的,但是App.xaml无法识别文件的存在,除非我通过手动将其添加到解决方案文件夹中:添加Existingfile或拖动它
I was getting the message "Error during the localization of the ResourceDictionary" despite of referencing a existing document, which wasn't in any assembly
<Application x:Class="Interface_de_Teste.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<Canvas x:Key="sadf"></Canvas>
<SolidColorBrush x:Key="123"></SolidColorBrush>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="file:///C:/Users/jfrne/source/repos/Interface%20de%20Teste/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
But the code compiled despite the error by using this source format
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.