Xamarin.Forms - InitializeComponent doesn't exist when creating a new page

前端 未结 30 2300
不知归路
不知归路 2021-01-30 12:36

I\'m using Visual Studio to try out Xamarin.Forms. I\'m trying to follow the guide: http://developer.xamarin.com/guides/cross-platform/xamarin-forms/xaml-for-xamarin-forms/getti

30条回答
  •  孤独总比滥情好
    2021-01-30 13:12

    I have met this problem. It's associated with the encoding of XAML files in VS. I'm using VS2015.

    I solved this problem as follows:

    1. Open the *.xaml file in the project and click Save button. (There will be applying the correct encoding in VS2015).

    2. Then reopen the project and rebuild it. Now there are no errors.

提交回复
热议问题