zcsizmadia commented on pull request #1536:
URL: https://github.com/apache/avro/pull/1536#issuecomment-1050063877


   Option 2. SImilar to the previous one. This can be added to a common.targets 
file or Directory.build.props:
   
   ```
   <!-- Push NuGet package to nuget.org -->
   <Target Name="PushToNuGet" Condition="'$(Configuration)' == 'Release' AND 
'$(PublishPackage)' == 'true'" AfterTargets="Pack">
       <Exec Command="dotnet nuget push 
$(MSBuildProjectDirectory)\bin\$(Configuration)\$(AssemblyName).$(Version).nupkg
 -s https://api.nuget.org/v3/index.json -k $(NuGetKey)"/>
   </Target>
   ```
   
   ```
   dotnet pack -c Release -p:Version=1.2.3 -p:PublishPackage=true 
-p:NuGetKey=YOUR_KEY
   ```
   This will create  the nupkgs and publish them with the same command


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to