private static IDictionary <string, PackageItemDetail> FindPackages()
        {
            var result   = new Dictionary <string, PackageItemDetail>();
            var packages = NuGetPackage.GetRegisteredPackages();

            foreach (var package in packages)
            {
                var name = package.GetAssemblyName();
                result[name] = new PackageItemDetail {
                    Name = package.GetId(), Version = package.GetVersion(), Assembly = name
                };
            }

            return(result);
        }