naxam mapbox for xamarin.forms nuget package doesn't work - visual-studio

a freshly started xamarin.forms usuall error for no reasons solved by deleting bin and obj folders and rebuilding solution now everything should be perfect ... i type this in package manager :
Install-Package Naxam.Mapbox.Forms -Version 1.0.5.2
and it gives me this error :
Install-Package : NU1107: Version conflict detected for Xamarin.Android.Support.Fragment. Reference the package
directly from the project to resolve this issue.
formsMAPapp.Android -> Naxam.Mapbox.Forms 1.0.5.2 -> Naxam.Mapbox.Droid 6.4.0.1 ->
Xamarin.Android.Support.Fragment (>= 27.0.2.1)
formsMAPapp.Android -> Xamarin.Android.Support.Design 25.4.0.2 -> Xamarin.Android.Support.Fragment (=
25.4.0.2).
At line:1 char:1
+ Install-Package Naxam.Mapbox.Forms -Version 1.0.5.2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

so after a whole day of batteling with the versions of xamarin components and trying to update each one of them i needed to update Xamarin.Android.Support.Fragment wich depended on a higher version of if i remember correctly Xamarin.Android.Support wich depended also on a higher version of other components none of them i could update so i figured i just have to update visual studio xDD pretty easy ... then what i did is installed each one of mapbox dependency from the nuget package manager

Related

Installing Ext.NET via nuget error: 'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'

I am trying to install Ext.NET on Visual Studio 2012 via Package Manager Console but I receive this error:
'Newtonsoft.Json' already has a dependency defined for
'Microsoft.CSharp'
Here is the full process:
Install-Package Ext.NET
Attempting to resolve dependency 'Ext.NET.Utilities (≥ 2.5.0)'.
Attempting to resolve dependency 'Transformer.NET (≥ 2.1.1)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 10.0.2)'.
Install-Package : 'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'.
At line:1 char:1
+ Install-Package Ext.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
*Nuget version: 2.8.60318.667
What Matt Ward said is perfectly correct. You can notice that one dependency restriction for package Ext.NET is Newtonsoft.Json (>= 10.0.2):
There is a dependency restriction for .NETStandard 1.0 framework of Newtonsoft.Json: Microsoft.CSharp (>= 4.3.0), you can check it from Json.NET 10.0.2. However, NuGet not support the newer .NETStandard frameworks until NuGet 2.12, you can get this information from NuGet release note 2.12.
Full NetStandard and NetCoreApp support for VS2013.
We could not use NuGet 2.12 on the Visual Studio 2012, so to resolve this issue, you can update your Visual Studio 2012 to Visual Studio 2013 or manage that assembly Manually, but this will bring a lot of tasks.

Nuget Install A Package

I am trying to install "Microsoft.ProjectOxford.SpeechRecognition-x64" using Nuget on Visual studio. I got the following error. What does it mean? Thanks
PM> Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64
Install-Package : Solution is not saved. Please save your solution before managing NuGet packages. At line:1 char:1
+ Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetUnsavedSolution,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
The NuGet team deprecated solution level packages in NuGet 3.0. So install the NuGet package to solution without any project is not supported. You need create a project, then add the package to the project.

C# - Xamarin : installing android.support.design package

i'm trying to install "Install-Package Xamarin.Android.Support.Design" into Xamarin Visual Studio 2015, but after it starts downloading, this error occurs
Install-Package : Unable to find package 'Xamarin.Android.Support.Design'
At line:1 char:1
+ Install-Package Xamarin.Android.Support.Design
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
i don't understand any of that, what is wrong?
Ensure that you have a proper NuGet source defined. You can go to Tools -> Options -> NuGet Package Manager -> Package Sources to make sure. i.e.: https://api.nuget.org/v3/index.json
Secondly you should double check that your NuGet version is the latest. Go to Tools -> Extensions and Updates and update if you aren't on the latest version.
Finally you could also try to manually download the package from https://www.nuget.org/packages/Xamarin.Android.Support.Design/ and setup a local NuGet repository to ensure that works. Chances are one of the first bullets should fix this.
Source: https://github.com/NuGet/Home/issues/842

Failed to add reference to 'Newtonsoft.Json'

I just installed Windows 8 on my PC and downloaded Microsoft Visual Studio Express 2012 for Windows 8. Updated and everything, and when I try to install anything thru Package Manager Console, I get following error:
PM> Install-Package Parse
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5.9)'.
Successfully installed 'Newtonsoft.Json 4.5.11'.
Successfully installed 'parse 1.0.5'.
Successfully uninstalled 'Newtonsoft.Json 4.5.11'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Newtonsoft.Json'.
At line:1 char:1
+ Install-Package Parse
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Does anyone know how to fix this error?
Thanks, Jack
Check if you already have Newtonsoft.Json reference added in packages.config. If yes, delete Newtonsoft.Json entry and retry Install-Package.
Sometimes just removing it from packages.config might not be enough. I had to remove the Newtonsoft.Json directory from the packages-directory, after that installing worked.

ReactiveUI 4.2.1 NuGet package

I'm trying to add the ReactiveUI NuGet package to a new VS2012 C# WPF .NET 4.5 project, but the NuGet package manager reports a problem "unable to resolve dependency 'Microsoft.Bcl.Async.NotBeta'". Are the dependencies in the ReactiveUI NuGet package wrong, or has the Microsoft.Bcl.Async.NotBeta package been removed? I can successfully install Rx-Main, which apparently does not depend on this Async.NotBeta package.
Here is the exact error from the package manager console:
PM> install-package reactiveui
Attempting to resolve dependency 'reactiveui-core (= 4.2.1)'.
Attempting to resolve dependency 'Rx-Main (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Interfaces (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Core (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Linq (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-PlatformServices (= 2.0.21114)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async.NotBeta (= 1.0)'.
install-package : Unable to resolve dependency 'Microsoft.Bcl.Async.NotBeta (= 1.0)'.
At line:1 char:1
+ install-package reactiveui
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Upgrade to version 4.2.2, it has been fixed, see this Github issue
I had the same problem, try this.
1- Close VS2012
2- Remove your local packages folder
3- open VS2012
4- try to add the ReactiveUI to a specific project.
I moved my repository path to higher level share with the whole team.

Resources