Fix QuickstartClient path (#528)

* Fix QuickstartClient path

* Make dotnet run work instead of F5
This commit is contained in:
Stephen Toub 2025-06-19 15:35:13 -04:00 • committed by GitHub
commit 521bb7bde2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ static (string command, string[] arguments) GetCommandAndArguments(string[] args
{
[var script] when script.EndsWith(".py") => ("python", args),
[var script] when script.EndsWith(".js") => ("node", args),
[var script] when Directory.Exists(script) || (File.Exists(script) && script.EndsWith(".csproj")) => ("dotnet", ["run", "--project", script, "--no-build"]),
_ => ("dotnet", ["run", "--project", "../../../../QuickstartWeatherServer", "--no-build"])
[var script] when Directory.Exists(script) || (File.Exists(script) && script.EndsWith(".csproj")) => ("dotnet", ["run", "--project", script]),
_ => ("dotnet", ["run", "--project", "../QuickstartWeatherServer"])
};
}