美文网首页Xamarin
Xamarin.Forms.Xaml.XamlParseExce

Xamarin.Forms.Xaml.XamlParseExce

作者: Xamarin信仰中心 | 来源:发表于2018-06-04 14:44 被阅读14次

问题来源

把 Xamarin Forms 项目中的 Xamarin.Forms nuget package从 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)] 

相关文章

网友评论

    本文标题:Xamarin.Forms.Xaml.XamlParseExce

    本文链接:https://www.haomeiwen.com/subject/xzghdftx.html