Package and publish to Nuget platform with one click
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