Luna.DevTools.LocalNugets
1.0.0
dotnet tool install --global Luna.DevTools.LocalNugets --version 1.0.0
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 Luna.DevTools.LocalNugets --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Luna.DevTools.LocalNugets&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Luna.DevTools.LocalNugets --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Local Nugets Cli Tool
This is a simple command line tool that allows you to install and manage nuget packages from a local directory. It is useful when you want to test changes nuget locally before publishing it to nuget repository.
Installation
You can install the tool using the following command:
dotnet tool install -g Luna.DevTools.LocalNugets
Usage
Copy nuget package to local directory
Nuspec files are required to build nuget packages. To copy nuspec files from nuget global cache to a local directory run the following command:
local-nugets copy-nuspec --package-name <package-name>
Options:
--package-name
- The name of the package to copy nuspec file.--project-path
- The directory of the project. Default is the current directory.
Update version of nuget package
To update the version of a nuget package in the local directory run the following command:
local-nugets update-nuspec --package-name <package-name>
Options:
--package-name
- The name of the package to update version.--project-path
- The directory of the project. Default is the current directory.
Pack nuget package
To pack a nuget package from the local project run the following command:
local-nugets pack --package-name <package-name> --local-packages-path <local-packages-path>
Options:
--package-name
- The name of the package to pack.--project-path
- The directory of the project. Default is the current directory.--local-packages-path
- The directory to save the nuget package.
Important: Pack do not build the project. You need to build the project before packing the nuget package.
Product | Versions 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 |
---|---|---|
1.0.0 | 75 | 5/10/2024 |