Recently I had to create a nuget and push it

Luckily things worked smoother than I expected

  1. Downloaded nuget.exe

  2. Created “nuget” folder with

  • “build” folder. –> this in turn contained 2 things
    • targets file
    • “intenttriggering” folder containing the model files
  • nuspec file

nuget pack

D:\nuget>C:\Users\agoswami\Downloads\nuget.exe pack NLU.IntentTriggering.Model.nuspec
Attempting to build package from ‘NLU.IntentTriggering.Model.nuspec’.
Successfully created package ‘D:\nuget\NLU.IntentTriggering.Model.1.2.0.nupkg’.

nuget push –> luckily it worked smoothly. dunno how

D:\nuget>C:\Users\agoswami\Downloads\nuget.exe push -Source “TScience.NLU” -ApiKey az NLU.IntentTriggering.Model.1.2.0.nupkg

Pro tip:

might hit an error :

The specified source 'TScience.NLU_TMP1' is invalid. Provide a valid source.

In that case, we need to ensure we have added the source first

E:\tmp>C:\Users\agoswami\Downloads\nuget.exe push -Source "TScience.NLU_TMP1" -ApiKey az nlu.intenttriggering.model.1.2.0.nupkg

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s