private static string SubstituteHomePath()

in src/Aspire.Hosting.AWS/Utils/ProjectUtilities.cs [85:100]


    private static string SubstituteHomePath(string path)
    {
        var userProfileEnvironmentVariable = "%USERPROFILE%";
        var userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
        if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
        {
            userProfileEnvironmentVariable = "$(HOME)";
        }

        if (path.StartsWith(userProfilePath))
        {
            return path.Replace(userProfilePath, userProfileEnvironmentVariable);
        }

        return path;
    }