A bunch of articles on the web about Jenkins + NET, where only the key points in the configuration are posted,
The first step:
Download Nuget.exe install package from official website to install, if the project is developed with vs2017 need special attention, NuGet must be 4.6+ version above,
This step is key: D:\Jenkins\tools\nuget.exe update-self ensures that the NuGet version is up to date.
Step Two:
There is a bug when compiling a publication with the MSBuild command,
/t:rebuild/p:configuration=release; deleteexistingfiles=true; targetframeworkversion=v4.5; visualstudioversion=15.0; Publishprofile=folderprofile;deployonbuild=true
Deleteexistingfiles=true; This parameter does not take effect, but is issued with vs2017. So the solution:
To execute the rmdir/s/q "project output directory" before executing the msbuild command , just kill the directory first.
Step Three:
Synchronizing distribution of files via Rsync.exe
Enable Jenkins to continue building. NET programs, about configuring NuGet key points