如果要使用Jenkins构建.NET项目,请按照下列步骤操作:
Install MsBuild Plugin
Go to
Jenkins -> Manage Jenkins -> Configure System
(On newer versions:Jenkins -> Manage Jenkins -> Global Tool Configuration -> MSBuild
)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:WindowsMicrosoft.NETframeworkv3.5msbuild.exe
- Save and apply the changes.
Select your job.
Select Add Build Step.
Select MsBuild version.
Specify the path to the project file (.csproj or .sln)
Build your project.



