NuGet: Necessary to reference implicit dependencies?

前端 未结 1 903
暖寄归人
暖寄归人 2021-01-19 02:46

I recently upgraded from ASP.NET Core 2.2. to 3.0. With the changes regarding their meta packages, I\'m now in a state where everything works, but some pretty important pack

相关标签:
1条回答
  • 2021-01-19 03:14

    Is this a reasonable project configuration?

    Yes. Transitive dependencies are absolutely a thing in SDK-style projects, and in my experience they make life much simpler.

    I would only add a redundant NuGet reference in order to specifically upgrade that package - and I'd be careful only do to that for minor releases. For example, if I use package A v1.0 that depends on package B v1.1, I might add a dependency on package B to upgrade to v1.2, but not to v2.0.

    0 讨论(0)
提交回复
热议问题