1 write to _context
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
29_context = context;
62 references to _context
Microsoft.DotNet.HotReload.Watch (62)
HotReload\HotReloadDotNetWatcher.cs (62)
55_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 56_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 63_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 68using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 89var rootProjectOptions = _context.RootProjectOptions; 112_context.Logger.LogDebug("Using Aspire process launcher."); 115var projectMap = new ProjectNodeMap(evaluationResult.ProjectGraph, _context.Logger); 116compilationHandler = new CompilationHandler(_context.Logger, _context.ProcessRunner); 117var scopedCssFileHandler = new ScopedCssFileHandler(_context.Logger, _context.BuildLogger, projectMap, _context.BrowserRefreshServerFactory, _context.Options, _context.EnvironmentOptions); 118var projectLauncher = new ProjectLauncher(_context, projectMap, compilationHandler, iteration); 119evaluationResult.ItemExclusions.Report(_context.Logger); 190_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 197_context.Logger.Log(MessageDescriptor.WaitingForChanges); 251_context.Logger.LogWarning("Project '{Name}' does not support Hot Reload and must be rebuilt.", rootProject.GetDisplayName()); 273autoRestart: _context.Options.NonInteractive || _rudeEditRestartPrompt?.AutoRestartPreference is true, 288_context.Logger.LogInformation("Affected projects:"); 292_context.Logger.LogInformation(" {ProjectName}", projectName); 301_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 305_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 362startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 370_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, projectsToRebuild.Length); 377_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, projectsToRedeploy.Length); 397_context.Logger.Log(MessageDescriptor.ProjectsRestarted, projectsToRestart.Length); 400_context.Logger.Log(MessageDescriptor.HotReloadChangeHandled, stopwatch.ElapsedMilliseconds); 449_context.Logger.Log(fileAdded ? MessageDescriptor.FileAdditionTriggeredReEvaluation : MessageDescriptor.ProjectChangeTriggeredReEvaluation); 470_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 566var buildReporter = new BuildReporter(_context.Logger, _context.Options, _context.EnvironmentOptions); 593_context.Logger.LogDebug("{TargetName} target failed", targetName); 608_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 622_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 640startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 646fileWatcher.WatchContainingDirectories([_context.RootProjectOptions.ProjectPath], includeSubdirectories: true); 650startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 687return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 701_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 795_context.Logger.LogInformation(GetMessage(items, kind)); 829_context.Logger.LogInformation("Evaluating projects ..."); 834_context.RootProjectOptions.ProjectPath, 835_context.BuildLogger, 836_context.Options, 837_context.EnvironmentOptions, 841_context.Logger.LogInformation("Evaluation completed in {Time}s.", stopwatch.Elapsed.TotalSeconds.ToString("0.0")); 849_context.RootProjectOptions.ProjectPath, 850_context.Logger, 851_context.EnvironmentOptions, 852startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 859List<OutputLine>? capturedOutput = _context.EnvironmentOptions.TestFlags != TestFlags.None ? [] : null; 863Executable = _context.EnvironmentOptions.MuxerPath, 883_context.BuildLogger.Log(MessageDescriptor.Building, projectPath); 885var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0; 889_context.BuildLogger.Log(success ? MessageDescriptor.BuildSucceeded : MessageDescriptor.BuildFailed, projectPath); 890BuildOutput.ReportBuildOutput(_context.BuildLogger, capturedOutput, success); 899var workingDirectory = _context.EnvironmentOptions.WorkingDirectory;