This repository has been archived by the owner on May 1, 2024. It is now read-only.
Crash when trying to include resource dictionary from another resource dictionary #3655
Labels
a/Xaml </>
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
i/high
Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often
t/bug 🐛
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
Description
When trying to include resource dictionary from another resource dictionary, exception occurs:
Xamarin.Forms.Xaml.XamlParseException: Position 6:25. Resource 'GlobalResources.xaml' not found.
Included test app that reproduces issues has following structure:
Resources/GlobalResources.xaml
Resources/LabelStyles.xaml <- includes GlobalResources.xaml
MainPage.xaml <- includes LabelStyles.xaml
Workaround:
Strangely, issue doesn't occur when xml declaration:
<?xaml-comp compile="true" ?>
is included at top of dictionary file that references another dictionary.
[assembly: XamlCompilation(XamlCompilationOptions.Compile)] does not seem to affect bug occurence.
Steps to Reproduce
Expected Behavior
App should not crash
Actual Behavior
App crashes with resource not found exception
Basic Information
Screenshots
Reproduction Link
DictLink.zip
The text was updated successfully, but these errors were encountered: