Skip to content

Library for ensuring NuGet packages are cached on the local system

License

Notifications You must be signed in to change notification settings

demaconsulting/NuGetCaching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DemaConsulting NuGet Caching

GitHub forks GitHub stars GitHub contributors License Build Quality Gate Security NuGet

DEMA Consulting library for caching NuGet packages on the local PC.

Features

This library provides:

  • NuGet Package Caching: Ensure NuGet packages are available in the local global packages cache
  • NuGet Configuration Aware: Reads sources and global packages folder from the default NuGet settings, mirroring dotnet CLI behavior
  • Package Source Mapping: Supports NuGet package source mapping configuration
  • Multi-Platform Support: Builds and runs on Windows and Linux
  • Multi-Runtime Support: Targets .NET 8, 9, and 10
  • Documentation Generation: Automated build notes, user guide, code quality reports, requirements, justifications, and trace matrix

Installation

Install the library using the .NET CLI:

dotnet add package DemaConsulting.NuGet.Caching

Usage

using DemaConsulting.NuGet.Caching;

// Ensure a specific NuGet package version is available in the local global packages cache
string packagePath = await NuGetCache.EnsureCachedAsync("Newtonsoft.Json", "13.0.3");
Console.WriteLine($"Package cached at: {packagePath}");

Documentation

Generated documentation includes:

  • Build Notes: Release information and changes
  • User Guide: Comprehensive usage documentation
  • Code Quality Report: CodeQL and SonarCloud analysis results
  • Requirements: Functional and non-functional requirements
  • Requirements Justifications: Detailed requirement rationale
  • Trace Matrix: Requirements to test traceability

License

Copyright (c) DEMA Consulting. Licensed under the MIT License. See LICENSE for details.

By contributing to this project, you agree that your contributions will be licensed under the MIT License.

About

Library for ensuring NuGet packages are cached on the local system

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors