I am in debugging, I got the reference to current solution as DTE2. (as from "adabyron")
I often got the following error when I tried foreach loop on vsSolution.Projects:
The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Click continue, I can still loop through all projects. Any reason for me getting the error?