简体   繁体   English

无法使用 Visual Studio 2017 调试 Azure 函数

[英]Cannot debug Azure Function with Visual Studio 2017

The function project (.csproj) where created in a solution.在解决方案中创建的函数项目 (.csproj)。 I deleted the solution and tried to load the function project in another solution.我删除了解决方案并尝试在另一个解决方案中加载功能项目。

Result: When I press F5 to debug, Visual Studio do not recognize it as an Azure Function.结果:当我按 F5 进行调试时,Visual Studio 无法将其识别为 Azure 函数。

截屏

How can I tell Visual Studio this project is an Azure Function and not a regular class librairy?我如何告诉 Visual Studio 这个项目是一个 Azure 函数而不是一个常规的类库?

Found it.找到了。 Solution change is not the issue.解决方案更改不是问题。

The nuget package Microsoft.NET.Sdk.Functions disapeared (probably a bad manipulation). nuget 包 Microsoft.NET.Sdk.Functions 消失了(可能是一个错误的操作)。

I re-add it and it worked.我重新添加它并且它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM