private void DumpMefLog(IComponentModel componentModel)
        {
            PackageUtility.ShowError(this, string.Format(CultureInfo.InvariantCulture, Resources.RuntimeShellPackage_DumpMefLogs, Constants.ProductName));

            var tempFile = string.Empty;

            try
            {
                // Write out the default VS catalog
                tempFile = Path.Combine(Path.GetTempPath(), "mef.txt");
                using (var writer = new StreamWriter(tempFile, false))
                {
                    CompositionInfoTextFormatter.Write(new CompositionInfo(componentModel.DefaultCatalog, componentModel.DefaultExportProvider), writer);
                }

                Process.Start(tempFile);
            }
            catch (IOException)
            {
                // Ignore writing issues
            }

            try
            {
                // Write out the NuPattern catalog
                tempFile = Path.Combine(Path.GetTempPath(), "mef-nupattern.txt");
                using (var writer = new StreamWriter(tempFile, false))
                {
                    CompositionInfoTextFormatter.Write(new CompositionInfo(componentModel.GetCatalog(
                                                                               Catalog.DefaultCatalogName), componentModel.DefaultExportProvider), writer);
                }

                Process.Start(tempFile);
            }
            catch (IOException)
            {
                // Ignore writing issues
            }
        }
        private void DumpMefLog(IComponentModel componentModel)
        {
            PackageUtility.ShowError(this, string.Format(CultureInfo.InvariantCulture, Resources.RuntimeShellPackage_DumpMefLogs, Constants.ProductName));

            var tempFile = string.Empty;
            try
            {
                // Write out the default VS catalog
                tempFile = Path.Combine(Path.GetTempPath(), "mef.txt");
                using (var writer = new StreamWriter(tempFile, false))
                {
                    CompositionInfoTextFormatter.Write(new CompositionInfo(componentModel.DefaultCatalog, componentModel.DefaultExportProvider), writer);
                }

                Process.Start(tempFile);
            }
            catch (IOException)
            {
                // Ignore writing issues
            }

            try
            {
                // Write out the NuPattern catalog
                tempFile = Path.Combine(Path.GetTempPath(), "mef-nupattern.txt");
                using (var writer = new StreamWriter(tempFile, false))
                {
                    CompositionInfoTextFormatter.Write(new CompositionInfo(componentModel.GetCatalog(
                        Catalog.DefaultCatalogName), componentModel.DefaultExportProvider), writer);
                }

                Process.Start(tempFile);
            }
            catch (IOException)
            {
                // Ignore writing issues
            }
        }