NuGet Package upload one-stop service

Source: Internet
Author: User

Yesterday wrote to build their own NuGet program source, but the leader is not satisfied with the packaging upload ~ ~, but only to climb the point of thinking, here reference to other posts, but still want to write down.

  First step, create a batch file

In the file, there are three commands:

NuGet Pack%1  d:\up_personal\develop nuget  pushD:\up_ personal\develop\%~2http://yournugetsiite:1011D: D:\up_personal\nugets\

Among them, other blog post said D:\up_Personal\develop is the local temporary folder, D:\up_Personal\nugets is the local package source, but I found that the last D:\up_Personal\nugets and no package, instead D:\up_ Personal\develop this inside has ~ ~, may I understand the question ...

The first one is packing.

The second one is to upload the packaged files.

The third is to move the packaged files to the local package source

With a temporary folder is because there is no way to directly get packaged after the package file contains the version, so in the upload with wildcards instead, so as not to the previous version of the package file also uploaded, do a temporary folder to do the relay

 Step two, configure VS

"Tools"-"External tools"

      

Title: Feel free to write,

Command: Find the first-step write batch file,

Parameters: $ (ProjectDir) $ (projectfilename) $ (TargetName), copy as much as possible, and the third $ front is empty.

will use the Output window to tick, so it is easy to see the process of publishing upload.

Then open the "tools" and you'll see

To this, can say has been completed, but some people want to add to the right button, then continue ...

Find "Tools"-"Custom", select the Commands tab, select "Project and solution context menu | project" under "context menu"

Select "Add Command"-"Tools"-"Select an external command, and then you can" modify the selection ", let yourself see more clearly, I write the updatenugets

Finally in the solution of the project right-click to see, you can try it, refer to the article address: http://www.cnblogs.com/geyunfei/p/3615683.html.
Here, the NuGet task is done!

NuGet Package upload one-stop service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.