Trying to build UE4.25 Source on VS 2017 and VS 2019. See UE-92977 as related issue
Yep, was gonna chime in to add that
says it happens with Rider IDE, but this is actually happening with Rebuild All in VS2017.
Workaround is to remove the UnrealInsightsCLI project (in the Programs folder) from the build sln.
Someone on the EPIC Discord mentioned if you just remove the library header call and rebuild it works. I am actually attempting this now.