Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Package and publish to Nuget platform with one click

Shulou Source: shulou.com Published: 2022-06-01 03:09:48 10月05日 Update

The goal is to automatically release a new version to the nuget platform as soon as a command is executed

The first step is to register an account on the official website of nuget.

There will be an APIKEY.

The figure below is as follows

Add a Gruntfile.js to the project

Then copy the following code

You can also perform grunt tasks in vs

So how did the nuspec file come out?

From the command prompt, go to the directory where the .csproj file is located, run the nuget spec command, and the .nuspec file will be generated.

Then modify the generated nuspec file before using grunt to publish the nuget package

You can refer to my file.

The reason why I made a mistake here is that I have already released the same version can not be sent many times.

Orm framework

Tags: File command generation platform code task reason project location prompt frame directory target account reference prompt run one button Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi NVidia Shulou Technology Linux