I transfer projects Windows 8.1
to Windows 10
(universal Windows platform). At this point I stopped the changes ResourceDictionary
in UWP
.
For simplicity: I have a Windows 8.1 solution with two projects:
App project (FooApp)+ Styles (FooStyles) project.
FooApp has a link to FooStyles, but in App.xaml
mine I have:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///FooStyles/Brushes.xaml"/>
</ResourceDictionary.MergedDictionaries>
Syntaxms-appx
allowed me to access resource files from other projects. Now in Windows 10 applications this no longer works. Compilation ends with the following error:
"An error occurred while finding the resource dictionary "ms-appx:///FooStyles/Brushes.xaml"."
Any tips here to fix this?
PS I would not transfer my resources from FooStyles to FooApp, because in my solution FooStyles is shared between 5 other application projects.