Skip to content

mac problem #192

@ignatandrei

Description

@ignatandrei
        // Expand the default paths for tools on different platforms.
        var home = Environment.ExpandEnvironmentVariables("%HOME%");
        if(System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
        {
            home = Environment.ExpandEnvironmentVariables("%USERPROFILE%");
        }

        var process = new Process()
        {
            StartInfo = new ProcessStartInfo()
            {
                WorkingDirectory = $"./{functionId}",
                RedirectStandardOutput = true,
                RedirectStandardError = true,
                UseShellExecute = false,
                CreateNoWindow = true,
                FileName=$"{home}/.dotnet/tools/hypar", // Use the full expanded path to your tool.
                Arguments="init"
            }
        };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions