无法在 Azure 函数中发布本地 .settings 内容

Unable to publish local .settings contents in Azure function

我正在尝试构建和发布我的 Azure 函数,它显示已在 Visual Studio 中成功发布。但是,当我转到 Azure 门户时,我没有看到 local.settings.json 文件中的连接字符串和其他设置在那里发布?怎么了。在构建我的函数应用程序时,它的构建成功并带有警告

Error occurred while restoring NuGet packages: Access to the path 'Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.dll' is denied.

我担心我做错了什么。昨天我做了“清除所有 Nuget 缓存”,这可能是导致这个问题的原因。知道我该如何解决吗?

如前所述:您需要在 Azure 的函数上手动填充应用程序设置。 local.settings.json 未上传 - 也不打算上传。

Visual Studio 为您提供了一些复制值的帮助,但您需要启动它 - 通常您会在云中使用与本地调试不同的设置。