Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, 26 May 2018

Initializecomponent doesnot exist in xamarin forms visual studio 2017

Hi Developers, there is various solution whatever suits you try down from the list: -

Solution 1: R.Click the Solution file and select Clean Code. Once solution cleaned succeeded. R.Click the solution and select Build Solution.

Solution 2: Close the project and Re-open the same project using File -> Open project -> Select Solution file (.sln). Clean and Build Solution.

Solution 3: Re-build solution will sometime remove the error.

Solution 4: Update Xamarin.Forms package from NuGet package manager. To do so Goto the Menu bar, select Tools TAB -> Select NuGet Package Manager -> Select Manage NuGet Packages for Solutions -> Under Updates TAB select Xamarin.Forms -> Check All Mobile O.S. and click on Install button.

Solution 5: MyProject.projitems: Open project in File Explorer there you will find a file whose extension is .projitems. Open the file in notepad.
Now, change the code layout as below:

For Example:

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="Configuration">
    <EmbeddedResource Include="$(MSBuildThisFileDirectory)App.xaml" />
    <Compile Include="$(MSBuildThisFileDirectory)App.xaml.cs">
    <Compile Include="$(MSBuildThisFileDirectory)Model\Employee.cs" />      
    <Compile Include="$(MSBuildThisFileDirectory)MainPage.xaml.cs">
    <EmbeddedResource Include="$(MSBuildThisFileDirectory)MainPage.xaml">

Hope you find the article helpful & interesting.

For any query, comment us below.

Previous – What is Xamarin?

Click imagination hunt to read latest blogs.

Keep learning and sharing...

No comments:

Post a comment

Featured post

Think that makes you rich and richer

 Napolean said: “You can think and grow rich, but if you can be brought up like most people with work and you won't starve, this wil...