Refresh project cache when active configuration changes

Fix #531.
Fix VS unit tests
Add some timing diagnostics
Merge pull request #628 from dungpa/active-config

Refresh project cache when active configuration changes