Xamarin.Forms.Xaml.XamlParseException: No embeddedresource found for

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011033906/article/details/80503173

问题来源

Xamarin.Forms 从 2.5 更新到 3.0 之后就遇到这个错误了

Xamarin.Forms 2.5 – project build success

Update Xamarin.forms version from 2.5 to 3.0 then build again, – project build failed with error:

Xamarin.Forms.Xaml.XamlParseException: No embeddedresource found for

解决方案

在 Xamarin.Forms 中所有的 Page.xaml.cs 加入下面这句代码:

[XamlCompilation(XamlCompilationOptions.Compile)] 

猜你喜欢

转载自blog.csdn.net/u011033906/article/details/80503173
今日推荐