使用 EF Core 2 的 Azure Functions bindingRedirect
bindingRedirect for Azure Function using EF Core 2
以 Framework 4.6.1 为目标并使用 VS2017 创建 Azure Functions,它使用 EF Core 2。我收到错误:
Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
...我通常使用 app.config 文件中的 bindingRedirect 来解决。由于 Azure Functions 不使用 app.config,有没有办法解决这个问题?我需要改用 EF 6 吗?
函数加载到与 Azure Functions 相同的进程中,因此您只能访问运行时预加载的相同版本的程序集。
这是一个 know issue,正在处理中。我相信他们正在研究某种 "language service",我们将完全控制加载的程序集。
在那之前,有一些解决方法:
Azure Functions binding redirect
以 Framework 4.6.1 为目标并使用 VS2017 创建 Azure Functions,它使用 EF Core 2。我收到错误:
Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
...我通常使用 app.config 文件中的 bindingRedirect 来解决。由于 Azure Functions 不使用 app.config,有没有办法解决这个问题?我需要改用 EF 6 吗?
函数加载到与 Azure Functions 相同的进程中,因此您只能访问运行时预加载的相同版本的程序集。
这是一个 know issue,正在处理中。我相信他们正在研究某种 "language service",我们将完全控制加载的程序集。
在那之前,有一些解决方法: Azure Functions binding redirect