Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Cannot resolve symbol InitializeComponent when adding Xaml ContentPage

$
0
0

Hi, whenever i add a new xaml ContentPage my XamarinForms PCL i get > Cannot resolve symbol InitializeComponent
Below is the code behind, the markup as well as the entry in the solution file

<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="XamarinUserGroupIoC.IoCApp"/>

//.xaml.cs
public partial class IoCApp : Application
{
    public IoCApp()
    {
        InitializeComponent();
    }
}

The related itemGroup in the .sln file

  <ItemGroup>
    <EmbeddedResource Include="IoCApp.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
    </EmbeddedResource>
  </ItemGroup>

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>