當我創建MonoDevelop的一個控制檯項目,並嘗試通過的NuGet添加一個包,我的應用程序將停止,並顯示以下錯誤:monodevelop爲什麼不通過NuGet安裝mongodriver?
Adding 'MongoDB.Bson 2.1.0' to NugetEx. Could not install package 'MongoDB.Bson 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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. System.InvalidOperationException: Could not install package 'MongoDB.Bson 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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. at NuGet.ProjectManager.ExtractPackageFilesToProject (IPackage package) [0x00000] in <filename unknown>:0 at NuGet.ProjectManager.AddPackageReferenceToProject (IPackage package) [0x00000] in <filename unknown>:0 at NuGet.ProjectManager.Execute (NuGet.PackageOperation operation) [0x00000] in <filename unknown>:0 at NuGet.ProjectManager.Execute (IPackage package, IPackageOperationResolver resolver) [0x00000] in <filename unknown>:0 at NuGet.ProjectManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0 at NuGet.ProjectManager.AddPackageReference (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore() [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.ProcessPackageAction.Execute() [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.PackageActionRunner.Run (IPackageAction action) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations) [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage() [0x00000] in <filename unknown>:0 at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage() [0x00000] in <filename unknown>:0
這是更大包的一部分,就像MongoDb驅動程序? –
您必須安裝驅動程序才能使用mongoDB(這在doc中告訴)。 – user3598759
你正在安裝整個驅動程序,還是隻是試圖安裝這個依賴包? –