public bool ProjectSupportsNuget()

in src/Microsoft.VisualStudio.SlowCheetah.VS/NugetHandler/SlowCheetahNuGetManager.cs [75:107]


        public bool ProjectSupportsNuget(IVsHierarchy hierarchy)
        {
            if (hierarchy == null)
            {
                throw new ArgumentNullException(nameof(hierarchy));
            }

            if (SupportsINugetProjectSystem(hierarchy))
            {
                return true;
            }

            try
            {
                if (hierarchy.IsCapabilityMatch(SupportedCapabilities))
                {
                    return true;
                }

                if (hierarchy.IsCapabilityMatch(UnsupportedCapabilities))
                {
                    return false;
                }
            }
            catch (Exception ex) when (!ErrorHandler.IsCriticalException(ex))
            {
                // Catch exceptions when hierarchy doesn't support the above methods
            }

            Project project = PackageUtilities.GetAutomationFromHierarchy<Project>(hierarchy, (uint)VSConstants.VSITEMID.Root);

            return project.Kind != null && SupportedProjectTypes.Contains(project.Kind);
        }