Visual Studio 2008 Professional Build Process

I would like to accomplish two things during my build process:

  • Run unit tests. I have a test project with my unit tests. I would like to run all of these tests during the build and get notified if the build failed the test.
  • Merge web.config files. I have 3 different environments with settings specific to each. I would like to create a configuration file based on where the web application is being deployed.

I looked through several resources and nothing seemed to me the best solution for this scenario. Most of my searches depended on part of the goal of web.config, but if I am going to do this, I would like to do a unit test at the same time.

  • Scott Hanzelman has a message about creating several copies of the configuration file, creating user configurations and copying via web.config with a batch file, aligning the configuration with the source code. I do not like this solution, since I must have several versions of the same file, and there is a chance that it will be updated, and the other will not.

  • Using nAnt looks promising. From what I'm going to, I would use a batch file as part of the build process. Replacing the variables {template} in a template file with variables in the xml file seems to me very simple, so I think I'm leaning towards this over MSBuild. I am worried about the configuration of the environment, several developers should have nant assemblies in the same place, so they should be checked in the original control. That sounds fine with me.

  • CruiseControl, , , .

, , , , , . , , , .

+3
2

, . , , , .

, , , bat. , , . , , , - . , , .

, , . :

  • Powershell
  • Python
  • Bash (.. cygwin)

nAnt - . , xml , , , , .

Make Scons .

. . . , . . , , , . CI . 2, 10, .

, . unit test , . , , .

, , (.. shippable), , / . - , Cruise Control Buildbot. , , . , , , . , ( )

, , :

  • ; ..
  • /
  • ; ; zipping up build products, .iso ..
  • : , ( -).

, . . , . , ? , script, . , : " bat?" , , .

, , :

. , . . , , .

. , , .

!

+12

web.config, , http://blog.jpboodhoo.com/NAntStarterSeries.aspx

, xml local.properties.xml , , . , . web.config . web.config.template, web.config . Nant filterchain web.config .

0

Source: https://habr.com/ru/post/1711385/


All Articles