Hey y’all! I have been getting this error whenever I try to compile my C++ code inside of Rider. Someone told me to make a registry path called “DOTNET_ROOT” and set it to my dotnet folder, cause I have a dotnet 9 installation and a dotnet 8 installation, but this error keeps popping up.
CONSOLE: Use build tool: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
: : null
Microsoft.NET.Sdk.ImportWorkloads.props(14,3): Error : Could not resolve SDK “Microsoft.NET.SDK.WorkloadAutoImportPropsLocator”. Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.
MSB4276: The default SDK resolver failed to resolve SDK “Microsoft.NET.SDK.WorkloadAutoImportPropsLocator” because directory “C:\Program Files\dotnet\sdk\9.0.304\Sdks\Microsoft.NET.SDK.WorkloadAutoImportPropsLocator\Sdk” did not exist.
3:51:31 PM Building C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj
0>Microsoft.NET.Sdk.ImportWorkloads.props(14,38): Error MSB4236 : The SDK ‘Microsoft.NET.SDK.WorkloadAutoImportPropsLocator’ specified could not be found.
Cheers