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>