internal NetMFMultiTargeting(VsProject project)
 {
     m_frameworks = new TargetFrameworkAssemblies(project);
     m_project    = project;
 }
 internal NetMFMultiTargeting(VsProject project)
 {
     m_frameworks = new TargetFrameworkAssemblies(project);
     m_project = project;
 }
Exemplo n.º 3
0
            int IOleServiceProvider.QueryService(ref Guid guidService, ref Guid riid, out IntPtr ppvObject)
            {
                int hr = Utility.COM_HResults.S_OK;

                if (guidService.Equals(typeof(SVsTargetFrameworkAssemblies).GUID))
                {
                    IVsTargetFrameworkAssemblies frameworkAssemblies = new TargetFrameworkAssemblies(m_project);
                    ppvObject = Marshal.GetComInterfaceForObject(frameworkAssemblies, typeof(IVsTargetFrameworkAssemblies));
                }
                if (guidService.Equals(typeof(SVsFrameworkMultiTargeting).GUID))
                {
                    IVsFrameworkMultiTargeting multiTargetting = new NetMFMultiTargeting(m_project);
                    ppvObject = Marshal.GetComInterfaceForObject(multiTargetting, typeof(IVsFrameworkMultiTargeting));
                }
                else
                {
                    hr = m_spInner.QueryService(ref guidService, ref riid, out ppvObject);
                }

                return hr;
            }