The “XamlCTask” task failed unexpectedly on visual studio for xamarin

后端 未结 8 907
南方客
南方客 2020-12-29 02:21

When I am trying to run application on Xamarin on visual studio, I am getting error as mentioned below and not able to run the application on device or emulator:

<         


        
相关标签:
8条回答
  • 2020-12-29 03:10

    I am getting this error with Xamarin.Mac in Visual Studio for Mac. I unloded the Xamarin.Mac Project. Than remove it from solution. Finally delete the xamarin.Mac folder from the solution folder. Atlast deleted the packages folder from the solution folder. Remove all nuget packages from xamarin forms project. Now I again add the nuget packages to xamarin forms project. Added Xamarin.Mac project to the solution and make necessary modifications. This results in a successful build. Though my problem was with xamarin.mac this process may solve problem with other projects also.

    0 讨论(0)
  • 2020-12-29 03:11

    If you have XML errors in your XAML files, this may happen too. Example:

    <Label Text="<- go back" />
    

    (You cannot use the character < there, use &lt; instead.)

    Or two attributes with the same name:

    <Label Text="someText" HorizontalOptions="Center" Text="someText" />
    
    0 讨论(0)
提交回复
热议问题