I'm researching some of the Nuget stuff. I'm wondering if Nuget is appropriate for distributing .exe commands -- or for that matter if Nuget is only intended only to be used for references to a project (of course you could probably also link to an exe instead of a dll -- IIRC). Obviously, I can easily create a console app and then reference Nuget packages, but I'm wondering if this should always be necessary. Also, it seems that unlike gems, there isn't a local repo of gems, so I feel like .exe(s) are not the intended use for Nuget packages, but I don't see why they need to be limited in this fashion -- or am I missing something?
In Visual Studio, use the Help > About Microsoft Visual Studio command and look at the version displayed next to NuGet Package Manager. Alternatively, launch the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console) and enter $host to see information about NuGet including the version.
The NuGet ( nuget.exe ) CLI, provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.
The location of the default global packages folder. The default is %userprofile%\. nuget\packages (Windows) or ~/. nuget/packages (Mac/Linux).
You can include executable programs in you NuGet packages. From Creating and Publishing a Package:
tools - The tools folder of a package is for powershell scripts and programs accessible from the Package Manager Console. After the folder is copied to the target project, it is added to the `$env:Path (PATH) environment variable.
There are a few things you should be aware of, though, if you choose to do this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With