Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jenkins build and compile. Net project

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Jenkins compiles the. net project

It is very convenient to download windows jenkins and install it directly.

Https://mirrors.tuna.tsinghua.edu.cn/jenkins/windows/jenkins-2.70.zip

Second, install .net4.0 (NDP451)

If you installed the IIS verification page before, re-register the. net4.0

C:\ Windows\ Microsoft.NET\ Framework64\ v4.0.30319\ aspnet-regiis.exe-r

Enable ASP.NET status service

C:\ Windows\ Microsoft.NET\ Framework64\ v4.0.30319\ aspnet_state.exe

Jenkins-windows installation completed; service found Jenkins startup service

III. Basic settings for http:localhost:8080 to access the Jenkins .net environment

1. Add MSbuild environment

Click "system Management"-"Global Tool Configuration" to configure MSBuild

Application saving

2. Add MSbuild plug-in

Click * * system Management * *-> * * plug-in Management * * and check MSBuild Plugin to install directly.

3. Create a test project

Describe the old build custom build days and maximum number of discarded builds

Source code management:

Git svn

4. Construction steps: select method

Build a Visual Studio project or solution using MSBuild

MSBuild Version default MSBuild

MSBuild Build File path. / test.sln

Command Line Arguments

/ t:Rebuild reconstruction

/ p:DeployOnBuild=true means to enable compilation and publish

/ p:Configuration=Release compiled Release version

/ p:VisualStudioVersion=12.0 VS version can be defined according to your own

/ p:PublishProfile=test specifies the name of the Profile created

/ p:WebProjectOutputDir=E:\ server\ test release path

/ p:OutputPath=E:\ server\ test\ bin dll path of compilation output

After building, you can view the build information directly from Console Output.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report