9 writes to ContainingProjectPaths
dotnet-watch (3)
Build\EvaluationResult.cs (1)
153ContainingProjectPaths = [projectPath],
HotReload\HotReloadDotNetWatcher.cs (1)
438new FileItem() { FilePath = changedPath.Path, ContainingProjectPaths = [] },
Watch\MsBuildFileSetFactory.cs (1)
106ContainingProjectPaths = [projectPath],
dotnet-watch.Tests (6)
Watch\BuildEvaluatorTests.cs (6)
46await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Test.csproj", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 64await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 84await evaluator.EvaluateAsync(changedFile: new(new() { FilePath = "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None); 99{ "Controlller.cs", new FileItem { FilePath = "Controlller.cs", ContainingProjectPaths = []} }, 100{ "Proj.csproj", new FileItem { FilePath = "Proj.csproj", ContainingProjectPaths = [] } }, 121await 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)
493foreach (var containingProjectPath in file.ContainingProjectPaths)
HotReload\HotReloadDotNetWatcher.cs (1)
491if (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)))}]");