133 references to LocalPath
dotnet-svcutil-lib (16)
CommandProcessorOptions.cs (3)
148TryFromFile(fileUri.LocalPath, out var fileOptions) && fileOptions.GetOptions().Count() > 0) 169fileOptions.ResolveFullPathsFrom(new DirectoryInfo(Path.GetDirectoryName(fileUri.LocalPath))); 735var 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)
95if (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)
1180Assert.Equal("/Account/Login", location.LocalPath); 1194Assert.Equal("/Account/AccessDenied", location.LocalPath); 1257Assert.Equal("/page", location.LocalPath); 1261Assert.Equal("/login/page", location.LocalPath); 1464Assert.Equal("/denied", location.LocalPath); 1489Assert.Equal("/base/page", location.LocalPath); 1631Assert.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 (2)
BuildEventFileInfo.cs (1)
88_file = (e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath;
ElementLocation\XmlDocumentWithLocation.cs (1)
134adjustedLocalPath = uri.LocalPath;
Microsoft.Build.Tasks.Core (4)
DownloadFile.cs (1)
327?? Path.GetFileName(response.RequestMessage.RequestUri.LocalPath); // Otherwise attempt to get a file name from the URI
GetSDKReferenceFiles.cs (1)
1099DateTime currentCodeLastWriteTime = File.GetLastWriteTimeUtc(codeBase.LocalPath);
ManifestUtil\XmlUtil.cs (2)
152if (!uri.LocalPath.StartsWith(Path.GetTempPath(), StringComparison.Ordinal)) 180s = new FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
Microsoft.CodeAnalysis.LanguageServer (2)
CustomExportAssemblyLoader.cs (1)
84var codeBasePath = codeBaseUri.LocalPath;
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (1)
43return PathUtilities.IsSameDirectoryOrChildOf(project.FilePath!, workspacePath.LocalPath);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (1)
167var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.Uri.LocalPath).ToImmutableArray();
Extensions\ProtocolConversions.cs (1)
186return uri.IsFile ? uri.LocalPath : uri.AbsoluteUri;
Handler\References\FindUsagesLSPContext.cs (1)
220DisplayPath = location?.Uri.LocalPath,
LanguageInfoProvider.cs (1)
53var localPath = uri.LocalPath;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
ProtocolConversionsTests.cs (5)
49Assert.Equal(filePath, uri.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);
Microsoft.DotNet.SignCheck (2)
SignCheck.cs (2)
205string downloadPath = Path.Combine(_appData, Path.GetFileName(uriResult.LocalPath)); 469string 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.Maui.Controls.Compatibility (4)
iOS\Platform.cs (4)
638 if (uri.LocalPath.StartsWith("/local")) 641 filePath = IOPath.Combine(libraryPath, uri.LocalPath.Substring(7)); 643 else if (uri.LocalPath.StartsWith("/temp")) 645 filePath = IOPath.Combine(IOPath.GetTempPath(), uri.LocalPath.Substring(6));
Microsoft.VisualStudio.LanguageServices (3)
NavigateTo\RoslynSearchResultPreviewPanel.cs (1)
34Contract.ThrowIfFalse(uri.IsAbsoluteUri, $"{nameof(TextDocumentLocation)} assumes the URI is an absolute URI and invokes {nameof(Uri.LocalPath)}.");
Progression\GraphNavigatorExtension.cs (1)
77sourceLocation.FileName.LocalPath,
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
60return uri.LocalPath;
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
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).ToImmutableArray(), _remoteLanguageServiceWorkspace.Services.SolutionServices);
MSBuild (3)
ProjectSchemaValidationHandler.cs (3)
136(e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath, 149(e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath, 261filePath = (new Uri(args.Exception.SourceUri)).LocalPath;
PresentationCore (19)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
171return File.OpenRead(_absoluteLocation.LocalPath);
MS\Internal\FontCache\DWriteFactory.cs (3)
64localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName + Path.DirectorySeparatorChar; 68localPath = fontCollectionUri.LocalPath; 72if (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)
773fileName = fontSource.Uri.LocalPath;
MS\Internal\FontCache\FontSource.cs (4)
149return Directory.GetLastWriteTimeUtc(_fontUri.LocalPath); 162fileMapping.OpenFile(_fontUri.LocalPath); 224fileMapping.OpenFile(_fontUri.LocalPath); 235fileMapping.OpenFile(_fontUri.LocalPath);
MS\Internal\FontCache\FontSourceCollection.cs (4)
72string localPath = _uri.LocalPath; 95files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 100files = Directory.GetFiles(_uri.LocalPath); 105files = new string[1] {_uri.LocalPath};
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
120docstring = uri.LocalPath;
System\Windows\Input\CursorConverter.cs (1)
178return new Cursor(finalUri.LocalPath);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1047bitmapStream = new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read); 1231return new System.IO.FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
115string cacheFolder = MS.Win32.WinInet.InternetCacheFolder.LocalPath;
System\Windows\Media\MediaPlayerState.cs (1)
875toOpen = absoluteUri.LocalPath;
PresentationFramework (7)
MS\Internal\AppModel\AppSecurityManager.cs (1)
206System.IO.Path.GetExtension(destinationUri.LocalPath)
System\Windows\Application.cs (2)
2422string fileInBamlConvert = loadBamlSyncInfo.BamlUri.LocalPath; 2423string fileCurrent = curComponentUri.LocalPath;
System\Windows\Documents\NLGSpellerInterop.cs (1)
322return LoadDictionary(item.LocalPath);
System\Windows\Documents\Speller.cs (2)
332object lexicon = _spellerInterop.LoadDictionary(pathUri.LocalPath); 1588System.IO.File.Delete(tempLocationUri.LocalPath);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
241return LoadDictionaryImpl(item.LocalPath);
PresentationUI (20)
MS\Internal\Documents\Application\DocumentProperties.cs (2)
99_filename = Path.GetFileName(_uri.LocalPath); 346string filePath = _uri.LocalPath;
MS\Internal\Documents\Application\DocumentStream.cs (14)
111string copiesPath = copiesToken.Location.LocalPath; 118sourcePath = _xpsFileToken.Location.LocalPath; 268string sourcePath = _xpsFileToken.Location.LocalPath; 269string tempPath = tempToken.Location.LocalPath; 320string path = fileToken.Location.LocalPath; 366string sourcePath = xpsFileToken.Location.LocalPath; 427string path = _xpsFileToken.Location.LocalPath; 537string original = _original._xpsFileToken.Location.LocalPath; 694string path = _xpsFileToken.Location.LocalPath; 751string tempPath = location.LocalPath; 821path = _xpsFileToken.Location.LocalPath; 860string sourceFile = _xpsFileToken.Location.LocalPath; 861string targetFile = _original._xpsFileToken.Location.LocalPath; 970if (!Path.GetExtension(location.LocalPath).Equals(
MS\Internal\Documents\Application\FilePresentation.cs (1)
47save.FileName = fileToken.Location.LocalPath;
MS\Internal\Documents\RightsManagementManager.cs (1)
1449string templateLocalPath = templateFilename.LocalPath;
MS\Internal\Documents\RMPublishingDialog.cs (2)
382string templateLocalPath = _templatePath.LocalPath; 1011return 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\Process.Unix.cs (2)
645if (uri.IsFile && uri.Host == "" && File.Exists(uri.LocalPath)) 647resolvedFilename = 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.Windows.Forms (6)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
477_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);