129 references to LocalPath
dotnet-svcutil-lib (16)
CommandProcessorOptions.cs (3)
149TryFromFile(fileUri.LocalPath, out var fileOptions) && fileOptions.GetOptions().Count() > 0) 170fileOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(fileUri.LocalPath))); 736var 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)
98if (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.AspNetCore.Authentication.Test (7)
CookieTests.cs (7)
1187Assert.Equal("/Account/Login", location.LocalPath); 1201Assert.Equal("/Account/AccessDenied", location.LocalPath); 1264Assert.Equal("/page", location.LocalPath); 1268Assert.Equal("/login/page", location.LocalPath); 1471Assert.Equal("/denied", location.LocalPath); 1496Assert.Equal("/base/page", location.LocalPath); 1638Assert.Equal("/base/denied", location.LocalPath);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
AuthMiddlewareAndFilterTestBase.cs (2)
268Assert.Equal("/Account/Login", response.Headers.Location.LocalPath); 274Assert.Equal("/Account/AccessDenied", response.Headers.Location.LocalPath);
AuthMiddlewareUsingRequireAuthTest.cs (1)
76Assert.Equal("/Home/Login", response.Headers.Location.LocalPath);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.cs (1)
568Path = _parsedPath = uri.LocalPath;
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyMiddleware.cs (1)
46if (context.Request.Path.Equals(new Uri(_options.Value.ServerUrl).LocalPath))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
162return uri.IsFile ? uri.LocalPath : assembly.Location;
Microsoft.CodeAnalysis.LanguageServer (5)
CustomExportAssemblyLoader.cs (1)
91var codeBasePath = codeBaseUri.LocalPath;
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
108var filePath = changedFile.Uri.GetRequiredParsedUri().LocalPath;
HostWorkspace\OpenProjectsHandler.cs (1)
34return _projectSystem.OpenProjectsAsync(request.Projects.SelectAsArray(p => p.LocalPath));
HostWorkspace\OpenSolutionHandler.cs (1)
33return _projectSystem.OpenSolutionAsync(request.Solution.LocalPath);
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (1)
44return PathUtilities.IsSameDirectoryOrChildOf(project.FilePath!, workspacePath.GetRequiredParsedUri().LocalPath);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (1)
186var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.DocumentUri.ParsedUri.LocalPath).ToImmutableArray();
Extensions\ProtocolConversions.cs (1)
189return uri.IsFile ? uri.LocalPath : uri.AbsoluteUri;
Handler\References\FindUsagesLSPContext.cs (1)
221DisplayPath = location?.DocumentUri.GetRequiredParsedUri().LocalPath,
LanguageInfoProvider.cs (1)
53var localPath = requestUri.ParsedUri.LocalPath;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (11)
Diagnostics\AdditionalFileDiagnosticsTests.cs (4)
46], results.Select(r => $"{r.Uri.GetRequiredParsedUri().LocalPath}: [{string.Join(", ", r.Diagnostics!.Select(d => d.Code?.Value?.ToString()))}]")); 73Assert.Equal(@"C:\Test.txt", results[1].Uri.GetRequiredParsedUri().LocalPath); 111Assert.Equal(@"C:\Test.txt", results[1].Uri.GetRequiredParsedUri().LocalPath); 114Assert.Equal(@"C:\Test.txt", results[4].Uri.GetRequiredParsedUri().LocalPath);
Diagnostics\PullDiagnosticTests.cs (1)
1454Assert.False(results.Any(r => r.TextDocument!.DocumentUri.GetRequiredParsedUri().LocalPath.Contains(".ts")));
ProtocolConversionsTests.cs (5)
49Assert.Equal(filePath, uri.GetRequiredParsedUri().LocalPath); 76Assert.Equal(filePath.Replace('/', '\\'), uri.LocalPath); 90Assert.Equal(Path.GetFullPath(filePath).Replace('/', '\\'), uri.LocalPath); 110Assert.Equal(filePath, uri.LocalPath); 165Assert.Equal(filePath, uri.LocalPath);
SpellCheck\SpellCheckTests.cs (1)
377Assert.True(results.All(r => r.TextDocument!.DocumentUri.GetRequiredParsedUri().LocalPath == "C:\\C.cs"));
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
LspFileChangeWatcherTests.cs (2)
65Assert.Equal(tempDirectory.Path, watcher.GlobPattern.Second.BaseUri.Second.GetRequiredParsedUri().LocalPath); 96Assert.Equal("Z:\\", watcher.GlobPattern.Second.BaseUri.Second.GetRequiredParsedUri().LocalPath);
Microsoft.DotNet.SignCheckTask (2)
src\SignCheck.cs (2)
205string downloadPath = Path.Combine(_appData, Path.GetFileName(uriResult.LocalPath)); 477string downloadPath = Path.Combine(_appData, Path.GetFileName(uri.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.VisualStudio.LanguageServices (2)
NavigateTo\RoslynSearchResultPreviewPanel.cs (1)
33Contract.ThrowIfFalse(uri.IsAbsoluteUri, $"{nameof(TextDocumentLocation)} assumes the URI is an absolute URI and invokes {nameof(Uri.LocalPath)}.");
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
60return uri.LocalPath;
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (2)
77.Where(f => !_secondaryBufferFileExtensions.Any(ext => f.LocalPath.EndsWith(ext))) 80var projectInfo = CreateProjectInfo(project.Name, project.Language, [.. files.Select(f => f.LocalPath)], _remoteLanguageServiceWorkspace.Services.SolutionServices);
Client\RemoteLanguageServiceWorkspace.cs (1)
290var document = GetOrAddDocument(location.DocumentUri.GetRequiredParsedUri().LocalPath);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\XamlRequestExecutionQueue.cs (1)
29_projectService.TrackOpenDocument(documentUri.ParsedUri.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\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)
331object lexicon = _spellerInterop.LoadDictionary(pathUri.LocalPath); 1584System.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.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
177_requestUri.Authority, _requestUri.LocalPath, _requestUri.Query);
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.Windows.Forms (6)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
475_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);