An error occurred while trying to generate project files

I’m trying to create a C++ project in Unreal Engine v4.27.2 for the first time and I get this error message:

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: Could not find NetFxSDK install dir; this will prevent SwarmInterface from installing.  Install a version of .NET Framework SDK at 4.6.0 or higher.

I remember downloading .NET SDK 6 and running the dotnet command and I also have Visual Studio Community 2022. I don’t know what’s wrong, help would be appreciated.

same issue. I have installed .net 6 ( doesn’t help) , but what is this dotnet command thou speaketh of prey tell ?

update… oh… its just typing “dotnet --version” in Command prompt to see what version is installed as new versions of .net do not show up in the windows registry. Turns out I have 7.0 with a bunch of older runtimes… including 6, but unreal still can’t find it. ( or VS ? )