The “XamlCTask” task failed unexpectedly in Xamarin

前端 未结 11 1898
孤街浪徒
孤街浪徒 2021-01-12 13:59

I am currently having a problem building my Xamarin.Forms solution. I\'m getting an error of The \"XamlCTask\" task failed unexpectedly. I tried looking at the

11条回答
  •  伪装坚强ぢ
    2021-01-12 14:32

    tl;dr:

    disable XamlC on the failing Page

    [XamlCompilationAttribute (XamlCompilationOptions.Skip)]
    public partial class MyPageThrowing {}
    

    or at the Assembly level

    [assembly:XamlCompilationAttribute (XamlCompilationOptions.Skip)]
    

    Long Story

    An issue throwing the same exception and the same StackTrace had been fixed in the next (to date) version of xamarin.forms which should be 2.3.3-pre3 or 2.3.4.

    The only way to know for sure would be to paste your failing Xaml page here, or even better, on http://bugzilla.xamarin.com.

    I really encourage you to do so. If the issue is not fixed already. Either it's an issue in your Xaml and this needs a better exception being thrown, or it's an unsupported case in XamlC, and this require a fix.

提交回复
热议问题