Bug 59529 - why does need [XamlCompilation(XamlCompilationOptions.Compile)]
Summary: why does need [XamlCompilation(XamlCompilationOptions.Compile)]
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-09-15 18:55 UTC by Roman
Modified: 2017-09-15 19:23 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Roman 2017-09-15 18:55:21 UTC
When I add new page (class which is inherited ContentPage) VisualStudio 2017 Community generates class body with [XamlCompilation(XamlCompilationOptions.Compile)] attribute above class name.
So application builds with this attribute for android successfully but when I run app that it crash. If I comment this attribute that application builds and runs successfully without problems.
I don't know what role execute this attribute.
Comment 1 Paul DiPietro [MSFT] 2017-09-15 19:19:16 UTC
Your issue is not particularly clear about your issue. If you're asking about what XAMLC is, please refer to this page for more information on it: 

Comment 2 Roman 2017-09-15 19:23:54 UTC
Paul I've found bug and describe about it