Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/core/tools/dotnet-nuget-why.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## Synopsis

```dotnetcli
dotnet nuget why <PROJECT|SOLUTION> <PACKAGE> [-f|--framework <FRAMEWORK>]
dotnet nuget why [<PROJECT|SOLUTION>] <PACKAGE> [-f|--framework <FRAMEWORK>]
dotnet nuget why -h|--help
```
Expand All @@ -38,7 +38,10 @@

- **`PROJECT|SOLUTION`**

The project or solution file to operate on. If a directory is specified, the command searches the directory for a project or solution file. If more than one project or solution is found, an error is thrown.
The project or solution file to operate on.

Check failure on line 41 in docs/core/tools/dotnet-nuget-why.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces

docs/core/tools/dotnet-nuget-why.md:41:46 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
If a directory is specified, the command searches the directory for a project or solution file.
If more than one project or solution is found, an error is thrown.
If no value is provided, the current working directory is used by default.

- **`PACKAGE`**

Expand All @@ -54,22 +57,22 @@

## Examples

- Show the dependency graph for the package "System.Text.Json" for a given solution:
- Show the dependency graph for the package "System.Text.Json":

```dotnetcli
dotnet nuget why .\DotnetNuGetWhyPackage.sln System.Text.Json
dotnet nuget why System.Text.Json
```
![Example: Solution with multiple projects](media/dotnet-nuget-why/dotnet-nuget-why-solution-with-multiple-projects.png)
- Show the dependency graph for the package "System.Text.Json" for a single project:
- Show the dependency graph for the package "System.Text.Json" for a specific project:
```dotnetcli
dotnet nuget why .\DotnetNuGetWhyPackage.csproj System.Text.Json
dotnet nuget why path/to/DotnetNuGetWhyPackage.csproj System.Text.Json
```
- Show the dependency graph for a specific target framework:
```dotnetcli
dotnet nuget why .\DotnetNuGetWhyPackage.csproj System.Text.Json --framework net6.0
dotnet nuget why System.Text.Json --framework net6.0
```
Loading