admin管理员组文章数量:1125094
I have a .NET Framework web app that has service and data layer targeting both .NET 4.7.1 and .NET Core 8.0.
The blackduck identifies a vulnerability in Microsoft.Data.SqlClient
1.1.3. Updates Microsoft.Data.SqlClient
from v1.1.3 to v3.7.1 which works with both .NET 4.7.1, and .NET Core 8.0.
But some project where Microsoft.EntityFrameworkCore.SqlServer
is referenced has a dependency on Microsoft.Data.SqlClient
v1.1.3 which cannot be updated without updating the main library but if I update Microsoft.EntityFrameworkCore.SqlServer
to latest, it won't work with .NET 4.7.1.
I tried adding Microsoft.Data.SqlClient
v3.7.1 this to those project where it referred indirectly but even then project.asset.json
has reference of Microsoft.Data.SqlClient
v1.1.3
Please advise best way to overcome this issue.
I have a .NET Framework web app that has service and data layer targeting both .NET 4.7.1 and .NET Core 8.0.
The blackduck identifies a vulnerability in Microsoft.Data.SqlClient
1.1.3. Updates Microsoft.Data.SqlClient
from v1.1.3 to v3.7.1 which works with both .NET 4.7.1, and .NET Core 8.0.
But some project where Microsoft.EntityFrameworkCore.SqlServer
is referenced has a dependency on Microsoft.Data.SqlClient
v1.1.3 which cannot be updated without updating the main library but if I update Microsoft.EntityFrameworkCore.SqlServer
to latest, it won't work with .NET 4.7.1.
I tried adding Microsoft.Data.SqlClient
v3.7.1 this to those project where it referred indirectly but even then project.asset.json
has reference of Microsoft.Data.SqlClient
v1.1.3
Please advise best way to overcome this issue.
Share Improve this question edited yesterday marc_s 754k183 gold badges1.4k silver badges1.5k bronze badges asked yesterday user3497702user3497702 8414 gold badges16 silver badges28 bronze badges 1- What version of EF Core is this? I'm guessing 3.1 as they have pretty much given up on cross-support between .Net Framework and .Net Core. Your EF Core is likely already out of support. You face possible breaking changes with major version updates and older libraries are going to run foul of this. Your only real option to continue to support the deployment to address updating vulnerable dependencies is to untangle the mess each time. If the EF dependency needs 3.1.7 and another dependency doesn't work with 3.1.7 then you need to find a version of that dependency that does... and so on. – Steve Py Commented yesterday
1 Answer
Reset to default 0Add a direct package dependency to the version of Microsoft.Data.SqlClient you need.
Then Nuget will apply the "Direct Dependency Wins" rule to load right version.
本文标签:
版权声明:本文标题:asp.net mvc - How to update Microsoft.Data.SqlClient 1.1.3 to 3.1.7 referred indirectly Microsoft.EntityFrameworkCore.SqlServer 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736616206a1945475.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论