简体   繁体   English

如何在 NET 4.5 应用程序中使用 MongoDB c# 驱动程序?

[英]How to use MongoDB c# driver in NET 4.5 application?

I have built an c# .NET 4.8 application uses assembly with freshest MongoDB c# Driver.我已经构建了一个 c# .NET 4.8 应用程序使用带有最新 MongoDB Z240AA2CEC4B29C56F3BEE520A8DCEE7 的程序集It works fine.它工作正常。 But I have another NET 4.5 application.但我有另一个 NET 4.5 应用程序。 It cannot use this assembly because it should use NET 4.5.它不能使用这个程序集,因为它应该使用 NET 4.5。 The question is: how can I rebuild my assembly to use NET 4.5 and MongoDB c# driver?问题是:如何重建我的程序集以使用 NET 4.5 和 MongoDB c# 驱动程序?

You can use the MongoDB.Driver 2.7.3 nuget package.您可以使用 MongoDB.Driver 2.7.3 nuget package。 This is the latest version which supports .net 4.5.这是支持 .net 4.5 的最新版本。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM