Exemple #1
0
        public async Task <bool> HasMissingPackages(IMonoDevelopSolutionManager solutionManager)
        {
            PackageIdentity packageIdentity = await GetNuGetBuildPackagingPackage();

            if (packageIdentity == null)
            {
                return(false);
            }

            return(GlobalPackagesExtractor.IsMissing(solutionManager, packageIdentity));
        }
        public async Task <bool> HasMissingPackages(IMonoDevelopSolutionManager solutionManager)
        {
            PackageIdentity packageIdentity = await GetNuGetBuildPackagingPackage();

            if (packageIdentity == null)
            {
                return(false);
            }

            if (GlobalPackagesExtractor.IsMissing(solutionManager, packageIdentity))
            {
                return(true);
            }

            // This will trigger a restore if the generated MSBuild files are missing.
            return(!GeneratedNuGetMSBuildFilesExist());
        }