Creating Hello World in Visual Studio with Xamarin Forms Errors

I refer to this solution / question The type or name of the Xamarin namespace that is not in the xamarin studio

However, it is still impossible to create an application from the new Universal Application Project Wizard.

Severity Code Description Project File Line Suppression State Error CS0117 'Resource.Attribute' does not contain a definition for 'actionBarSize' Project.Droid C:\dev\Project.Droid\Resources\Resource.Designer.cs 29 Active 

Any ideas from the crowd from new to Hamarin?

+6
source share
1 answer

Ok, here is the answer! I had a local playback of this file and it seems that some links are missing in the .csproj file:

Make sure the following is added to .csproj :

 <Reference Include="Xamarin.Android.Support.Design, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\..\packages\Xamarin.Android.Support.Design.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.Design.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\..\packages\Xamarin.Android.Support.v4.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\..\packages\Xamarin.Android.Support.v7.AppCompat.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Xamarin.Android.Support.v7.CardView, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\..\packages\Xamarin.Android.Support.v7.CardView.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="Xamarin.Android.Support.v7.MediaRouter, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\..\packages\Xamarin.Android.Support.v7.MediaRouter.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll</HintPath> <Private>True</Private> </Reference> 

You can then remove the Resource.designer.cs file from your project, rebuild the project, and then add the Resource.designer.cs file to your project. It should generate the following Attribute elements: https://gist.github.com/JonDouglas/7adf61469ce21663d7f536a4aa27c7df

+4
source

All Articles