Azure / Azure/azure-functions-openapi-extension

Compiler errors with Isolated .Net Framework 4.8

Open
#575 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

**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**
image
![image](https://user-images.githubusercontent.com/7384342/235824789-8f783468-ba8f-407f-8d1a-6888fbc2b217.png)

**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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the compiler error in a v4 isolated function targeting .NET Framework 4.8, then inspect the project’s package and assembly references for OpenApiOperation. Done means the type resolves with the documented using directive and the project compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.