ASP.NET Web Application Build Output - How do I include all deployment files?

前端 未结 9 1811
广开言路
广开言路 2021-01-20 22:01

When I build my ASP.NET web application I get a .dll file with the code for the website in it (which is great) but the website also needs all the .aspx files and friends, an

9条回答
  •  南笙
    南笙 (楼主)
    2021-01-20 22:43

    It depends on how complicated solution you need, you could just use a script and jenkins for example. You can use MSBUild with Jenkins for just deploying to an IIS. And if you got Jenkins other tools is pretty easy to connect into it later on. But if you just want to build, use a script that jenins execute every build that uses MSDeploy and it will work great.

    This is how i do it, just to give you a feeling:

    Sonarqube uses Gallio, Gendarme, FXcop, Stylecop, NDepths and PartCover to get your metrics and all this is pretty straight forward since SonarQube do this automatically without much configuration.

    Here is Jenkins witch builds and get Sonar metrics and a another job for deploying automatically to IIS. I use a simple script one line that calls my MSBuild and wich URL, pass and user.

    And Sonarqube, all metrics for my project. This is a simple MVC4 app, but it works great!:

    If you want more information can i provide you with a good guide.

    This whole setup uses MSBuild, too build and deploy the apps.

提交回复
热议问题