我正在尝试将我的第一个测试函数发布到Azure函数。当我发布时,我得到了错误:
Publish has encountered an error.
Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
A diagnostic log has been written to the following location:
"C:\Users\me\AppData\Local\Temp\tmp2C29.tmp"该文件的竞赛说这是一个未知的错误,检查输出日志。
当我查看我的输出窗口时,我看到以下内容:
2>Unhandled Exception: System.IO.DirectoryNotFoundException: The path `D:\Dev\FunctionsTest-master\custom-binding\obj\Debug\netstandard2.0\PubTmp\Out\bin` does not exist. Unable to generate Azure Functions extensions metadata file.
2> at ExtensionsMetadataGenerator.ExtensionsMetadataGenerator.Generate(String sourcePath, String outputPath, Action`1 logger) in D:\src\gh.fabiocav\azure-functions-host\tools\ExtensionsMetadataGenerator\src\ExtensionsMetadataGenerator.Console\ExtensionsMetadataGenerator.cs:line 25
2> at ExtensionsMetadataGenerator.Console.Program.Main(String[] args) in D:\src\gh.fabiocav\azure-functions-host\tools\ExtensionsMetadataGenerator\src\ExtensionsMetadataGenerator.Console\Program.cs:line 28
2>Metadata generation failed.我查看了...\PubTmp\Out\bin文件夹,但它不在编译的位置。实际文件夹是\PubTmp\Out\ (高一个文件夹)。
我没有看到任何改变文件夹位置的方法,我在函数构建的属性下尝试过,但是该路径是顶层的,而不是最终的路径。
我也不认为有任何方法可以选择发布的位置,以查找要发布的编译函数。
我如何使这些位置保持相同的发布工作呢?
发布于 2020-04-08 17:22:28
这似乎是Visual 2019中的一个bug。修补当前版本就可以了。
https://stackoverflow.com/questions/61104622
复制相似问题