9 writes to FilePath
dotnet-watch (3)
Build\EvaluationResult.cs (1)
152
FilePath
= filePath,
HotReload\HotReloadDotNetWatcher.cs (1)
438
new FileItem() {
FilePath
= changedPath.Path, ContainingProjectPaths = [] },
Watch\MsBuildFileSetFactory.cs (1)
105
FilePath
= filePath,
dotnet-watch.Tests (6)
Watch\BuildEvaluatorTests.cs (6)
46
await evaluator.EvaluateAsync(changedFile: new(new() {
FilePath
= "Test.csproj", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None);
64
await evaluator.EvaluateAsync(changedFile: new(new() {
FilePath
= "Controller.cs", ContainingProjectPaths = [] }, ChangeKind.Update), CancellationToken.None);
84
await 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 = [] } },
121
await 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)
515
updatesPerRunningProject.Add((file.
FilePath
, file.StaticWebAssetPath, containingProjectNode.GetAssemblyName(), containingProjectNode == runningProject.ProjectNode));
HotReload\HotReloadDotNetWatcher.cs (5)
450
var 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)
497
newAccumulator = 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)
130
var documentIds = updatedSolution.GetDocumentIdsWithFilePath(changedFile.
FilePath
);
145
_logger.LogDebug("Could not find document with path '{FilePath}' in the workspace.", changedFile.
FilePath
);
155
var newText = await GetSourceTextAsync(changedFile.
FilePath
, oldText.Encoding, oldText.ChecksumAlgorithm, cancellationToken);
HotReload\ScopedCssFileHandler.cs (3)
23
if (!file.
FilePath
.EndsWith(".razor.css", StringComparison.Ordinal) &&
24
!file.
FilePath
.EndsWith(".cshtml.css", StringComparison.Ordinal))
30
logger.LogDebug("Handling file change event for scoped css file {FilePath}.", file.
FilePath
);
HotReload\StaticFileHandler.cs (1)
28
logger.LogDebug("Handling file change event for static content {FilePath}.", file.
FilePath
);
Watch\BuildEvaluator.cs (1)
116
if (changedFile != null && IsMsBuildFileExtension(changedFile.Value.
FilePath
))
Watch\DotNetWatcher.cs (1)
146
context.Logger.LogInformation("File changed: {Path}", changedFile.Value.Item.
FilePath
);
Watch\MsBuildFileSetFactory.cs (1)
120
Debug.Assert(fileItems.Values.All(f => Path.IsPathRooted(f.
FilePath
)), "All files should be rooted paths");