msbuild.exe is not recognized command after build in Jenkins

后端 未结 5 1401
无人共我
无人共我 2021-02-07 00:14

1. sharing violation

after following http://programmaticponderings.wordpress.com/2012/08/08/convert-vs-2010-database-project-to-ssdt-and-automate-publis

5条回答
  •  一向
    一向 (楼主)
    2021-02-07 00:25

    If you want to build a .NET project using Jenkins, follow these steps:

    1. Install MsBuild Plugin

    2. Go to Jenkins -> Manage Jenkins -> Configure System (On newer versions: Jenkins -> Manage Jenkins -> Global Tool Configuration -> MSBuild)

    3. In the MSBuild section click the AddMsBuild button and specify the details:

      • Name: Name of the MsBuild
      • Path to MsBuild: Specify the path of msbuild.exe. Example: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe
    4. Save and apply the changes.

    5. Select your job.

    6. Select Add Build Step.

    7. Select MsBuild version.

    8. Specify the path to the project file (.csproj or .sln)

    1. Build your project.

提交回复
热议问题