Enable Jenkins to continue building. NET programs, about configuring NuGet key points

Source: Internet
Author: User

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

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.