object obj = System.Activator.CreateInstance(t, true);
EnvDTE80.DTE2 dte = (EnvDTE80.DTE2)obj;
Solution2 sol = (Solution2)dte.Solution;
Project windowsApplicationProject = sol.Projects.Item(3);
VSProject2 vsWindowsApplicationProject = (VSProject2)windowsApplicationProject.Object;
vsWindowsApplicationProject.AddWebReference("h t t p ://srv00008/SWGestionapp/SWGestionAppGN.asmx");