The name 'InitializeComponent' does not exist in the current context

I have a xamarin forms project. In VS2013 the build completed without problem.
If I open the same solution in VS2015 and build it I have more error for InitializeComponent does not exist for xaml views.

Also App.xaml.cs has error for InitializeComponent and I don't understand why for only VS2015.

Any solutions?



  • FabioCozzolinoFabioCozzolino ITBeta, University ✭✭✭

    This is a long-time problem. As explained by the @TheRealJasonSmith, in the following bugzilla ticket, they are still working on that.
    In the meantime, Jason suggest to:

    1) Change your errors pane from Build + Intellisense to Build Only
    2) If you use Resharper go into the excluded file mask and add *.xaml.cs

    For further informations, check on bugzilla.


  • MarceloVieiraMarceloVieira USMember ✭✭

    Ensure that the property "Build Action" of each "XAML file" as is "Embedded Resource". Also clean the solution to ensure that OBJ files are created smoothly in compilation.

    Good luck to all!

Sign In or Register to comment.