69 references to TrimStart
aspire (3)
Commands\GroupedHelpWriter.cs (1)
331return longName.TrimStart('-');
Projects\AppHostServerClosureSnapshots.cs (1)
312.TrimStart('/');
src\Shared\DashboardUrls.cs (1)
186var trimmedPath = path.TrimStart('/');
aspire-managed (1)
NuGet\Commands\NuGetPackageAssetResolver.cs (1)
444return path.Replace('\\', '/').TrimStart('/');
Aspire.Acquisition.Tests (1)
Scripts\Common\ScriptHostFixture.cs (1)
172var requestPath = ctx.Request.Url?.AbsolutePath.TrimStart('/');
Aspire.Dashboard (4)
Components\Dialogs\ExemplarsDialog.razor.cs (1)
72formattedValue += Content.Instrument.Unit.TrimStart('{').TrimEnd('}');
Components\Layout\DesktopNavMenu.razor.cs (1)
57var trimmedPath = result.AbsolutePath.TrimStart('/');
Model\DefaultInstrumentUnitResolver.cs (1)
18var (unit, isRateUnit) = OtlpUnits.GetUnit(instrument.Unit.TrimStart('{').TrimEnd('}'));
src\Shared\DashboardUrls.cs (1)
186var trimmedPath = path.TrimStart('/');
Aspire.Hosting.Kubernetes.Tests (1)
HelmVersionValidatorTests.cs (1)
57var trimmed = oldVersion.TrimStart('v').Split('+')[0];
Aspire.Playground.Tests (3)
AppHostTests.cs (3)
131_testOutput.WriteLine($"Calling endpoint '{client.BaseAddress}{path.TrimStart('/')} for resource '{resource}' in app '{appHost.AppHostAssembly}'"); 138throw new XunitException($"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' timed out", tre); 141Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' returned status code {response.StatusCode}");
dotnet (2)
Commands\Solution\List\SolutionListCommand.cs (1)
46.Select(folder => Path.GetDirectoryName(folder.Path.TrimStart('/')))];
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
134var commandOptionNames = commandOptions.Select(o => o.Name.TrimStart('-')).ToHashSet(StringComparer.OrdinalIgnoreCase);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
46.Select(folder => Path.GetDirectoryName(folder.Path.TrimStart('/')))];
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
41var trimmed = nameBasedOnArgument.TrimStart('_');
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
124return $"{baseUri}{path.TrimStart('/')}";
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
104RelativePath = routeEndpoint.RoutePattern.RawText?.TrimStart('/'),
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternFactory.cs (1)
1089var rawText = $"{left.RawText?.TrimEnd('/')}/{right.RawText?.TrimStart('/')}";
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
101trimmedLine = trimmedLine.TrimStart('*');
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
41var trimmed = nameBasedOnArgument.TrimStart('_');
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateMD5SumsFile.cs (1)
41string relativePath = file.ItemSpec.Substring(RootDirectory.Length).TrimStart(Path.DirectorySeparatorChar).Replace('\\', '/');
src\CreateRpmPackage.cs (1)
164string normalizedPath = $"./{ghostFile.ItemSpec.TrimStart('/')}";
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
79let filePath = $"{extensionDir}\\{fileName.TrimStart('/').Replace("/", "\\")}"
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsSrvServiceEndpointProviderFactory.cs (1)
20private readonly string? _querySuffix = options.CurrentValue.QuerySuffix?.TrimStart('.') ?? GetKubernetesHostDomain();
Microsoft.Extensions.Telemetry.Tests (5)
Http\HttpRouteFormatterTests.cs (5)
102Assert.Equal(httpPath.TrimStart('/'), formattedPath); 108Assert.Equal(httpPath.TrimStart('/'), formattedPath); 114Assert.Equal(httpPath.TrimStart('/'), formattedPath); 120Assert.Equal(httpPath.TrimStart('/'), formattedPath); 126Assert.Equal(httpPath.TrimStart('/'), formattedPath);
Microsoft.Maui.Essentials (2)
FileSystem\FileSystem.shared.cs (2)
165 extension = extension.TrimStart('*'); 166 extension = extension.TrimStart('.');
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (2)
911.TrimStart(separator); 1543.TrimStart(separator);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Data\StaticWebAsset.cs (2)
911.TrimStart(separator); 1543.TrimStart(separator);
Data\StaticWebAssetEndpoint.cs (2)
628? endpoint.Route.Substring(normalizedOldBase.Length).TrimStart('/') 666? property.Value.Substring(normalizedOldBase.Length).TrimStart('/')
GeneratePackageAssetsTargetsFile.cs (1)
30var normalizedPrefix = PackagePathPrefix.Replace("/", "\\").TrimStart('\\');
GenerateStaticWebAssetsPropsFile.cs (1)
157static string Normalize(string relativePath) => relativePath.Replace("/", "\\").TrimStart('\\');
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
106static string Normalize(string relativePath) => relativePath.Replace("/", "\\").TrimStart('\\');
Legacy\ValidateStaticWebAssetsUniquePaths.cs (2)
70private static string GetWebRootPath(string webRoot, string basePath, string relativePath) => $"{webRoot}/{Path.Combine(basePath, relativePath.TrimStart('.').TrimStart('/')).Replace("\\", "/").Trim('/')}";
Microsoft.SourceLink.GitWeb (1)
GetSourceLinkUrl.cs (1)
28var trimLeadingSlash = relativeUrl.TrimStart('/');
Microsoft.TemplateEngine.Core (2)
Expressions\Shared\XmlStyleConverters.cs (2)
35char c = (char)short.Parse(hex.TrimStart('0'), NumberStyles.HexNumber); 42char c = (char)short.Parse(dec.TrimStart('0'), NumberStyles.Integer);
Microsoft.TemplateEngine.Edge (3)
Mount\FileSystem\FileSystemMountPoint.cs (3)
43string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/')); 55string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/')); 61string fullPath = Path.Combine(MountPointRootPath, path.TrimStart('/'));
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Nuget.Frameworks\NuGetFrameworkFactory.cs (2)
187var versionString = versionPart!.Split('=')[1].TrimStart('v'); 227var versionString = versionPart!.Split('=')[1].TrimStart('v');
NuGet.Commands (1)
CommandRunners\PackCommandRunner.cs (1)
748path = path.Substring(index + basePath.Length).TrimStart(Path.DirectorySeparatorChar);
NuGet.Common (1)
PathUtil\PathUtility.cs (1)
517return filename.TrimStart('/');
NuGet.Configuration (1)
Utility\FileSystemUtility.cs (1)
99return fullPath.Substring(root.Length).TrimStart(Path.DirectorySeparatorChar);
NuGet.Frameworks (2)
NuGetFrameworkFactory.cs (2)
184var versionString = versionPart!.Split('=')[1].TrimStart('v'); 224var versionString = versionPart!.Split('=')[1].TrimStart('v');
NuGet.PackageManagement (5)
Utility\FileSystemUtility.cs (5)
188trimmedPaths.Add(filePath.Substring(root.Length).TrimStart(Path.DirectorySeparatorChar)); 192trimmedPaths.Add(filePath.TrimStart(Path.DirectorySeparatorChar)); 491return fullPath.TrimStart(Path.DirectorySeparatorChar); 493return fullPath.Substring(root.Length).TrimStart(Path.DirectorySeparatorChar); 498return fullPath.Substring(root.Length).TrimStart(Path.DirectorySeparatorChar);
NuGet.Packaging (1)
PackageCreation\Authoring\PackageBuilder.cs (1)
1050packagePath = fullPath.Substring(searchDirectory.Length).TrimStart(Path.DirectorySeparatorChar);
NuGet.Protocol (3)
PackagesFolder\NuGetv3LocalRepository.cs (1)
184var versionPart = fullVersionDir.Substring(packageIdRoot.Length).TrimStart(Path.DirectorySeparatorChar);
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (1)
461var relativeUri = _queryBuilder.BuildFindPackagesByIdUri(id).TrimStart('/');
Resources\PackageUpdateResource.cs (1)
853if (string.IsNullOrEmpty(baseUri.AbsolutePath.TrimStart('/')) && !noServiceEndpoint)
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2783return TrimStart((char)trimRune.Value);
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Emitter.cs (1)
1603string localVariableName = $"__value_{propertyGenSpec.NameSpecifiedInSourceCode.TrimStart('@')}";
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
507string keyTipEnd = keyTip.TrimStart('0');