XamlC error XFC0000 : Cannot resolve type "StackLayout"

Vaibhav 0 Reputation points
2023-10-16T09:37:09.6+00:00

Hello Guys,

After migrating from Xamarin Forms to .NET Maui using .Net Upgrade Assistant, I am getting multiple errors (near about 300) of same type i.e XamlC error XFC0000 : Cannot resolve type "StackLayout". PFB screenshot. I have tried some solutions like changing the build action of xaml file from EmbeddedResource to MauiXaml but it did not work.

I know there is similar question available for this type of issue but those solutions are not working for me.

Please help me to get out of this issue.

Thanks in Advance.XamlC Error

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.