I am trying to install MySQL.Web in my Project but it throw me error
Error:
'MySql.Data' already has a dependency defined for 'Google.Protobuf'.
I try both way to install it.
By rigth click on project -> Manage NuGet Packages
by writing Install-Package MySql.Data in Package Manager Control.
But it throw me same error at both time.
I am using Visual Studio 2012
Thanks in Advance.
Check for the Framework you are using and the Dependency list.
I tried to install it Console Application in target Framework 4.5.2 and it worked.
If you want to run in framework 4.5 then try installing package with version 6.9.12 Because the newest packages have dependencies and also they don't work in framework 4.5.2
You can check the dependencies from MySql.Data
Related
I am trying to start my first Xamarin project and I got some issue while trying to install the MySqlEntity NuGet package.
Severity Code Description Project File Line Suppression State
Error NU1202 Package MySql.Data.Entity 6.10.8 is not compatible with monoandroid81 (MonoAndroid,Version=v8.1). Package MySql.Data.Entity 6.10.8 supports: net452 (.NETFramework,Version=v4.5.2) Refo_T3.Android C:\Users\evyat\source\repos\Refo_T3\Refo_T3\Refo_T3.Android\Refo_T3.Android.csproj 1
I tried this solution: Xamarin.Android: Package XX is not compatible with monoandroid81 (MonoAndroid,Version=v8.1)
and I still end up with errors.
It's my first application on Xamarin platform, I used to code in .NET but I decided to test my luck with Xamarin.
I couldn't find any more useful information online and I need your better experience.
Thank You :)
As written on the nuget packages page, the package is only available for .net framework >= 4.5.2
So you can't install it for Xamarin Android project only classic desktop .Net Framework applications.
I'm trying to install ClosedXML NuGet in an ASP / VB.NET project that uses .NET Framework 4.0, and I'm getting the following error:
What do I need to do for ClosedXML be installed OK in my project?
Thanks in advance,
Marcelo Camarate
I suggest installing using the Package Manager Console.
You can find this in Tools> Nugget Package Manager > Package Manager Console
Once that's up, paste this Install-Package ClosedXMLand hit enter.
Try to installing the latest NuGet Package Manager.
After the installation, restart Visual Studio.
Link for download the latest version of NuGet:
https://www.nuget.org/downloads
I am using Visual Studio for Mac. I have MvvmCross v5.1.1 installed in my project. I want to update it (and all its dependencies and plugins) to v.5.3.1. But I get this error message in the output when I try to update my packages:
Unable to resolve dependencies. 'MvvmCross.Binding 5.3.1' is not
compatible with 'MvvmCross.Droid.Shared 5.1.1 constraint:
MvvmCross.Binding (= 5.1.1)'.
With MvvmCross version 5.2+ MvvmCross.Droid.Shared has been removed.
From MvvmCross blog release notes
As the nuget package MvvmCross.Droid.Shared no longer exists,
please force remove it first, and then update the rest of the
packages.
Visual Studio
You can run the following command in your Package Manager Console to remove it (Make sure that the default project dropdown is set to your Android project)
PM> Uninstall-Package MvvmCross.Droid.Shared -Force
Visual Studio for Mac
You can install NuGet Package Management Extensions addin (You can get the latest version of the addin from Github). Then execute the following command from the PowerShell Console Window (Make sure you have closed and re-opened IDE after the addin has been installed before trying to open the PowerShell Console)
PM> Uninstall-Package MvvmCross.Droid.Shared -Force
I started a new universal app using vs 2015 ctp 5, mvvmcross 3.5.0 + sqllite plugin 3.5.0.
I am using the famous N=.... serie of vídeos, especificaly n=12 Collect A Bull as a reference.
I created a new pcl Project as a core and a universal app Project(3 projects), added nuget packages to core , wp8.1 and to w8.1, everything good so far.
Then i copied the service folder from N=12 sample, added related nuget packages.
My trouble is: at this line _connection = factory.Create("collect.sql"); on repository i've got a exception :
A first chance exception of type 'System.DllNotFoundException' occurred in Cirrious.MvvmCross.Plugins.Sqlite.WindowsCommon.DLL
Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The message is pretty clear cannot found sqlite3.dll i've seen some articles to add file and reference manually, but i did not see nothing on the vídeo, and the N-12 sample runs ok?
How the sample can access the mentioned sqlite dll, it could be related to universal app?
By comparison i found a missing reference in wp project: Community.CsharpSqlite.WP7 i added manually but does not solve.
Any suggestions?
So, to solve this i just have to download from http://www.sqlite.org/download.html and add reference manually
Thanks to mohibsheth on jabbr room
Try adding
Install-Package MvvmCross.HotTuna.Plugin.Sqlite -Version 3.2.1
from package manager console. It worked for me.
If directly it didn't worked, then remove all the packages and add all packages of version 3.2.2 like :
Install-Package MvvmCross -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.FieldBinding -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.Messenger -Version 3.2.2
Still having problem with the packages?Uncheck Silverlight from Core project properties.
Version 3.5.0 raising problems for me too.
Hope this helps.
I would check out the SQLite.Net-PCL project. I've heard of some success in people using that although I have not personally used it yet.
I just submitted a pull request to the MvvmCross Community SQLite project to update it to MvvmCross 3.5 and unified iOS API - so you could give that a try as well. There is no new NuGet for that yet however. You'll need to clone the project and compile it yourself.
I am running dev on VS2010 SP1, and when I run Install-Package EntityFramework, I get EF 4.3.1 installed by Nuget. Is there a way that I can restrict the version to EF 4.1? I would like to examine them differentially. Please help!
-Thanks,
Ram
By default Nuget will install the latest version of a given package.
But you can install any previous version of a nuget package (which are available on nuget.org) within the package manager console specifying the Version option like:
PM> Install-Package EntityFramework -Version 4.1.10715.0
You can check the available versions of EF here.
Also, to see available versions for a package, enter in the console:
Get-Package -ListAvailable -Filter entityframework (the name of the package)
Sagy