Aiursoft.NugetNinja 8.0.4

dotnet tool install --global Aiursoft.NugetNinja --version 8.0.4
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 Aiursoft.NugetNinja --version 8.0.4
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Aiursoft.NugetNinja&version=8.0.4
nuke :add-package Aiursoft.NugetNinja --version 8.0.4

Nuget Ninja

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.NugetNinja) NuGet version (Aiursoft.NugetNinja.PrBot) ManHours

Nuget Ninja is a tool for detecting dependencies of .NET projects. It analyzes the dependency structure of .NET projects in a directory and builds a directed acyclic graph. And will give some modification suggestions for Nuget packages, so that the dependencies of the project are as concise and up-to-date as possible.

Install

Run the following command to install this tool:

dotnet tool install --global Aiursoft.NugetNinja

Usage

After getting the binary, run it directly in the terminal.

C:\workspace> ninja.exe

Description:
  Nuget Ninja, a tool for detecting dependencies of .NET projects.

Usage:
  ninja [command] [options]

Options:
  -p, --path <path> (REQUIRED)   Path of the projects to be changed.
  -d, --dry-run                  Preview changes without actually making them
  -v, --verbose                  Show detailed log
  --allow-preview                Allow using preview versions of packages from Nuget.
  --nuget-server <nuget-server>  If you want to use a customized nuget server instead of the official nuget.org, you can set it with a value like: https://nuget.myserver/v3/index.json
  --token <token>                The PAT token which has privilege to access the nuget server. See: https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate
  --version                      Show version information
  -?, -h, --help                 Show help and usage information

Commands:
  all, all-officials  The command to run all officially supported features.
  fill-properties     The command to fill all missing properties for .csproj files.
  remove-deprecated   The command to replace all deprecated packages to new packages.
  upgrade-pkg         The command to upgrade all package references to possible latest and avoid conflicts.
  clean-pkg           The command to clean up possible useless package references.
  clean-prj           The command to clean up possible useless project references.

Sample

Generate suggestions for the current workspace without modifying local files:

C:\workspace> ninja.exe all --path . --dry-run

Fill missing properties for current workspace:

C:\workspace> ninja.exe fill-properties --path .

Run all plugins under the current folder:

C:\workspace> ninja.exe all --path .

How to build and run locally

Requirements about how to develop.

  1. Execute dotnet restore to restore all .NET dependencies.
  2. Execute the following command to build the app:
    • dotnet publish -c Release -r win-x64 on Windows.
    • dotnet publish -c Release -r linux-x64 on Linux.
    • dotnet publish -c Release -r osx-x64 on Mac OS.
  3. Execute dotnet run to run the app

Run in Microsoft Visual Studio

  1. Open the .sln file in the project path.
  2. Press F5.

Contributing

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you have push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your personal workflow cruft out of sight.

We're also interested in your feedback for the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Product Compatible and additional computed target framework versions.
.NET 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.

Version Downloads Last updated
8.0.4 263 3/28/2024
8.0.3 319 3/17/2024
8.0.2 353 2/28/2024
8.0.1 544 2/19/2024
8.0.0 526 2/19/2024
7.0.48 507 2/15/2024
7.0.47 697 2/5/2024
7.0.46 460 2/4/2024
7.0.45 582 2/2/2024
7.0.44 615 2/2/2024
7.0.43 567 1/30/2024
7.0.39 437 1/30/2024
7.0.38 630 1/30/2024
7.0.37 759 1/4/2024
7.0.36 717 12/30/2023
7.0.35 824 12/24/2023
7.0.34 815 12/23/2023
7.0.33 608 12/22/2023
7.0.32 890 12/16/2023
7.0.31 868 12/12/2023
7.0.30 836 12/12/2023
7.0.29 917 12/12/2023
7.0.28 887 12/6/2023
7.0.27 958 12/6/2023
7.0.26 770 12/6/2023
7.0.25 822 12/6/2023
7.0.19 791 12/1/2023
7.0.18 814 11/26/2023
7.0.17 1,044 11/24/2023
7.0.16 792 11/22/2023
7.0.15 772 11/12/2023
7.0.14 919 11/2/2023
7.0.13 947 11/2/2023
7.0.12 844 11/2/2023
7.0.11 928 11/2/2023
7.0.10 806 11/2/2023
7.0.9 1,044 11/2/2023
7.0.8 873 10/31/2023
7.0.7 986 10/6/2023
7.0.6 942 10/6/2023
7.0.5 901 9/23/2023
7.0.4 802 9/18/2023
7.0.3 1,008 9/14/2023
7.0.2 831 9/13/2023
7.0.1 1,061 9/13/2023
7.0.0 908 9/6/2023
0.0.23 871 9/5/2023
0.0.22 1,063 8/23/2023
0.0.21 1,189 8/22/2023
0.0.20 1,071 8/20/2023
0.0.19 1,031 8/20/2023
0.0.18 1,083 8/20/2023
0.0.17 1,185 8/20/2023
0.0.16 1,040 8/20/2023
0.0.15 963 8/20/2023
0.0.14 1,085 8/20/2023
0.0.13 1,259 7/20/2023
0.0.12 1,067 6/24/2023
0.0.11 977 6/11/2023
0.0.10 1,178 6/11/2023
0.0.9 1,043 6/10/2023
0.0.8 1,026 6/10/2023
0.0.7 1,236 6/7/2023
0.0.6 1,025 5/25/2023
0.0.5 976 5/17/2023
0.0.3 1,301 5/17/2023
0.0.2 1,073 5/11/2023
0.0.1 1,246 8/30/2022