【发布时间】:2018-02-15 14:17:12
【问题描述】:
我在 Azure 函数中运行实体框架查询时遇到了问题。相同的代码在控制台应用程序中运行良好。
这是我得到的确切错误:
"Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.":"System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"
请注意它如何找不到正确的版本。这可能是个问题吗?
这是我的设置:
1. 包含数据模型的我的类库使用.NET Standard 2.0 和.NET 4.7 作为目标框架。我手动将项目更改为具有以下内容:<TargetFrameworks>netstandard2.0;net47</TargetFrameworks>
- Azure Functions 面向 .NET 4.7
- 查看问题后,我还从 Nuget 手动安装了
ValueTuple DLL,但我仍然看不到
我有什么遗漏的吗?很想知道是否有人面临类似的问题。
谢谢你, 阿努普
【问题讨论】:
标签: azure .net-core azure-functions entity-framework-core