GithubHelp home page GithubHelp logo

Nuget Ninja

MIT licensed Build status NuGet version (Aiursoft.NugetNinja) NuGet version (Aiursoft.NugetNinja.PrBot)

Nuget Ninjia 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.

Nuget Ninja's Projects

admin.core icon admin.core

Admin后端,前后端分离的权限管理系统。支持多租户、数据权限、动态Api、任务调度、OSS文件上传、滑块拼图验证、国内外主流数据库自由切换和动态高级查询。基于.Net跨平台开发的WebApi。集成统一认证授权、事件总线、数据验证、分布式缓存、分布式事务、Ip限流

agileconfig icon agileconfig

基于.NET Core开发的轻量级分布式配置中心 / .NET Core lightweight configuration server

aiurdrive icon aiurdrive

AiurDrive is a file-store for all kinds of users to share files easily.

aspect icon aspect

A simple rule based engine to ensure that cloud resources meet organisational requirements

blog icon blog

🤣本项目有不同开发版本,最新版底层基于 abp vNext 搭建和免费开源跨平台框架 .NET5 进行开发,使用 MongoDB 存储数据,Redis 缓存数据。项目采用前后端分离的模式进行开发,API 遵循 RESTful 接口规范,页面使用 Blazor 进行开发,可作为 .NET Core 入门项目进行学习。If you liked `Blog` project or if it helped you, please give a star ⭐️ for this repository. 👍👍👍

cake icon cake

:cake: Cake (C# Make) is a cross platform build automation system.

cameravoyeur icon cameravoyeur

摄像头黑入器。(基于RickAstley论文实现)

cap icon cap

Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern

cupboard icon cupboard

A framework for provisioning local environments to a desired state, using the .NET SDK.

dotlang icon dotlang

This app helps you generate translated .cshtml files and resources files for ASP.NET Core App

dotnet-counters-ui icon dotnet-counters-ui

Multiplatform UI tool for observing .NET counters, written and maintained by an awesome contributors from Dotnetos community🌶

dotnet-depguard icon dotnet-depguard

Go-depguard-inspired simple blacklist implementation for .NET NuGet package dependencies

dotnet-opa-wasm icon dotnet-opa-wasm

Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from .NET Core

dotnetspider icon dotnetspider

DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework

dpb icon dpb

Dynamic Project Builder

edgenekoapi icon edgenekoapi

Api backend for personal usage & fun. Powered by asp.net core

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.