Azure / Azure/azure-functions-openapi-extension

.NET 8, Function Decorators Not Recognized

Open
#629 28 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

I am attempting to migrate an Azure Function from .NET 6 to .NET 8 and from in-process to isolated.

I followed the instructions outlined here: https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/enable-open-api-endpoints-out-of-proc.md

Including updating the the csproj and performing `dotnet restore`:

image

However, it appears that the decorators are still not recognized?

image

Visual Studio Code indicates: _'OpenApiOperation' is not an attribute class_

I have tried `dotnet clean`, I have tried completely exiting VS Code and restarting.

Contributor guide

Open the contributing guide

Research direction

Start with the linked out-of-process OpenAPI instructions and the project's .csproj changes, then reproduce the decorator error after dotnet restore in Visual Studio Code. Check how OpenApiOperation is referenced and whether it is recognized as an attribute in the .NET 8 isolated setup; done means the decorators compile and the migration instructions work.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, openapi
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.