diff --git a/src/Aspire.Hosting.NodeJs/Aspire.Hosting.NodeJs.csproj b/src/Aspire.Hosting.NodeJs/Aspire.Hosting.NodeJs.csproj index a63cdd62db..80c9a16bc6 100644 --- a/src/Aspire.Hosting.NodeJs/Aspire.Hosting.NodeJs.csproj +++ b/src/Aspire.Hosting.NodeJs/Aspire.Hosting.NodeJs.csproj @@ -11,10 +11,6 @@ 95 - - - - diff --git a/src/Aspire.Hosting.Python/Aspire.Hosting.Python.csproj b/src/Aspire.Hosting.Python/Aspire.Hosting.Python.csproj index 86a216c7fb..236db07cb8 100644 --- a/src/Aspire.Hosting.Python/Aspire.Hosting.Python.csproj +++ b/src/Aspire.Hosting.Python/Aspire.Hosting.Python.csproj @@ -8,10 +8,6 @@ 80 - - - - diff --git a/src/Aspire.Hosting/Aspire.Hosting.csproj b/src/Aspire.Hosting/Aspire.Hosting.csproj index a8656ac860..5dfd5010d9 100644 --- a/src/Aspire.Hosting/Aspire.Hosting.csproj +++ b/src/Aspire.Hosting/Aspire.Hosting.csproj @@ -26,7 +26,6 @@ - diff --git a/src/Aspire.Hosting/PublicAPI.Unshipped.txt b/src/Aspire.Hosting/PublicAPI.Unshipped.txt index 5ff55e84ce..28b4e5314f 100644 --- a/src/Aspire.Hosting/PublicAPI.Unshipped.txt +++ b/src/Aspire.Hosting/PublicAPI.Unshipped.txt @@ -223,6 +223,7 @@ Aspire.Hosting.LaunchSettings Aspire.Hosting.LaunchSettings.LaunchSettings() -> void Aspire.Hosting.LaunchSettings.Profiles.get -> System.Collections.Generic.Dictionary! Aspire.Hosting.LaunchSettings.Profiles.set -> void +Aspire.Hosting.Utils.PathNormalizer Aspire.Hosting.Utils.VolumeNameGenerator static Aspire.Hosting.ApplicationModel.CommandResults.Success() -> Aspire.Hosting.ApplicationModel.ExecuteCommandResult! static Aspire.Hosting.ApplicationModel.ResourceExtensions.GetEnvironmentVariableValuesAsync(this Aspire.Hosting.ApplicationModel.IResourceWithEnvironment! resource, Aspire.Hosting.DistributedApplicationOperation applicationOperation = Aspire.Hosting.DistributedApplicationOperation.Run) -> System.Threading.Tasks.ValueTask!> @@ -254,6 +255,7 @@ static Aspire.Hosting.ResourceBuilderExtensions.WithHealthCheck(this Aspire.H static Aspire.Hosting.ResourceBuilderExtensions.WithHttpHealthCheck(this Aspire.Hosting.ApplicationModel.IResourceBuilder! builder, string? path = null, int? statusCode = null, string? endpointName = null) -> Aspire.Hosting.ApplicationModel.IResourceBuilder! static Aspire.Hosting.ResourceBuilderExtensions.WithHttpsHealthCheck(this Aspire.Hosting.ApplicationModel.IResourceBuilder! builder, string? path = null, int? statusCode = null, string? endpointName = null) -> Aspire.Hosting.ApplicationModel.IResourceBuilder! static Aspire.Hosting.ResourceBuilderExtensions.WithRelationship(this Aspire.Hosting.ApplicationModel.IResourceBuilder! builder, Aspire.Hosting.ApplicationModel.IResource! resource, string! type) -> Aspire.Hosting.ApplicationModel.IResourceBuilder! +static Aspire.Hosting.Utils.PathNormalizer.NormalizePathForCurrentPlatform(string! path) -> string! static Aspire.Hosting.Utils.VolumeNameGenerator.Generate(Aspire.Hosting.ApplicationModel.IResourceBuilder! builder, string! suffix) -> string! static readonly Aspire.Hosting.ApplicationModel.KnownResourceStates.Exited -> string! static readonly Aspire.Hosting.ApplicationModel.KnownResourceStates.FailedToStart -> string! diff --git a/src/Shared/PathNormalizer.cs b/src/Aspire.Hosting/Utils/PathNormalizer.cs similarity index 62% rename from src/Shared/PathNormalizer.cs rename to src/Aspire.Hosting/Utils/PathNormalizer.cs index 419ad899e0..1d09c2a13f 100644 --- a/src/Shared/PathNormalizer.cs +++ b/src/Aspire.Hosting/Utils/PathNormalizer.cs @@ -3,8 +3,16 @@ namespace Aspire.Hosting.Utils; -internal static class PathNormalizer +/// +/// Utility class for normalizing paths. +/// +public static class PathNormalizer { + /// + /// Normalizes the given path for the current platform. + /// + /// The path to normalize. + /// The normalized path. public static string NormalizePathForCurrentPlatform(string path) { if (string.IsNullOrEmpty(path))