-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] Azure sdk references packages that live in the .NET 6+ ref and runtime packs. #28477
Comments
Label prediction was below confidence level |
//cc: @tg-msft, @KrzysztofCwalina |
Thank you for your feedback. Tagging and routing to the team members best able to assist. |
@AraHaan your screen shots are for older versions of Azure.Core, you are showing version 1.6.0. We have added a net5.0 target in newer versions (https://www.nuget.org/packages/Azure.Core/1.24.0), however some of those might also be able to be pruned further. @ericstj is there any recommendations for packages like ours here? Should we add net6.0 specific target to eliminate some of these dependencies? |
cc @ViktorHofer I do think it's good to target newer frameworks and reduce your dependency set. For any packages which have been absorbed into the framework this is safe and compatible. You can also benefit by using the new API and functionality available in those new frameworks. PS: The only place to be careful about this is with packages like |
Ah I see that 1.6.0 is old, should I update my PR to SqlClient to also update the Azure SDK packages it uses? |
Signed-off-by: AraHaan <[email protected]> Fixes Azure#28477. Fixes Azure#28492. Fixes Azure#28577.
Is there any update on this? It's high priority as it's breaking and blocking us from building our app We are using efcore, and efcore is dependent on Azure.Identity and azure.identity is dependent on azure.core. But that's still using 1.24 We are facing a version mismatch and we can't build our app anymore
the interesting part is that Microsoft.EntityFramework.SqlServer is dependent on both 1.24 and 1.33. |
This is still work in progress due to the PR having some conflicts. |
In addition to these being unnecessary - many of the packages referenced by Azure.Core are now out of date and no longer being serviced at the major version referenced. This will make it a significant change should any of these packages require critical updates. I'd recommend that Azure.Core update the latest available LTS for all of these packages. That should be the latest major version. |
Hi @AraHaan, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Library name and version
Azure.Core 1.24.0
Describe the bug
The package references packages that are outdated and are a part of the ref and runtime packs for .NET 6+. As such I think they can be removed for those who target .NET 6 or newer TFMs. It also gets annoying when they get copied to our output directories as well. Azure.Identity is an dependency of SqlClient which is an dependency of efcore that is used on my projects.
Why remove the packages highlighted below? Well they could be/are outdated, also they use an unneeded amount of network usage to download them (replacing them with the copies from the ref packs for building should reduce network usage for metered networks, yes some programmers use metered networks).
What can be removed:
With this cleanup it would make applications using efcore being able to have smaller build output directories which would make the typical dev using efcore more happy 😄. Also keep up the good work on the azure sdk.
Expected behavior
For these packages to not be in the reference to Azure.Identity and Azure.Core (or the entire SDK even) as they are either could be/are outdated (the ref packs are a much better way to get the references at least for .NET 6+) to also reduce the amount of files copied to the consumer's build output directories (for those who do FDD deployments and not SCD deployments).
Actual behavior
The packages highlighted above are referenced needlessly which then gets copied into consumer project's build output directories when they are not self contained.
Reproduction Steps
Create a new project that references EFCore for sql server and make an db context to an test database, then build the program and look at it's build output directory (do not deploy as self contained).
Environment
Visual Studio 2022 17.2 Preview 5.
The text was updated successfully, but these errors were encountered: