当我试图从Nuget Package Manager安装引用时,我想在我的代码中使用WebDriverManager,但我得到了一个错误。
我已经尝试过更新和降级.Net框架。
我们可以在.Net Framework4.5中使用WebDriverManager 2.7.0吗?
看到的错误消息是:
Could not install package 'WebDriverManager 2.7.0'. You are trying to install this package into a project that targets '.NETFramework, Version=v4.5', 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. 发布于 2020-09-15 02:28:45
我知道这篇文章已经过时了,但我今天遇到了同样的问题,并且能够把它弄明白。您需要安装2.2.7版。WebDriverMangaer 2.2.8及以上版本要求使用.Net标准2.0,该版本仅与.NET框架4.6.1及以上版本兼容。
https://stackoverflow.com/questions/58637714
复制相似问题