Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Package and publish to Nuget platform with one click

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report