1
I’m starting some projects with Xamarin Studio, I’m having some problems and I still can’t solve always appear these 2 errors, I looked at a solution in stackoverflow.com, but the solutions given there did not solve my problem and as I did not find anything like it, I decided to post here.
Right at the beginning of my application, appears
using Xamarin.Forms;
The type or namespace name 'Xamarin' could not be found (are you Missing a using Directive or an Assembly Reference? ) (CS0246)
public class App : Application
The type or namespace name 'Application' could not be found (are you Missing a using Directive or an Assembly Reference? ) (CS0246)
The solution to solve this is routine taken from stackoverflow.com
- Select the project in the Solution tab
- Select "Project" along the top menu
- Select "Add Nuget Packages..."
- Do a search for "Xamarin.Forms"
- Add "Xamarin.Forms" to that project
The problem with doing this is that it cannot add the Xamarin package, it presents another problem:
Could not install package 'Xamarin.Forms 1.3.3.6323'. You are trying to install this package into a project that targets 'Portable-Profile78', but the package does not contain any Assembly References or content files that are compatible with that framework. For more information, contact the package Author.