Imran Rizvi
Imran Rizvi

Reputation: 7438

Speeding up ASP.NET website publishing

Is there any way in ASP.NET website project, that allow to publish it from command prompt and I can continue working on project, or if it is not easy to use , at least speed up my publish task?

I know about the auto publishing tools like TFS or CruiseControl, so please don't tell me these ways.

I am thinking to create a .bat file , that I'll run everytime I have to publish. but it should not take changes made by me during its running process.

asp.net single file publish

I really like the Answer given by Ludwo, providing more information on that would be very helpful.

Upvotes: 0

Views: 659

Answers (3)

Ludwo
Ludwo

Reputation: 6183

You can use MsBuild to publish your websites in parallel. Start with this article. It is about publishing one website using MsBuild. Define your projects inside ItemGroup and use MSBuild task this way:

<MSBuild Projects="@(YourProjectsToBuildInParallel)" BuildInParallel="true" ... 

The final step is to enable parallel processing for MSBuild task.

Upvotes: 2

Dave Walker
Dave Walker

Reputation: 3523

Use source control and a build server mechanism. The build server should be able to pull from source control when you commit a change, build the project, do any unit tests you may/should have, and then deploy to a test site.

Depending on which build server platform you use you may or may have to do varying amounts of work. In the past I have used Bamboo by Atlassian. Fantastic product but you have to configure the deployment using MSBuild - it's fine but it can take some time to get it perfect. I am sure there are some good examples out there for it.

How it will work for you:

When you are finished working on a file/issue you can commit your changes. The build server will then detect these changes and wait a varying amount of time (waiting for you to commit more) e.g. 3 minutes, check out your changes, and deploy. You can set up notifications when the deployment is done to goto your testing team - with a link in the email saying where the site is, and what the change that occurred (based on your SVN commit log).

So your net effort is to check a file in with a correct comment - and you are finished.

Upvotes: 0

Kemal Can Kara
Kemal Can Kara

Reputation: 416

Open another Visual Studio to continue :P. Publishing mechanism can detect updated and can send only changes. So dont upload full site everytime, if its really disturbs you.

Upvotes: 0

Related Questions