4 writes to Path
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
86Path = System.IO.Path.GetFileName(Path);
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
77s.Path = path;
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
77s.Path = path;
Microsoft.Extensions.Configuration.Xml (1)
XmlConfigurationExtensions.cs (1)
86s.Path = path;
11 references to Path
Aspire.Hosting (2)
DistributedApplicationBuilder.cs (2)
826if (fileSource.Path is null) 831var filePath = fileSource.FileProvider?.GetFileInfo(fileSource.Path).PhysicalPath;
Microsoft.Extensions.Configuration.FileExtensions (9)
FileConfigurationProvider.cs (5)
36() => Source.FileProvider.Watch(Source.Path!), 66=> $"{GetType().Name} for '{Source.Path}' ({(Source.Optional ? "Optional" : "Required")})"; 70IFileInfo? file = Source.FileProvider?.GetFileInfo(Source.Path ?? string.Empty); 136string filePath = file.PhysicalPath ?? Source.Path ?? file.Name; 166var error = new StringBuilder(SR.Format(SR.Error_FileNotFound, Source.Path ?? file?.Name));
FileConfigurationSource.cs (4)
81!string.IsNullOrEmpty(Path) && 82System.IO.Path.IsPathRooted(Path) && 83System.IO.Path.GetDirectoryName(Path) is string directory) 86Path = System.IO.Path.GetFileName(Path);