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

[Bug] OpenLinuxBrowser() fails when executed in a .NET Framework app running in mono #5075

Open
amaher-ms opened this issue Jan 12, 2025 · 0 comments
Labels
needs attention Delete label after triage tracked-ado

Comments

@amaher-ms
Copy link

Library version used

4.64

.NET version

.NET Framework

Scenario

Other - please specify

Is this a new or an existing app?

None

Issue description and reproduction steps

ProcessStartInfo.UseShellExecute's default value is different in .NET Core and .NET Framework (false and true, respectively). UseShellExecute=true is incompatible with the ProcessStartInfo.RedirectStandard* flags. OpenLinuxBrowser() sets the redirection flags to true when launching the browser process but does not explicitly set UseShellExecute. This causes the Process.Start call to fail when run in a .NET Framework process like mono.

I encountered this issue when trying to use Azure Artifacts Credential Provider to authenticate with a vcpkg NuGet binary cache. vcpkg uses mono to run the .NET framework build of NuGet.exe on Linux. I've confirmed that adding UseShellExecute=false fixes the problem.

Relevant code snippets

No response

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

@amaher-ms amaher-ms added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Jan 12, 2025
@ashok672 ashok672 added tracked-ado and removed untriaged Do not delete. Needed for Automation labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs attention Delete label after triage tracked-ado
Projects
None yet
Development

No branches or pull requests

2 participants