gpt4 book ai didi

azure - 如何在 Visual Studio 2017 上正确运行 Azure 函数?

转载 作者:行者123 更新时间:2023-12-03 01:39:56 24 4
gpt4 key购买 nike

我正在尝试运行一个使用 Azure Functions 的程序。我正在使用 Visual Studio 2017。这是程序:

https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/rest-api-samples/dotnet

我下载了与 Azure Functions 相关的所有内容。

当我按调试时,出现以下错误:

A project with an Output type of Class Library cannot be started directly In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.

我是否正确运行了此示例,或者我是否错过了与 Azure 函数相关的内容?

谢谢

最佳答案

Microsoft.NET.Sdk.Functions(用于构建 Function 项目)似乎已损坏,请尝试删除引用并使用 nuget 重新安装包。

至于错误

Unable to find function project root. Expecting to have host.json in function project root

在 VS 中,打开新项目并选择 Functions.csproj 找到该项目。

关于azure - 如何在 Visual Studio 2017 上正确运行 Azure 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54781064/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com