Error XFC0000: Cannot resolve type "shades:Shadows"
See original GitHub issue- Sdk version: iOS 11/Android SDK 21
- Xamarin.Forms: 4.8+
I installed the NuGet and added a shadow to a label, but got the next compilation error on build:
Error XFC0000: Cannot resolve type “shades:Shadows”
Steps to reproduce the behavior:
- Install nuget
- Add shadow namespace inside xaml
- Add shadow
- Try to build
- See error
Source of the page:
<?xml version="1.0" encoding="utf-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:shades="http://sharpnado.com"
x:Class="FailsInShadowsNuget.MainPage">
<shades:Shadows>
<Label FontSize="16" Padding="30,24,30,0">
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="Learn more at " />
<Span Text="https://aka.ms/xamarin-quickstart" FontAttributes="Bold" />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
</shades:Shadows>
</ContentPage>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:14 (9 by maintainers)
Top Results From Across the Web
NET MAUI Library: XamlC error XFC0000: Cannot Resolve ...
Attempt to build the project. If the problem exists, an XamlC error XFC0000: Cannot resolve type error will be reported in the VS...
Read more >XamlC error XFC0000: Cannot resolve type
When changing a xaml file, the following error comes up ( see screenshot for full list ). XamlC error XFC0000: Cannot resolve type...
Read more >XamlC error XFC0000 : Cannot resolve type <type>
Hi Upgraded Xamarin solution to MAUI using upgrade wizard. I am getting two errors; In App.xaml it gives 'XamlC error XFC0000 : Cannot...
Read more >Multiple XamlC error XFC0000: Cannot resolve type XYZ ...
Hello, I'm experiencing multiple "cannot resolve type" errors with the DX Xamarin controls. They do NOT prevent compilation, but they are a.
Read more >Error XFC0000 in UI for .NET MAUI
When using the Telerik for MAUI libraries and trying to compile for a Windows device, the error occurs: Error XFC0000 Cannot resolve type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

thanks to @pictos here is the deal:
from: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/custom-namespace-schemas#consuming-a-custom-namespace-schema
So for the namespace schema to work, you need to call initializer from App.xaml.cs like this:
@byme8 xmlns:shades=“http://sharpnado.com” - change this to xmlns:shades=“clr-namespace:Sharpnado.Shades;assembly=Sharpnado.Shadows”