DotNetWhere 1.0.2
dotnet tool install --global DotNetWhere --version 1.0.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local DotNetWhere --version 1.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotNetWhere&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DotNetWhere --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet where - a .NET global tool to show information about where a NuGet package is installed. |
Fork of dotnet why but with advanced features. |
Installation
Download and install the .NET 6/8 SDK.
Once installed, run the following command:
> dotnet tool install -g DotNetWhere
Example
> dotnet where -p Newtonsoft.Json
DotNetWhere.Core
net6.0
NuGet.ProjectModel: 6.8.0
NuGet.DependencyResolver.Core: 6.8.0
NuGet.Protocol: 6.8.0
NuGet.Packaging: 6.8.0
Newtonsoft.Json: 13.0.3
net8.0
NuGet.ProjectModel: 6.8.0
NuGet.DependencyResolver.Core: 6.8.0
NuGet.Protocol: 6.8.0
NuGet.Packaging: 6.8.0
Newtonsoft.Json: 13.0.3
> dotnet where -d E:\dev\DotNetWhere -p System.* -V /^(?!.*6\.0\.0).*
DotNetWhere.Application
net6.0
Spectre.Console.Cli: 0.48.0
Spectre.Console: 0.48.0
System.Memory: 4.5.5
DotNetWhere.Core
net6.0
NuGet.ProjectModel: 6.8.0
NuGet.DependencyResolver.Core: 6.8.0
NuGet.Configuration: 6.8.0
System.Security.Cryptography.ProtectedData: 4.4.0
NuGet.Protocol: 6.8.0
NuGet.Packaging: 6.8.0
NuGet.Configuration: 6.8.0
System.Security.Cryptography.ProtectedData: 4.4.0
System.Security.Cryptography.Pkcs: 6.0.4
Usage
All query arguments are optional:
> dotnet where --help
USAGE:
List all packages in solution in current directory with compact format:
DotNetWhere --format Compact
List packages in target net8.0 that name matches System.* and version is not
6.0.0 :
DotNetWhere -p System.* -t net8.0 -V !6.0.0
-d, --dir Solution directory. When not passed: current
directory.
-p, --package The NuGet package name. ***
-V, --package-version The NuGet package version. ***
-t, --dotnet-target .Net target version. ***
-f, --format Output format. Default: Color. Valid values: Color,
Compact, Yaml, Json
-o, --output Output file.
--help Display this help screen.
--version Display version information.
* When not passed: any.
** Can be mask or regex.
*** search expression can start from `!` or `/`.
`!` is for `not`.
Everything afer it will be considered as a `not match` expression.
The app looks for everything that does not match expression after
`!`.
`/` is for `regular expression`.
The app looks for everything that match regular expression after
`/`.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
See https://github.com/tiomny/DotNetWhere/releases for release notes.