Question: how nuget resolve package dependencies?
Answer: When the NuGet restore process runs prior to a build, it resolves dependencies first in memory, then writes the resulting graph to a file called project. assets. json . It also writes the resolved dependencies to a lock file named packages.