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,
- Unload your Android project(right click on project>Unload Project)
- Edit Project (right click>Edit blabla.csproj)
- 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” />
- 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 .....
Solution
is very easy , open the Package Manager Console and type : “Install-Package Microsoft.NETCore.UniversalWindowsPlatform”
Re-Build it 😀