Reusable Code for the different flavors of .NET
nuget SetApiKey YOUR_API_KEY
cd /path/to/project
dotnet build --configuration Release
nuget pack -Prop Configuration=Release
dotnet nuget push MyProject.1.2.3.nupkg --source https://api.nuget.org/v3/index.json