Tuesday, September 4, 2018

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem.

Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target android version 8.1
I resolved it by:

  1. Right click Android project => Properties => Application => Compile
    using Android version => Android 7.1
  2. Clean and Build project => build success, and restart IDE.
  3. Right click Android project => Properties => Application => Compile
    using Android version => Android 8.1
  4. Clean and Build project => build success

File obj/project.assets.json updated to "MonoAndroid,Version=v8.1"

Friday, July 13, 2018

iOS App Icon Missing on Xamarin iOS

iOS App Icon Missing on Xamarin iOS
I opened my info.plist with notepad and edited the Asset path which was pointing to the Resources/... folder while my icons were directly in the root of the application. make sure the following path is correct.

<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcons.appiconset</string>

Monday, May 14, 2018

How to prevent little black boxes not to be displayed in Simulator.

Disable Visual Studio  extra debug option
Try unchecking this option:
Tools > Options > Debugging > General > Enable UI Debugging Tools for XAML > Show runtime tools in the application

This will help in getting good screenshots because the little black boxes are displayed in Simulator.

Friday, May 4, 2018

Unable to launch Windows Simulator on machine

For microsoft account users:

C:\Windows\System32\runas.exe /user:MyEmailaddress@Sample.com "C:\Program Files (x86)\Common Files\microsoft shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe"

You can either copy the command to cmd or create a shortcut.

Thursday, May 3, 2018

The breakpoint will not currently be hit. No symbols have been loaded

In Visual Studio:
Go to properties of portable solution. Build->Advanced->Debugging Information and change it from portable to full

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...