I want to install multiple versions of bootstrap on my project but when I do so using package manager console, nuget is just updating it.
Is it possible to install multiple versions of javascript library at all using nuget?
Not into the same project. A project will have only one version of a NuGet package.
Related
Could not install package 'Xamarin.Kotlin.StdLib.Jdk8 1.6.10'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v11.0', but the package does not contain any assembly references or content files that are compatible with that framework.
You can fix that by targeting Android 12.
Change:
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
To:
<TargetFrameworkVersion>v12.0</TargetFrameworkVersion>
This has to be done in all your Android projects, including Library projects.
Make sure your Xamarin.Android tooling is up to date, along with having API 32 installed in your Android SDK manager.
Also don't get fooled by the AndroidUseLatestPlatformSdk property if you do not have the correct SDK installed. It will just grab the latest you have installed and if that is lower than 12, you will still have the issue.
Also make sure to restore NuGet packages after this change.
I am following tutorial https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map/setup
I created a Xamarin.Forms project
I can browse and search for Xamarin.Forms.Maps I clicked Install
but I don't see it under installed packages
I see that it has a bunch of dependencies, but they dont seem to install automatically.
Do I need to install all of those one by one?
Is there a way to automatically install all necessary dependencies with correct version like in python?
Thanks,
I'm new to mobile development & Xamarin. I'm trying to install a 3rd party nuget package "BottomNavigationBar" to my portable project in Xamarin solution. But facing the below error while doing so.
Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.
I'm having Xamarin.Forms version 2.3.4.247, with Android target framework "Android 7(Nougat)". And I have Android SDK installed with API 24.
Any help is appreciated.
As SushiHangover says this component targets Xamarin.Android only so it will be impossible to install in the PCL project.
You should use a similiar plugin that targets Xamarin.Form, this plugin is called: BottomNavigationBar.XF
You can see their source code here: https://github.com/thrive-now/BottomNavigationBarXF
Following this tutorial I'm trying to install MvvmCross.HotTuna.MvvmCrossLibraries in Core project. The latest version of this library 'MvvmCross.HotTuna.MvvmCrossLibraries 4.0.0-beta3'.
After adding Nuget Package I have the following error:
Could not install package 'MvvmCross.HotTuna.MvvmCrossLibraries 4.0.0-beta3'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile14', 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.
Does anyone know what the problem is?
Answer to original question:
MvvmCross is not available for ASP.NET. You need to use it in one of the compatible frameworks like UWP, Xamarin.Android, Xamarin.iOS or a PCL.
Updated Question:
MvvmCross uses at least .NET 4.5 with profile 259. Switch to those to be able to install the libraries.
I'm creating PCL library to be used at Windows Store 8.0 and Windows Phone 7.5 clients.
I created new PCL project and chose the following:
https://dl.dropboxusercontent.com/u/19503836/pcl_profile4.png
Selected profile covers .net 4.5 and silverlight 4.0 thus they were enabled automatically.
As a result I have Profile4 selected but when I'm trying to add Async nuget package to PCL project:
http://www.nuget.org/packages/Microsoft.Bcl.Async
I'm getting an error that this profile is not supported:
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.0.19)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
'Microsoft.Bcl.Build 1.0.10' already installed.
'Microsoft.Bcl 1.0.19' already installed.
'Microsoft.Bcl.Async 1.0.16' already installed.
Adding 'Microsoft.Bcl.Build 1.0.10' to PortableClassLibrary1.
Could not install package 'Microsoft.Bcl.Build 1.0.10'. You are trying to install this package into a project that targets 'portable-win+net45+sl40+wp', 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.
How to create PCL library and add Async/Await support WITHOUT cheating the *.csproj file (I know I can specify profile there but I need to be able to it via UI for DEMO purposes).
Your project is targeting Windows Phone 7.0, not 7.1/7.5. Change your target to "Windows Phone 7.5 and higher".
For best results, uninstall all NuGet packages, change your targets, and then re-install your NuGet packages.