I lose a challange , i delayed two project and ‘i lost my girlfriend before one day of the saint-valentin ‘  so let begin , these day i faced a big problem with Xmarin +VS RC 2017(February 7, 2017) when i create new Xamarin project and choose masterdetail template , i reported it at VS Developer Community and it’s marked as triaged.

The problem ?

When you build your android project , you get more than 3000 errors,
see picture bellow :

Solution !

You don’t belive if i say that one line can remove all these errors and let your project work succesfuly,

  1. Unload your Android project(right click on project>Unload Project)
  2. Edit Project (right click>Edit blabla.csproj)
  3. Search for this part

<Reference Include=”System” />
<Reference Include=”System.Xml” />
<Reference Include=”System.Core” />
<Reference Include=”Mono.Android” />
<Reference Include=”System.Net.Http” />

and add this reference ,

 <Reference Include=”mscorlib” />

  1. Save it , and reload the project 🙂


The Second problem

it’s related to UWP project when you create it ,

it show you


Package Installation Error

Could not add all required packages to the project. The following packages failed to install from 'C:\Program Files (x86)\MicrosoftSDKs\NETCoreSDK':

Microsoft.NETCore.UniversalWindowsPlatform.5.0.0 :Package restore failed .....


is very easy , open the Package Manager Console and type : “Install-Package Microsoft.NETCore.UniversalWindowsPlatform”

Re-Build it 😀

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.