SiberianGuy
SiberianGuy

Reputation: 25282

Deploy asp.net web application

I have ASP.NET MVC web application. I need to deploy it which consists of: 1. Changing some of Web.config sections 2. Building under Release configuration 3. Copying to my deployment server (optional)

What are the ways to automate this process?

Upvotes: 1

Views: 724

Answers (3)

Jesse
Jesse

Reputation: 8393

In terms of building under release configuration & copying to your deployment server you can use MS-Build alongside a tool like Team City / Team Build to automate the process.

Here is a great post to get yourself up and running: How to use MSBuild to deploy an ASP.NET MVC application

Upvotes: 1

Cymen
Cymen

Reputation: 14419

We use continuous integration via Jenkins/Hudson to build and a task in it to deploy to staging or production that uses msdeploy in a batch script.

For building, our parameters for msbuild for release builds are:

/Target:Clean;Build /Property:Configuration=Release

It does take a while to figure out the msdeploy options but it is worth looking into (it's what Visual Studio is using behind the scenes to do the deploy if you use the GUI-based approach).

Upvotes: 1

Iridio
Iridio

Reputation: 9271

1. Changing some of Web.config sections

Use the web.config transformation you can implemnt it by modifing the Web.Debug.config and Web.Release.config in your web project

2. Building under Release configuration
3. Copying to my deployment server (optional)

This post should help. Read also this about the publish thing

Upvotes: 2

Related Questions