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