Reputation: 1
I try to install MongoDB C# official driver with Package Manager console in VS2013. It has some dependencies, and they should be installed by commands like this:
Install-Package MongoDB.Bson
But I have got such error for each package:
Install-Package : Could not install package 'MongoDB.Bson 2.4.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0,Profile=Client', but the package does not contain any assembly references or content files that are compa tible with that framework. For more information, contact the package author. At line:1 char:16
+ Install-Package <<<< MongoDB.Bson + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Upvotes: 0
Views: 2103
Reputation: 64923
'.NETFramework,Version=v4.0,Profile=Client',
This is .NET 4.0 Client Profile, which Mongo driver doesn't support.
Maybe you didn't intended to use .NET 4.0 Client Profile. Go to your project properties and switch to .NET 4.5 (because it's the minimum framework version supported by the whole NuGet package).
Upvotes: 1