Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to downgrade dependency version of a package in dotnet6

$
0
0

I am working on a .net6 project and using Automapper version 12.0.0.0 in one of the class library(say BusinessLayer), which is working fine.

Now when I add another locally developed (Say Package1) nuget package which has Automapper dependency as >=10.1.1 in the BusinessLayer class library then this Pkg1 package adds Automapper dependency with 12.0.0.0 version. However, this Package1 package is not compatible with Automapper 12.0.0.0 version. How can I downgrade the Automapper dependency of a Package1 to 10.1.1?

<PackageReference Include="AutoMapper" Version="12.0.0" /><PackageReference Include="Package1" Version="4.0.1" />

enter image description here

Can someone help me downgrade the Automapper dependency of a pkg1 to 10.1.1?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>