我们目前已经部署了一个V1 Azure功能,并希望将其升级到V2 [预览].但是我目前看不到任何针对.NET Framework 4.6.1的方法,只有.NET Core才能创建v2函数.
是否可以在Azure Function v2中使用.NET Framework?
我正在使用预编译的 Azure Functions,我知道我可以使用 ConfigurationManager.AppSettings["keyname"] 读取应用设置中的值。
我一直在尝试使用以下内容创建一个额外的应用程序设置:
var configFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var settings = configFile.AppSettings.Settings;
settings.Add(pair.Key, pair.Value);
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试这样做时,我收到以下错误消息:
exePath must be specified when not running inside a stand alone exe.
Run Code Online (Sandbox Code Playgroud)
如果这可能的话,有什么想法吗?或者能够提供一个如何让它工作的指针?