Hello @Michael Haak,
Welcome to Microsoft Q&A forum.
If this issue only appears on this specific project, please kindly double check and manually remove the hidden .vs
folder, bin
and obj
folders in your solution/project folder, then rebuild your project and rerun it.
Also consider, whether some NuGet packages/assemblies are used in this project but may be/may be not updated along with VS and cause some compatibility issues.
Kindly double check the version of the target framework. You can check your project target framework in .csproj file => <TargetFramework>net8.0</TargetFramework>
. If you have other projects in your solution or using other projects outside of your project, try to confirm if they target a previous version of .NET Core. Try to install previous version of .NET Core if necessary(like .NET Core 3.1 from VS Installer > Modify > Individual components, .NET Core 2.2 from here: Download .NET Core 2.2).
Best Regards,
Tianyu
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.