dotnet --list-sdks 

indicates that I have .net8.0.1 installed.

versions

My c# Solution has .Net7 and .Net8 projects and builds OK.

If I change the main project to have

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net8.0.101-windows</TargetFramework>
  

When I build I get

NETSDK1045: The current .NET SDK does not support targeting .NET
8.0.1. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 8.0.1. Download the .NET SDK from
https://aka.ms/dotnet/download