0

您好,我有一个使用 linqtodb 创建的项目,其中包含 MySQL 中的数据库并进行升级,以便我可以使用 Windows 10,问题越来越大,我被迫删除 linq2db 和所有依赖项,现在当我已经重新安装并尝试运行与数据库的连接系统给我这个错误:

Severity    Code    Description Project File    Line    Suppression State Error     Compiling transformation: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type ~\..\contentFiles\any\any\LinqToDB.Templates\LinqToDB.ttinclude   1012    

更新

我清理了缓存给我一个错误,更新实体框架显然无法安装,因为这个:

Error       Could not install package 'MySql.Data 8.0.16'. 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.            0

任何帮助提前感谢。

4

1 回答 1

0

考虑到这些模板适用于所有人,我怀疑某些东西会导致它们引用的 nuget 缓存中的模板损坏。我首先建议清除 nuget 缓存(检查此链接如何使用命令行清除 NuGet 包缓存?)并重新安装 linq2db 包。如果问题仍然存在 - 如果您使用环境/版本详细信息填写问题会更好。

于 2019-06-09T07:11:15.703 回答