Azure / Azure/azure-functions-dotnet-worker

Upgrade Assistant creates invalid type for output bindings with return targets

Open
#2,013 0 comments 0 reactions 1 assignee Claimed by @aishwaryabh View on GitHub
area: dotnet-upgrade-assistant bug team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

I have a `[return: Table(...)]` attribute attached to the function. The return type itself is a `Task` where `T` is a user-defined POCO. After the upgrade, this is replaced with a `[TableInputOutput(...)]` equivalent. That type does not exist, and this generates two build errors:

>Error CS0246 The type or namespace name 'TableInputOutput' could not be found (are you missing a using directive or an assembly reference?)
Error CS0246 The type or namespace name 'TableInputOutputAttribute' could not be found (are you missing a using directive or an assembly reference?)

This was observed for a V4 project, upgrading to .NET 8.

It is expected that this would just become a `[TableOutput(...)]`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.