Skip to content

The WorkingDirectory option does not support relative paths #116

Description

@Bartleby2718

The following code works fine on LINQPad on Windows:

void Main()
{
	Command.Run(
		@"C:\Program Files\dotnet\dotnet.exe",
		new[] { "--version" })
		.GetOutputAndErrorLines()
		.Dump();
}

but the following fails:

void Main()
{
	Command.Run(
		@".\dotnet.exe",
		new[] { "--version" },
		o => o.WorkingDirectory(@"C:\Program Files\dotnet\"))
		.GetOutputAndErrorLines()
		.Dump();
}

Is this a bug or an expected behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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