Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 发布Azure函数将返回“发布遇到错误”路径\bin不存在_C#_Azure Functions - Fatal编程技术网

C# 发布Azure函数将返回“发布遇到错误”路径\bin不存在

C# 发布Azure函数将返回“发布遇到错误”路径\bin不存在,c#,azure-functions,C#,Azure Functions,我正在尝试将我的第一个测试函数发布到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 followi

我正在尝试将我的第一个测试函数发布到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\n更高一个文件夹

我看不到任何改变文件夹位置的方法,我在函数-build的属性下尝试过,但该路径是顶层;不是最后一条路

我也看不到任何方法可以选择发布程序在哪里寻找要发布的编译函数


如何使这些位置保持一致以便发布工作?

这似乎是Visual Studio 2019中的一个错误。修补到当前版本解决了这个问题。

我在最新版本16.9.4和预览版本16.10-preview 3中遇到了同样的问题。