mikehadlow / NuGetPlus

Wrapper for NuGet usage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeatable NuGet actions

Frustrated with broken hintpaths and wrong versions of dlls being referenced?

Need to install dependencies from the commandline without firing up Visual Studio?

Want to downgrade the version of a NuGet package you're using without pain?

Want to use NuGet with F# projects without going insane?

This could be the wrapper for you. Code is at an alpha status at the moment.

Command line options available for ngp.exe

--action <string>: Specify an action: Install, Remove, Restore or Update
--projectfile <string>: Path to project file to update.
--packageid <string>: NuGet package id for action.
--version <string>: Optional specific version of package.

Want to call them from code? Reference the dll and be amazed by the fact that the logic works the same way as the command line executable. Astonishing!

let packageName = "myPackage"
let packageVersion = NuGet.SemanticVersion("10.0.2.0")
let projectName = "myProject.fs"

// Methods available are:
InstallReference projectName packageName
InstallReferenceOfSpecificVersion projectName packageName packageVersion
UpdateReference projectName packageName
UpdateReferenceToSpecificVersion projectName packageName packageVersion
RemoveReference projectName packageName
RestoreReferences projectName

Get involved!

Pull requests gratefully accepted. The code was hacked together in a hurry as I learnt how NuGet had been built, so it could definitely be cleaned up.

There's also a bunch of other functionality that is... a bit ropey... in the normal NuGet client, search as package search for packages with a lot of versions that could be added.

The next step on the roadmap is adding solution level update, remove and restore operations.

Continuous Integration provided by CodeBetter

NuGetPlus TeamCity Project

Our build server is kindly provided by CodeBetter and JetBrains.

YouTrack and TeamCity

About

Wrapper for NuGet usage.

License:MIT License