I cannot run Azure Functions with the latest version of "Microsoft.NET.Sdk.Functions" (1.0.22). When I try to debug it, an error message appears:
"A project with an Output Type of Class Library cannot be started directly".
But I just created a brand new Azure Function project and tried to run (I didn't change any code or property, just updated the package).
If I try to publish the Azure Function, there's no option to deploy it to the cloud, only for a local folder. The option to publish it to the cloud is missing.
If you downgrade to any version, everything works fine again. Here is my environment setup:
Microsoft Visual Studio Professional 2017
Version 15.8.5
VisualStudio.15.Release/15.8.5+28010.2036
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Professional
ASP.NET and Web Tools 2017 15.8.05085.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60618.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.8.05023.0
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 15.9.02009.0
Azure Functions and Web Jobs Tools
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
I have the same problem/error. My project was able to run before.
Make sure VS work with latest Azure Functions and Web Jobs Tools(find it in VS menus Tools> Extensions and Updates), right now it's 15.10.2046.
15.10.2046 check. Already up to date..
Related: #260
For issues with Visual Studio Functions tooling, can you please create issues from VS/Developer community using "Report a problem" tool (From VS, you can go to Help-> Send Feedback -> Report a problem). This will give us more diagnostic information to troubleshoot and fix the issue.
Thank you for your feedback!