The error message NETSDK1209 indicates that your current version of Visual Studio does not support targeting .NET 8.0:
- Update the .csproj file to target a supported version of .NET, such as .NET 7.0.
-
Open the
.csproj
file. -
Find the
<TargetFramework>
element. -
Change the value to
net7.0 or a lower
version.<TargetFramework>net7.0</TargetFramework>
-