How can I add nupkg files?

Hello. How can I add my nupkg files locally? I don’t want to upload them to nuget and I don’t want to download them from my server. Can I upload nupkg files (or folder) to bitrise and use them?

Did you ever find a solution to your issue? I also would like to just upload and use an nupkg file from my repo.

@FlynnCanadaFZ not sure why this wasn’t discussed here, I believe the discussion continued on our internal chat or on Slack… In any case: you can install it the same way you’d on your Mac in the Terminal / from a Script.

Simply add a Script step to the workflow and run the command you want to.

For a specific command see this Stack Overflow thread for example, or check the nuget docs (e.g. by running nuget command without any parameters in your Mac’s Terminal, to print all available commands): https://stackoverflow.com/questions/16587291/extracting-nupkg-files-using-command-line

The accepted solution is:

nuget install MyPackage -Source %cd% -OutputDirectory packages

will unpack it into the target directory.

(source: https://stackoverflow.com/a/29020778/974381 )

And of course if you’d have any questions just let us know! :slight_smile: