1 write to _context
dotnet-watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
28_context = context;
61 references to _context
dotnet-watch (61)
HotReload\HotReloadDotNetWatcher.cs (61)
49_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 50_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 57_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 62using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 83var rootProjectOptions = _context.RootProjectOptions; 86BuildOutput.ReportBuildOutput(_context.BuildLogger, buildOutput, buildSucceeded, projectDisplay: rootProjectOptions.ProjectPath); 107_context.Logger.LogDebug("Using Aspire process launcher."); 110var projectMap = new ProjectNodeMap(evaluationResult.ProjectGraph, _context.Logger); 111compilationHandler = new CompilationHandler(_context.Logger, _context.ProcessRunner); 112var scopedCssFileHandler = new ScopedCssFileHandler(_context.Logger, _context.BuildLogger, projectMap, _context.BrowserRefreshServerFactory, _context.Options, _context.EnvironmentOptions); 113var projectLauncher = new ProjectLauncher(_context, projectMap, compilationHandler, iteration); 114evaluationResult.ItemExclusions.Report(_context.Logger); 185_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 246_context.Logger.LogWarning("Project '{Name}' does not support Hot Reload and must be rebuilt.", rootProject.GetDisplayName()); 268autoRestart: _context.Options.NonInteractive || _rudeEditRestartPrompt?.AutoRestartPreference is true, 283_context.Logger.LogInformation("Affected projects:"); 287_context.Logger.LogInformation(" {ProjectName}", projectName); 296_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 300_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 336BuildOutput.ReportBuildOutput(_context.BuildLogger, output, success, projectPath); 353startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 361_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, projectsToRebuild.Length); 368_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, projectsToRedeploy.Length); 388_context.Logger.Log(MessageDescriptor.ProjectsRestarted, projectsToRestart.Length); 391_context.Logger.Log(MessageDescriptor.HotReloadChangeHandled, stopwatch.ElapsedMilliseconds); 440_context.Logger.Log(fileAdded ? MessageDescriptor.FileAdditionTriggeredReEvaluation : MessageDescriptor.ProjectChangeTriggeredReEvaluation); 461_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 557var buildReporter = new BuildReporter(_context.Logger, _context.Options, _context.EnvironmentOptions); 584_context.Logger.LogDebug("{TargetName} target failed", targetName); 599_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 613_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 631startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 637fileWatcher.WatchContainingDirectories([_context.RootProjectOptions.ProjectPath], includeSubdirectories: true); 641startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 678return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 692_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 777_context.Logger.Log(MessageDescriptor.WaitingForChanges 778.WithSeverityWhen(MessageSeverity.Output, _context.EnvironmentOptions.TestFlags.HasFlag(TestFlags.ElevateWaitingForChangesMessageSeverity))); 792_context.Logger.LogInformation(GetMessage(items, kind)); 827_context.RootProjectOptions.ProjectPath, 828_context.RootProjectOptions.BuildArguments, 829_context.BuildLogger, 830_context.Options, 831_context.EnvironmentOptions, 841_context.RootProjectOptions.ProjectPath, 842_context.Logger, 843_context.EnvironmentOptions, 844startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 856Executable = _context.EnvironmentOptions.MuxerPath, 870_context.BuildLogger.Log(MessageDescriptor.Building, projectPath); 872var exitCode = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken); 879var workingDirectory = _context.EnvironmentOptions.WorkingDirectory;