public async Task <int> RunAsync(RestoreArguments args) { var inputPath = PathHelper.ResolvePath(args.InputFile); await this.compilationService.RestoreAsync(inputPath); return(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); }