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] How can I opt out of including GUI libraries in my console projects? #4523

Closed
R2D221 opened this issue Jan 17, 2024 · 1 comment
Closed

Comments

@R2D221
Copy link

R2D221 commented Jan 17, 2024

Library version used

4.56.0

.NET version

.net8.0-windows

Scenario

Other - please specify

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

I'm using the SqlClient library provided by https://www.nuget.org/packages/Microsoft.Data.SqlClient/5.1.4 . Apparently MSAL has been a dependency for this new SqlClient despite me not explicitly using it to connect to my SQL Server instances.

Everything was fine and dandy until this new version, which now takes a dependency on the WebView2 component. My projects, despite being console apps, use the target framework net8.0-windows because I use a couple Windows-specific APIs. MSAL didn't cause me any troubles until SqlClient decided to upgrade to version 4.56.0 which brings the unwanted packages.

I reported this in the SqlClient's repo (dotnet/SqlClient#2298), but apparently it was closed as not planned, bringing me here instead.

Relevant code snippets

No response

Expected behavior

Not to include any GUI dependencies on console projects.

Identity provider

Other

Regression

No response

Solution and workarounds

No response

@R2D221 R2D221 added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Jan 17, 2024
@pmaytak
Copy link
Contributor

pmaytak commented Jan 18, 2024

@R2D221 This is a known behavior. We're looking into this. See the updates in #4468.

Closing this as a duplicate of #4468.

@pmaytak pmaytak closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2024
@pmaytak pmaytak removed untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Jan 18, 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

2 participants