Build failed: .NET framework 4.5 required, which I have installed

Microsoft.Common.CurrentVersion.targets(1177, 5): [MSB3644] The reference assemblies for .NETFramework,Version=v4.5 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at .NET SDKs downloads for Visual Studio

First time trying to build from source, but I’m getting this error. I’m using Rider for Unreal Engine 2020.1.3.

Not sure if related, but earlier I had the problem of ‘TraceServices/SessionService.h’ missing, but fixed it by following this comment which said to comment out part of the function.
https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1755531-unreal-engine-4-25-released?p=1762483#post1762483

303374-ddd.jpg

I have .NET framework developer pack 4.6 & 4.5 both installed, which both seem to be required. I also cannot open Engine project’s properties in Rider, takes for forever to load with the “retrieving properties” loading indicator and in the end says it failed of something like that.

Any help is appreciated!