Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8309571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:09:45+00:00 2026-06-08T19:09:45+00:00

The majority of our internal apps are built on a Java EE stack using

  • 0

The majority of our internal apps are built on a Java EE stack using Ant, and deployed to Tomcat with a WAR file. We have a build box that creates a Production-targeted WAR, and the WAR is then delivered to the Test environment. A script is run to convert the deployed webapp to point to Test data environments.

After a few cycles of Test -> Bug Fix -> Build -> Redeploy to test, the WAR file is then deployed to Production, and is then live.

I’ve recently inherited some ASP.NET 4.0 webapps, and their Build/Deploy is quite different; the code is built in VS, and then the entire project directory is copied to each environment. It is then tweaked by hand, and is occasionally rebuilt with a VS instance on the server.

This is a bit scary, as there are plenty of opportunities for tweaks in one environment to be forgotten, and thus require that we’re playing around with our apps after they’re “live”, outside the bounds of testing, version control, etc.

So, all of this being said:
Is there an equivalent to the Ant/WAR mechanism in a .NET world? What’s the safest way to create an executable artifact from a .NET webapp and move it between environments with minimal modification? I know that “best pratices” is a taboo phrase, but I’d like to dip into some expert knowledge before I remake Ant in .NET. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:09:48+00:00Added an answer on June 8, 2026 at 7:09 pm

    Three technologies you need to know about to automate web deployments:

    1. MSBuild – This is Microsoft’s equivalent of ANT. Project files are basically just a series of MSBuild tasks.
    2. WebDeploy – This is essentially your WAR/Tomcat equivalent, except that it creates deploy packages, and is meant for IIS.
    3. XML Transforms – You should never have to manually edit configuration by hand. Config transforms are essential if you have multiple environments you need to deploy to.

    Put all these together with your favorite Build server (I use Jenkins), and you can totally automate your entire deployment process to any environment. Each of these individual topics is too broad to cover in depth here, but you should be able to get started with minimal knowledge of each.

    To give you an example of how simple it can be, here is a sample command line build that will deploy a website to a 2003/IIS6 box.

    MSBUILD "MyWebSite.csproj" 
        /p:Configuration=Dev 
        /p:OutputPath=bin 
        /t:Rebuild 
        /p:DeployOnBuild=true 
        /p:DeployTarget=MSDeployPublish 
        /P:AllowUntrustedCertificate=True 
        /p:MSDeployPublishMethod=RemoteAgent 
        /p:MsDeployServiceUrl=http://MyDevServer    
        /p:DeployIisAppPath="Default Web Site/MyWebSite" 
        /p:username=deployUser 
        /p:password=deployPassword
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment: Java (Java EE), Tomcat container At work the vast majority of our apps
I'm working on on a site built using struts2. The vast majority of our
We are currently using unit tests to test our project. We have the majority
We're having an issue. We have the majority of our code written in .net
Recently we have been adding automated tests to our existing java applications. What we
The majority of material I have found regarding DLR is related to IronPython. Can
I have written the majority of my project in C++. However there are several
NOTE: I have solved the majority of this problem but have run into a
I currntly use M2Eclipse for the majority of my Java development and Pydev for
I'm brand spanking new at Spring and have gotten a majority of the knowledge

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.