Compiler errors with Isolated .Net Framework 4.8
Error CS0246: The type or namespace name 'OpenApiOperation' could not be found (are you missing a using directive or an assembly reference?)
I'm writing a v4 Isolated function, using .Net Framework 4.8.
I have using Microsoft.Azure.Functions.Worker.Extensions.OpenApi.Extensions;
(I've tried also without .Extensions)
Intellicode only suggests using Microsoft.Azure.Webjobs...
Screenshots

Environment (please complete the following information, if applicable):
- OS: Windows 10
- Microsoft Visual Studio Professional 2022 (64-bit) - Version 17.5.4 Microsoft .NET Framework Version 4.8.09037 ASP.NET and Web Tools 17.5.318.41597 Azure App Service Tools v3.0.0 17.5.318.41597 Azure Data Lake Tools for Visual Studio 2.6.5000.0 Azure Functions and Web Jobs Tools 17.5.318.41597 Azure Stream Analytics Tools for Visual Studio 2.6.5000.0 C# Tools 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d Common Azure Tools 1.10 Microsoft Azure Hive Query Language Service 2.6.5000.0 Microsoft Azure Stream Analytics Language Service 2.6.5000.0 Microsoft Azure Tools for Visual Studio 2.9 Microsoft JVM Debugger 1.0 Node.js Tools 1.5.50105.3 Commit Hash:882de61a7c99ae988d4c62029301292a3e0b1d56 NuGet Package Manager 6.5.0 Razor (ASP.NET Core) 17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f SQL Server Data Tools 17.2.40120.0 ToolWindowHostedEditor 1.0 TypeScript Tools 17.0.20105.2003 Visual Studio IntelliCode 2.2
I have sort of the same issue. I create a vanilla Azure Function V4 Framework 4.8 default application and only added the Microsoft.Azure.Functions.Worker.Extensions.OpenApi library. If I run the code and call the http://localhost:7112/api/swagger/ui url i get
in the console.
returned to the browser