1 write to _context
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
36_context = context;
56 references to _context
Microsoft.DotNet.HotReload.Watch (56)
HotReload\HotReloadDotNetWatcher.cs (56)
67_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 68_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 75_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 80using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 102_context.RootProjects, 104_context.MainProjectOptions, 127evaluationResult.ItemExclusions.Report(_context.Logger); 135compilationHandler = new CompilationHandler(_context); 146var projectLauncher = new ProjectLauncher(_context, projectGraph, compilationHandler, iteration); 150var mainProjectOptions = _context.MainProjectOptions; 163_context.Logger.LogDebug("Using Aspire process launcher."); 170_context.Logger.Log(MessageDescriptor.RuntimeProcessLauncherCreatedNotification); 216_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 223_context.Logger.Log(MessageDescriptor.WaitingForChanges); 266autoRestart: _context.Options.NonInteractive || _rudeEditRestartPrompt?.AutoRestartPreference is true, 298startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 306_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, updates.ProjectsToRebuild.Count); 313_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, updates.ProjectsToRedeploy.Count); 387startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 412_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 497_context.Logger.Log(MessageDescriptor.Restarting); 524_context.Logger.LogInformation("Affected projects:"); 528_context.Logger.LogInformation(" {ProjectName}", projectName); 537_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 541_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 556_context.Logger.Log(MessageDescriptor.ProjectChangeTriggeredReEvaluation, firstBuildFilePath); 582_context.Logger.Log(MessageDescriptor.FileAdditionTriggeredReEvaluation, filePath); 684_context.Logger.LogDebug("[{ProjectName}] {TargetName} target failed", failedInstance.GetDisplayName(), TargetName); 719_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 733_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 751startedWatching: () => _context.Logger.Log(messageDescriptor), 759fileWatcher.WatchContainingDirectories(_context.RootProjects.Select(p => p.ProjectOrEntryPointFilePath), includeSubdirectories: true); 764startedWatching: () => _context.Logger.Log(messageDescriptor), 801return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 815_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 909_context.Logger.LogInformation(GetMessage(items, kind)); 943_context.BuildLogger, 944_context.Options, 945_context.EnvironmentOptions, 983_context.Logger.Log(MessageDescriptor.BuildStartedNotification, projects); 990_context.Logger.Log(MessageDescriptor.BuildCompletedNotification, (projects, success)); 1023_context.BuildLogger.Log(MessageDescriptor.FileSpecifiesMultipleTargetFrameworks, sourcePath, string.Join("', '", frameworkList)); 1071_context.BuildLogger.LogError("Project '{Path}' does not specify a target framework.", rootProject.FullPath); 1090_context.Logger.LogDebug("Selected device: {DeviceId}", selectedDevice); 1200_context.Logger.LogDebug("ComputeAvailableDevices target failed or returned no output."); 1217_context.Logger.Log(MessageDescriptor.NoDevicesAvailable); 1238arguments.AddRange(_context.BuildArguments); 1266List<OutputLine>? capturedOutput = _context.EnvironmentOptions.TestFlags != TestFlags.None ? [] : null; 1269Executable = _context.EnvironmentOptions.GetMuxerPath(), 1289_context.BuildLogger.Log(action == BuildAction.RestoreOnly ? MessageDescriptor.Restoring : MessageDescriptor.Building, path); 1291var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0; 1296_context.BuildLogger.Log( 1306BuildOutput.ReportBuildOutput(_context.BuildLogger, capturedOutput, success); 1315var workingDirectory = _context.EnvironmentOptions.WorkingDirectory;