Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The WorkingDirectory option does not support relative paths #116

Closed
Bartleby2718 opened this issue May 19, 2024 · 1 comment
Closed

The WorkingDirectory option does not support relative paths #116

Bartleby2718 opened this issue May 19, 2024 · 1 comment

Comments

@Bartleby2718
Copy link

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?

@Bartleby2718
Copy link
Author

Bartleby2718 commented May 28, 2024

Duplicate of #118

@Bartleby2718 Bartleby2718 reopened this May 28, 2024
@Bartleby2718 Bartleby2718 closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant