132 references to LocalPath
aspire (2)
Projects\AppHostServerProject.cs (1)
41normalizedPath = new Uri(normalizedPath).LocalPath;
Projects\DotNetBasedAppHostServerProject.cs (1)
59_appPath = new Uri(_appPath).LocalPath;
Aspire.Dashboard (1)
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
322FileName: CalculateFileName(Path.GetFileName(result.LocalPath), uriPart.MimeType!));
dotnet-svcutil-lib (16)
CommandProcessorOptions.cs (3)
150TryFromFile(fileUri.LocalPath, out var fileOptions) && fileOptions.GetOptions().Count() > 0) 171fileOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(fileUri.LocalPath))); 742var inputFiles = Metadata.MetadataFileNameManager.ResolveFiles(metadataUri.LocalPath).Select(f => f.FullName);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
39filePath = uri.LocalPath;
Metadata\MetadataDocumentLoader.cs (7)
103var fileInfoList = MetadataFileNameManager.ResolveFiles(metadataUri.LocalPath); 147var fileInfoList = MetadataFileNameManager.ResolveFiles(metadataUri.LocalPath); 190await LoadAsync(fileUri.LocalPath, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 216var fileInfoList = MetadataFileNameManager.ResolveFiles(serviceUri.LocalPath); 380await LoadAsync(schemaUri.LocalPath, baseUrl, basePath, cancellationToken).ConfigureAwait(false); 381resolvedLocation = schemaUri.LocalPath; 522string fullFileName = schemaUri.IsFile ? schemaUri.LocalPath : schemaLocation;
Metadata\MetadataDocumentSaver.cs (2)
141if (MetadataFileNameManager.TryCreateUri(location, out Uri locationUri) && MetadataFileNameManager.TryResolveFiles(locationUri.LocalPath, out var files)) 306this.FileNameMgr.AddFileName(this.DirectoryPath, Path.GetFileName(uri.LocalPath), extension);
Shared\Options\OptionValueParser.cs (1)
110value = (uri.IsAbsoluteUri && uri.IsFile ? uri.LocalPath : uri.OriginalString).Replace("\\", "/");
Shared\Options\UpdateOptions.cs (1)
101if (input.IsAbsoluteUri && input.IsFile && PathHelper.GetRelativePath(input.LocalPath, optionsFileDirectory, out relPath))
Tool.cs (1)
217var displayUri = serviceDescriptor.MetadataFiles.Count() == 1 ? serviceDescriptor.MetadataFiles.First().LocalPath : SR.WsdlOrSchemaFilesMsg;
Microsoft.Build (2)
ElementLocation\XmlDocumentWithLocation.cs (1)
136adjustedLocalPath = uri.LocalPath;
src\msbuild\src\Shared\BuildEventFileInfo.cs (1)
88_file = (e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath;
Microsoft.Build.Tasks.Core (4)
DownloadFile.cs (1)
331: Path.GetFileName(requestUri.LocalPath); // Otherwise attempt to get a file name from the URI
GetSDKReferenceFiles.cs (1)
1099DateTime currentCodeLastWriteTime = FileSystems.Default.GetLastWriteTimeUtc(codeBase.LocalPath);
ManifestUtil\XmlUtil.cs (2)
154if (!uri.LocalPath.StartsWith(Path.GetTempPath(), StringComparison.Ordinal)) 182s = new FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
Microsoft.Deployment.DotNet.Releases (2)
ReleaseFile.cs (1)
38public string FileName => Path.GetFileName(Address.LocalPath);
Utils.cs (1)
58using Stream source = File.Open(address.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
Microsoft.DotNet.Cli.Utils (1)
PathUtility.cs (1)
241return resultUri.LocalPath;
Microsoft.Extensions.DependencyModel (1)
DependencyContextLoader.cs (1)
165return codeBase.LocalPath;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
24var uri = new Uri(assemblyFileLocation).LocalPath;
NoRemoteCallNotSeekableHandler.cs (1)
27var uri = new Uri(assemblyFileLocation).LocalPath;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NoRemoteCallHandler.cs (1)
20var uri = new Uri(assemblyFileLocation).LocalPath;
Microsoft.Extensions.Http.Resilience (2)
Internal\UriExtensions.cs (2)
25if (currentUri.Scheme == hostUri.Scheme && currentUri.Host == hostUri.Host && currentUri.Port == hostUri.Port && hostUri.LocalPath == "/") 32Path = currentUri.LocalPath,
Microsoft.Maui.Controls (1)
Shell\ShellUriHandler.cs (1)
239 string localPath = request.LocalPath;
Microsoft.NET.Sdk.Publish.Tasks (3)
Tasks\MsDeploy\ImportParameterFile.cs (1)
191logger.LogError(sourceUri.LocalPath, ex.LineNumber, ex.LinePosition, ex.Message);
Tasks\Xdt\TransformXml.cs (1)
147localPath = sourceUri.LocalPath;
WebConfigTelemetry.cs (1)
108projectFullPathConstructed = Path.GetFullPath((new Uri(projectFullPathConstructed)).LocalPath);
Microsoft.TemplateEngine.Edge (5)
Mount\Archive\ZipFileMountPointFactory.cs (3)
35if (!environmentSettings.Host.FileSystem.FileExists(uri.LocalPath)) 43archive = new ZipArchive(environmentSettings.Host.FileSystem.OpenRead(uri.LocalPath), ZipArchiveMode.Read, false); 53IFile? file = parent.Root.FileInfo(uri.LocalPath);
Mount\FileSystem\FileSystemMountPointFactory.cs (2)
29if (parent != null || !environmentSettings.Host.FileSystem.DirectoryExists(uri.LocalPath)) 35mountPoint = new FileSystemMountPoint(environmentSettings, mountPointUri, uri.LocalPath);
Microsoft.TestPlatform.CrossPlatEngine (1)
PostProcessing\PostProcessingTestRunAttachmentsProcessingEventsHandler.cs (1)
68_consoleOutput.Information(false, ConsoleColor.Gray, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
140var filepath = uriDataAttachment.Uri.LocalPath;
Microsoft.TestPlatform.Utilities (4)
CodeCoverageDataAttachmentsHandler.cs (4)
59if (attachment.Uri.LocalPath.EndsWith(CoverageFileExtension, StringComparison.OrdinalIgnoreCase) || 60attachment.Uri.LocalPath.EndsWith(XmlFileExtension, StringComparison.OrdinalIgnoreCase)) 62coverageReportFilePaths.Add(attachment.Uri.LocalPath); 66coverageOtherFilePaths.Add(attachment.Uri.LocalPath);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Converter.cs (2)
461string sourceFile = uriDataAttachment.Uri.LocalPath; 515string sourceFile = uriDataAttachment.Uri.IsAbsoluteUri ? uriDataAttachment.Uri.LocalPath : uriDataAttachment.Uri.ToString();
Microsoft.Web.XmlTransform (1)
XmlTransformationLogger.cs (1)
228fileName = uri.LocalPath;
NuGet.Common (2)
PathUtil\PathUtility.cs (1)
293return resultUri.LocalPath;
UriUtility.cs (1)
81return uri.LocalPath;
NuGet.Protocol (3)
Resources\PackageUpdateResource.cs (2)
683var root = sourceUri.LocalPath; 798var root = sourceuri.LocalPath;
Utility\LocalFolderUtility.cs (1)
843return new FileInfo(fileUri.LocalPath);
PresentationCore (19)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
170return File.OpenRead(_absoluteLocation.LocalPath);
MS\Internal\FontCache\DWriteFactory.cs (3)
63localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName + Path.DirectorySeparatorChar; 67localPath = fontCollectionUri.LocalPath; 71if (string.Equals((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath, Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\FontCacheUtil.cs (1)
769fileName = fontSource.Uri.LocalPath;
MS\Internal\FontCache\FontSource.cs (4)
148return Directory.GetLastWriteTimeUtc(_fontUri.LocalPath); 161fileMapping.OpenFile(_fontUri.LocalPath); 223fileMapping.OpenFile(_fontUri.LocalPath); 234fileMapping.OpenFile(_fontUri.LocalPath);
MS\Internal\FontCache\FontSourceCollection.cs (4)
71string localPath = _uri.LocalPath; 94files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 99files = Directory.GetFiles(_uri.LocalPath); 104files = new string[1] {_uri.LocalPath};
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
119docstring = uri.LocalPath;
System\Windows\Input\CursorConverter.cs (1)
177return new Cursor(finalUri.LocalPath);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1041bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read); 1220return new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
114string cacheFolder = MS.Win32.WinInet.InternetCacheFolder.LocalPath;
System\Windows\Media\MediaPlayerState.cs (1)
866toOpen = absoluteUri.LocalPath;
PresentationFramework (6)
System\Windows\Application.cs (2)
2345string fileInBamlConvert = loadBamlSyncInfo.BamlUri.LocalPath; 2346string fileCurrent = curComponentUri.LocalPath;
System\Windows\Documents\NLGSpellerInterop.cs (1)
321return LoadDictionary(item.LocalPath);
System\Windows\Documents\Speller.cs (2)
328object lexicon = _spellerInterop.LoadDictionary(pathUri.LocalPath); 1581System.IO.File.Delete(tempLocationUri.LocalPath);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
240return LoadDictionaryImpl(item.LocalPath);
PresentationUI (21)
MS\Internal\Documents\Application\DocumentProperties.cs (2)
98_filename = Path.GetFileName(_uri.LocalPath); 342string filePath = _uri.LocalPath;
MS\Internal\Documents\Application\DocumentStream.cs (15)
103string copiesPath = copiesToken.Location.LocalPath; 110sourcePath = _xpsFileToken.Location.LocalPath; 259string sourcePath = _xpsFileToken.Location.LocalPath; 260string tempPath = tempToken.Location.LocalPath; 312string path = fileToken.Location.LocalPath; 358string sourcePath = xpsFileToken.Location.LocalPath; 416string path = _xpsFileToken.Location.LocalPath; 526string original = _original._xpsFileToken.Location.LocalPath; 681string path = _xpsFileToken.Location.LocalPath; 738string tempPath = location.LocalPath; 807path = _xpsFileToken.Location.LocalPath; 812path = MS.Win32.WinInet.InternetCacheFolder.LocalPath; 846string sourceFile = _xpsFileToken.Location.LocalPath; 847string targetFile = _original._xpsFileToken.Location.LocalPath; 955if (!Path.GetExtension(location.LocalPath).Equals(
MS\Internal\Documents\Application\FilePresentation.cs (1)
46save.FileName = fileToken.Location.LocalPath;
MS\Internal\Documents\RightsManagementManager.cs (1)
1432string templateLocalPath = templateFilename.LocalPath;
MS\Internal\Documents\RMPublishingDialog.cs (2)
379string templateLocalPath = _templatePath.LocalPath; 1001return Path.GetFileNameWithoutExtension(_template.LocalPath);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
55return uri.LocalPath + uri.Fragment;
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
95ApplicationConfigUri = externalConfigUri.LocalPath;
System.Diagnostics.Process (2)
System\Diagnostics\ProcessUtils.Unix.cs (2)
221if (uri.IsFile && uri.Host == "" && File.Exists(uri.LocalPath)) 223resolvedFilename = uri.LocalPath;
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
177_requestUri.Authority, _requestUri.LocalPath, _requestUri.Query);
System.Net.Requests (2)
System\Net\FileWebRequest.cs (1)
148_stream = new WebFileStream(this, _uri.LocalPath, FileMode.Create, FileAccess.Write, FileShare.Read);
System\Net\FileWebResponse.cs (1)
35_stream = new WebFileStream(request, uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, useAsync);
System.Private.Xml (6)
System\Xml\XmlDownloadManager.cs (2)
17return new FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1); 32return Task.FromResult<Stream>(new FileStream(fileUri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1, useAsync: true));
System\Xml\XmlResolver.FileSystemResolver.cs (2)
34return new FileStream(absoluteUri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1); 46return Task.FromResult<object>(new FileStream(absoluteUri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1, useAsync: true));
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
183string lang = collationUri.LocalPath.Substring(1);
System\Xml\Xsl\SourceLineInfo.cs (1)
92return uri.LocalPath;
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
408string path = uri.LocalPath.ToUpperInvariant();
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
779var endpoint = new UnixDomainSocketEndPoint(uriPath.LocalPath);
System.Speech (3)
Internal\ResourceLoader.cs (1)
27string file = uri.IsAbsoluteUri ? uri.LocalPath : uri.OriginalString;
Internal\SrgsParser\XmlParser.cs (1)
48_filename = !uri.IsAbsoluteUri || !uri.IsFile ? uri.OriginalString : uri.LocalPath;
Recognition\Grammar.cs (1)
425assembly = Assembly.LoadFrom(uriGrammar.LocalPath);
System.Windows.Extensions (3)
System\Media\SoundPlayer.cs (3)
142FileInfo fi = new FileInfo(_uri.LocalPath); 192FileInfo fi = new FileInfo(_uri.LocalPath); 220string localPath = _uri.LocalPath;
System.Windows.Forms (6)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
474_localImageStreamReader = new StreamReader(uri.LocalPath);
System\Windows\Forms\Help\Help.cs (5)
120string? localPath = (file is not null && file.IsFile) ? file.LocalPath : url; 216string? executable = file.IsFile ? FindExecutableInternal(file.LocalPath.ToString()) : null; 254string localPath = file.LocalPath + file.Fragment; 278string localPath = file.LocalPath + file.Fragment; 301string ext = Path.GetExtension(file is null ? url : file.LocalPath + file.Fragment).ToLower(CultureInfo.InvariantCulture);
vstest.console (1)
Internal\ConsoleLogger.cs (1)
695var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath);
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
695var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath);