{"id":18243180,"url":"https://github.com/microsoft/nugetninja","last_synced_at":"2025-04-06T11:09:03.596Z","repository":{"id":49379554,"uuid":"517562550","full_name":"microsoft/NugetNinja","owner":"microsoft","description":"A tool for detecting dependencies of .NET projects.","archived":false,"fork":false,"pushed_at":"2024-11-13T05:43:05.000Z","size":270,"stargazers_count":89,"open_issues_count":12,"forks_count":10,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-06T11:08:45.474Z","etag":null,"topics":["cli","csproj","dependencies","dotnet","nuget"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-25T07:29:30.000Z","updated_at":"2025-04-04T01:58:23.000Z","dependencies_parsed_at":"2024-12-24T10:16:39.278Z","dependency_job_id":"16dfbe95-0e82-4ccc-a7d9-d3275e9c88e1","html_url":"https://github.com/microsoft/NugetNinja","commit_stats":{"total_commits":109,"total_committers":7,"mean_commits":"15.571428571428571","dds":0.4128440366972477,"last_synced_commit":"b9ee4762ab1e965f6b0635df74a24b31b75fcf06"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2FNugetNinja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2FNugetNinja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2FNugetNinja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2FNugetNinja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/NugetNinja/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","csproj","dependencies","dotnet","nuget"],"created_at":"2024-11-05T08:03:34.550Z","updated_at":"2025-04-06T11:09:03.579Z","avatar_url":"https://github.com/microsoft.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuget Ninja (A Hackthon project)\n\n![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)\n![Build Status](https://github.com/microsoft/NugetNinja/actions/workflows/build.yml/badge.svg)\n\n(Nuget Ninjia was not built or released as a production product. Instead it was our hackthon project while we prefer opensource. It was not officialy release by Microsoft as a product.)\n\n(Non-production! This project is still working in progress...)\n\nNuget 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.\n\nThe tool can also generate a list of all top level dependencies into a CSV file. This CSV includes the nuget description and avoids issues with `shproj` and `dotnet list packages`.\n\n## Usage\n\nAfter getting the binary, run it directly in the terminal.\n\n```cmd\nC:\\workspace\u003e ninja.exe\n\nDescription:\n  Nuget Ninja, a tool for detecting dependencies of .NET projects.\n\nUsage:\n  Microsoft.NugetNinja [command] [options]\n\nOptions:\n  -p, --path \u003cpath\u003e (REQUIRED)   Path of the projects to be changed.\n  --nuget-server \u003cnuget-server\u003e  If you want to use a customized nuget server instead of the official nuget.org, \n  --token \u003ctoken\u003e                The PAT token which has privilege to access the nuget server.\n  -d, --dry-run                  Preview changes without actually making them\n  -v, --verbose                  Show detailed log\n  -?, -h, --help                 Show help and usage information\n\nCommands:\n  all, all-officials  The command to run all officially supported features.\n  remove-deprecated   The command to replace all deprecated packages to new packages.\n  upgrade-pkg         The command to upgrade all package references to possible latest and avoid conflicts.\n  clean-pkg           The command to clean up possible useless package references.\n  clean-prj           The command to clean up possible useless project references.\n  list-packages       The command to generate a csv file with all direct packages and nuget.org descriptions. Dry run will only list the packages on the console.\n```\n\n## How to build and run locally\n\nRequirements about how to develop.\n\n* [.NET SDK 8.0](https://github.com/dotnet/core/tree/master/release-notes)\n\n1. Execute `dotnet restore` to restore all .NET dependencies.\n2. Execute the following command to build the app:\n   * `dotnet publish -c Release -r win-x64   --self-contained` on Windows.\n   * `dotnet publish -c Release -r linux-x64 --self-contained` on Linux.\n   * `dotnet publish -c Release -r osx-x64   --self-contained` on Mac OS.\n3. Execute `dotnet run` to run the app\n\n## Run in Microsoft Visual Studio\n\n1. Open the `.sln` file in the project path.\n2. Press `F5`.\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft \ntrademarks or logos is subject to and must follow \n[Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fnugetninja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fnugetninja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fnugetninja/lists"}