9 writes to FilePath
dotnet-watch (3)
Build\EvaluationResult.cs (1)
152FilePath = filePath,
HotReload\HotReloadDotNetWatcher.cs (1)
438new FileItem() { FilePath = changedPath.Path, ContainingProjectPaths = [] },
Watch\MsBuildFileSetFactory.cs (1)
105FilePath = filePath,
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);
18 references to FilePath
dotnet-watch (18)
Build\BuildReporter.cs (2)
31? $"{file.FilePath}{Path.PathSeparator}{file.StaticWebAssetPath}" 32: $"{file.FilePath}");
HotReload\CompilationHandler.cs (1)
515updatesPerRunningProject.Add((file.FilePath, file.StaticWebAssetPath, containingProjectNode.GetAssemblyName(), containingProjectNode == runningProject.ProjectNode));
HotReload\HotReloadDotNetWatcher.cs (5)
450var projectChanged = !fileAdded && changedFiles.Any(f => evaluationResult.BuildFiles.Contains(f.Item.FilePath)); 473.Select(f => evaluationResult.Files.TryGetValue(f.Item.FilePath, out var evaluatedFile) ? f with { Item = evaluatedFile } : f) 497newAccumulator = newAccumulator.Add(new ChangedPath(file.Item.FilePath, file.Kind)); 814? GetSingularMessage(kind) + ": " + GetRelativeFilePath(item.FilePath) 815: GetPluralMessage(kind) + ": " + string.Join(", ", items.Select(f => GetRelativeFilePath(f.Item.FilePath)));
HotReload\IncrementalMSBuildWorkspace.cs (3)
130var documentIds = updatedSolution.GetDocumentIdsWithFilePath(changedFile.FilePath); 145_logger.LogDebug("Could not find document with path '{FilePath}' in the workspace.", changedFile.FilePath); 155var newText = await GetSourceTextAsync(changedFile.FilePath, oldText.Encoding, oldText.ChecksumAlgorithm, cancellationToken);
HotReload\ScopedCssFileHandler.cs (3)
23if (!file.FilePath.EndsWith(".razor.css", StringComparison.Ordinal) && 24!file.FilePath.EndsWith(".cshtml.css", StringComparison.Ordinal)) 30logger.LogDebug("Handling file change event for scoped css file {FilePath}.", file.FilePath);
HotReload\StaticFileHandler.cs (1)
28logger.LogDebug("Handling file change event for static content {FilePath}.", file.FilePath);
Watch\BuildEvaluator.cs (1)
116if (changedFile != null && IsMsBuildFileExtension(changedFile.Value.FilePath))
Watch\DotNetWatcher.cs (1)
146context.Logger.LogInformation("File changed: {Path}", changedFile.Value.Item.FilePath);
Watch\MsBuildFileSetFactory.cs (1)
120Debug.Assert(fileItems.Values.All(f => Path.IsPathRooted(f.FilePath)), "All files should be rooted paths");