DotNetWhy 2.1.0
dotnet tool install --global DotNetWhy --version 2.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local DotNetWhy --version 2.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotNetWhy&version=2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DotNetWhy --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
![]() |
|---|
dotnet why - a .NET global tool to show information about why a NuGet package is installed |
Installation
Download and install the .NET 6/8 SDK.
Once installed, run the following command:
> dotnet tool install -g DotNetWhy
Example
> dotnet why Newtonsoft.Json
Why...?
* is the *Newtonsoft.Json* package
* in the C:\DotNetWhy directory
Answer:
* DotNetWhy [2]
** DotNetWhy.Core [2/2]
*** net6.0 [1/2]
1. NuGet.ProjectModel (6.7.0) > NuGet.DependencyResolver.Core (6.7.0) > NuGet.Protocol (6.7.0) >
NuGet.Packaging (6.7.0) > Newtonsoft.Json (13.0.1)
*** net8.0 [1/2]
1. NuGet.ProjectModel (6.7.0) > NuGet.DependencyResolver.Core (6.7.0) > NuGet.Protocol (6.7.0) >
NuGet.Packaging (6.7.0) > Newtonsoft.Json (13.0.1)
Time elapsed: 00:00:03.01
Usage
The mandatory query argument for dotnet why command is package name:
> dotnet why Newtonsoft.Json
At this moment, the only additional optional query argument for dotnet why command is --version|-v option:
> dotnet why Newtonsoft.Json --version 13.0.1
> dotnet why Newtonsoft.Json -v 13.0.2
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 3,024 | 6/14/2024 |
| 2.0.3 | 381 | 11/15/2023 |
| 2.0.2 | 226 | 11/15/2023 |
| 2.0.1 | 184 | 11/14/2023 |
| 2.0.0 | 164 | 11/14/2023 |
| 1.8.0 | 3,765 | 2/26/2023 |
| 1.7.2 | 370 | 2/25/2023 |
| 1.7.1 | 429 | 11/22/2022 |
| 1.7.0 | 431 | 11/11/2022 |
| 1.6.5 | 540 | 9/19/2022 |
| 1.6.4 | 583 | 9/18/2022 |
| 1.6.3 | 552 | 9/17/2022 |
| 1.6.2 | 560 | 9/14/2022 |
| 1.6.1 | 514 | 9/11/2022 |
| 1.6.0 | 521 | 9/11/2022 |
| 1.5.0 | 522 | 9/3/2022 |
See https://github.com/tadamczyk/DotNetWhy/releases for release notes.
