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

PromptCodeReceiver causes FileNotFoundException on .Net Core, Windows #813

Closed
Phoenix- opened this issue Aug 14, 2016 · 1 comment
Closed
Assignees

Comments

@Phoenix-
Copy link

Phoenix- commented Aug 14, 2016

Brief research shows that it's impossible to use Process.Start(url) in .net core to open default browser.
Trivial possible fix:
Replace line 44:
Process.Start(authorizationUrl);
with

Console.WriteLine("Visit the following url: ");
Console.WriteLine(authorizationUrl);

We interact with user via console anyway, so instead of assuming there's a possibility of opening url on any given platform it might be better to ask the user to interact with server.

@Phoenix- Phoenix- changed the title PromptCodeReceiver causes FileNotFoundException on .Net Core PromptCodeReceiver causes FileNotFoundException on .Net Core, Windows Aug 14, 2016
@chrisdunelm
Copy link
Contributor

Thanks for filing this issue. Yes, we're aware of the problem (but had failed to create an issue for it - oops) and expect to fix it before the next release. Probably using the fix you suggest.

chrisdunelm added a commit to chrisdunelm/google-api-dotnet-client that referenced this issue Aug 15, 2016
In .NET Core prompt the user to browse to the authentication URL, rather than launch a browser. Opening a URL as a process is not supported on Core. Fixes googleapis#813
chrisdunelm added a commit to chrisdunelm/google-api-dotnet-client that referenced this issue Aug 15, 2016
In .NET Core prompt the user to browse to the authentication URL, rather than launch a browser. Opening a URL as a process is not supported on Core. Fixes googleapis#813
chrisdunelm added a commit that referenced this issue Aug 15, 2016
In .NET Core prompt the user to browse to the authentication URL, rather than launch a browser. Opening a URL as a process is not supported on Core. Fixes #813
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

2 participants