Best Approach to Auto Publish Web Applications

Could you tell us what are the best ways to make automatic publishing of web applications using vs2010 and the city team. You are currently trying to do this by adding a web deployment project. This is the best way to do it, or there is another opportunity to do the same.

+3
source share
2 answers

For a web deployment project, I assume that you are referring to projects with the suffix ".wdproj". They were replaced in VS2010 by web application projects that carry a “normal” project file extension (such as .csproj) and are much easier to create and deploy, no matter what CI system you use.

In particular, in TeamCity, you can configure the build with a build step that contains the following Runner properties:

  • Build Runner: MsBuild Build File
  • Path: "MyWebAppProjectDir \ MyWebAppProj.csproj"
  • MSBuild Version: 4.0
  • Objectives: Rebuild; Package

This creates the site and all its dependency projects and sends it to a subdirectory as a ZIP file in "MyWebAppProjectDir \ obj \ Debug \ Package \".

, ZIP -. :

MyWebAppProject.deploy.cmd /m: DestinationServerName

, , IIS . : http://msdn.microsoft.com/en-us/library/ff356104.aspx

, , - MIX10, , TeamCity: http://channel9.msdn.com/events/MIX/MIX10/FT14

+4

All Articles