Viladoman / CompileScore

Tools for profiling and visualizing C++ build times.
MIT License
460 stars 19 forks source link

Fix "Build and Profile" for projects in nested folders #51

Closed bitowl closed 11 months ago

bitowl commented 11 months ago

I got the same error as in #21 when trying to "Build and Profile". In my case this was due to the project being nested in multiple solution folders deep. Profiler.GetProjectUniqueName only checks the projects in top-level solution folders.

This fix instead gets the unique name directly from the project of the SelectedItem. This should also work in the theoretical case of two projects with the same name in separate folders.

Viladoman commented 11 months ago

Thanks for fixing this. I really appreciate it.