9 writes to ContainingProjectPaths
dotnet-watch (3)
Build\EvaluationResult.cs (1)
153ContainingProjectPaths = [projectPath],
HotReload\HotReloadDotNetWatcher.cs (1)
423new FileItem() { FilePath = changedPath.Path, ContainingProjectPaths = [] },
Watch\MsBuildFileSetFactory.cs (1)
106ContainingProjectPaths = [projectPath],
dotnet-watch.Tests (6)
Watch\BuildEvaluatorTests.cs (6)
48await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Test.csproj", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 66await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 86await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 101{ "Controlller.cs", new FileItem { FilePath = "Controlller.cs", ContainingProjectPaths = []} }, 102{ "Proj.csproj", new FileItem { FilePath = "Proj.csproj", ContainingProjectPaths = [] } }, 123await evaluator.EvaluateAsync(new(new() { FilePath = "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None);
9 references to ContainingProjectPaths
dotnet-watch (8)
Build\EvaluationResult.cs (2)
157else if (!existingFile.ContainingProjectPaths.Contains(projectPath)) 160existingFile.ContainingProjectPaths.Add(projectPath);
HotReload\CompilationHandler.cs (1)
554foreach (var containingProjectPath in file.ContainingProjectPaths)
HotReload\HotReloadDotNetWatcher.cs (1)
476if (file.Item.ContainingProjectPaths.All(containingProjectPath => rebuiltProjectPaths.Contains(containingProjectPath)))
HotReload\ScopedCssFileHandler.cs (1)
31foreach (var containingProjectPath in file.ContainingProjectPaths)
HotReload\StaticFileHandler.cs (1)
30foreach (var containingProjectPath in file.ContainingProjectPaths)
Watch\MsBuildFileSetFactory.cs (2)
110else if (!existingFile.ContainingProjectPaths.Contains(projectPath)) 113existingFile.ContainingProjectPaths.Add(projectPath);
dotnet-watch.Tests (1)
Build\EvaluationTests.cs (1)
22.Select(entry => $"{InspectPath(entry.Key, rootDir)}: [{string.Join(", ", entry.Value.ContainingProjectPaths.Select(p => InspectPath(p, rootDir)))}]");