This tool will assist you when packaging your code into NuGet modules (nupkg). If you have a team repository for instance, this tool could help you packaging your shared dlls, whether you have the source code (csproj) or only the dlls.
- You will need to download nuget.exe v3.5.0 (official NuGet website). Unzip it where you wish to.
- Have
.NET 4.5.2
installed - Open the
App.config
file (located under NugetPackagerAssistant) and set these 3 variables nugetDirectory
: folder containing your previously unzipped nuget.exe - (ex : C:\Programs\Nuget)outputDirectory
: folder that will contain the all of the nupkg that will be generatedpublishDirectory
: the shared folder that contains all of your NuGet packages. This is basically your team repository (it could be on a NAS for instance).
- After building the project, you can directly run the NugetPackagerAssistant.exe generated file but don't forget to set the options (see the Prerequisites section)
- You can call the NugetPackagerAssistant.exe with arguments instead of configuring the App.config. If you do, you must provide exactly 3 arguments in that specific order : nugetDirectory outputDirectory publishDirectory
There are currently 2 modes when it comes to create a Nuget package
- When promped, press "A" then paste your csproj path
pathTo/your/csproj/project.csproj
- Finally, choose whether or not you'd like to publish the generated nupkg
- When promped, press "B" then paste the uri of a folder containing the dlls you'd wish to NuGet
pathTo/your/dlls
- Finally, choose whether or not you'd like to publish the generated nupkg
If you'd like to add a new feature or to report a bug, please create an issue. Feel free to suggest a pull request too :)