Hello,
I reproduced this issue using .net 9.0.
According to the test, this is a Nuget Package reference issue. You need to update all updatable Packages to the latest version in Nuget Package Manager to solve this issue.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.