File: src\Shared\PathNormalizer.cs | Web Access |
Project: src\src\Aspire.Hosting.NodeJs\Aspire.Hosting.NodeJs.csproj (Aspire.Hosting.NodeJs) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Aspire.Hosting.Utils; internal static class PathNormalizer { public static string NormalizePathForCurrentPlatform(string path) { if (string.IsNullOrEmpty(path)) { return path; } // Fix slashes path = path.Replace('\\', Path.DirectorySeparatorChar).Replace('/', Path.DirectorySeparatorChar); return Path.GetFullPath(path); } } |