Esempio n. 1
0
        public async Task <int> RunAsync(RestoreArguments args)
        {
            var inputPath = PathHelper.ResolvePath(args.InputFile);

            await this.compilationService.RestoreAsync(inputPath);

            return(0);
        }
Esempio n. 2
0
        public async Task <int> RunAsync(RestoreArguments args)
        {
            var inputPath = PathHelper.ResolvePath(args.InputFile);

            await this.compilationService.RestoreAsync(inputPath, args.ForceModulesRestore);

            // return non-zero exit code on errors
            return(diagnosticLogger.ErrorCount > 0 ? 1 : 0);
        }