Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwille/dotnet-depguard
Go-depguard-inspired simple blacklist implementation for .NET NuGet package dependencies
https://github.com/christophwille/dotnet-depguard
csharp dotnet-core nuget tool
Last synced: 3 months ago
JSON representation
Go-depguard-inspired simple blacklist implementation for .NET NuGet package dependencies
- Host: GitHub
- URL: https://github.com/christophwille/dotnet-depguard
- Owner: christophwille
- License: mit
- Created: 2019-11-18T15:44:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T13:39:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-17T17:53:23.901Z (4 months ago)
- Topics: csharp, dotnet-core, nuget, tool
- Language: C#
- Homepage:
- Size: 13.7 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-depguard
Inspired by https://github.com/OpenPeeDeeP/depguard with support for blacklisted dependencies only.
## Usage
Put a .depguard.json file in your project directory (see test-projects for an example). List the NuGet packages that are
disallowed from use in your projects and go.Exit code 0 means you are golden, 1 means you have a blacklisted dependency (and it is printed), -1 is an input error.
## Installation
Download and install the [.NET Core 2.1 SDK](https://www.microsoft.com/net/download) or newer. Once installed, run the following command:
```bash
dotnet tool install --global depguard
```If you already have a previous version of **depguard** installed, you can upgrade to the latest version using the following command:
```bash
dotnet tool update --global depguard
```## Kudos
Built on https://www.nuget.org/packages/DotNetOutdated.Core with also quite a bit of code from the
main project https://github.com/jerriep/dotnet-outdated (project started with issue https://github.com/jerriep/dotnet-outdated/issues/223
in dotnet-outdated repository). Thanks to the hard work from Jerrie, building my minimal product was super-easy.