xcc icon indicating copy to clipboard operation
xcc copied to clipboard

xcc does not work with ResourceDictionary

Open Pantheas opened this issue 4 years ago • 1 comments

I am trying to load different resources for my app based on some preprocessor condition. However, when starting the application, it fails throwing the following exception:

Xamarin.Forms.Xaml.XamlParseException: 'Position xx:xx. StaticResource not found for key [some resource key here]'

Code looks like this:

<Application
...
xmlns:DEBUG="condition:DEBUG"
xmlns:RELEASE="condition:RELEASE">

<DEBUG:Application.Resources>
        ...
</DEBUG:Application.Resources>

<RELEASE:Application.Resources>
    ...
</RELESE:Application.Resources>

The exception does also occur when setting the conditional namespace at ResourceDictionary level: <DEBUG:ResourceDictionary>...</DEBUG:ResourceDictionary>

Pantheas avatar Mar 11 '20 15:03 Pantheas

Same here

michelevirgilio avatar Mar 21 '20 17:03 michelevirgilio