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.
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.