Measure Project / Solution Build Times

I’m trying to create a Resharper plugin for measuring local build times at both the project and solution level. I was able to create a Visual Studio extension for this, but my company uses Rider as well and would like to be able to measure and compare builds on both IDEs.

The documentation and GitHub examples I’ve been able to find don’t even compile and it’s been a frustrating process trying to figure it out. Hoping someone here can point me in the right direction and I can at least get some code to compile.

I tried starting with these files:

and both won’t build for me as-is. Tried getting help from AI as well but no luck.

Thanks in advance