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

  • SEARCH
  • Home
  • 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 8647125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:59:16+00:00 2026-06-12T12:59:16+00:00

How can I use properly Nant to build and deploy an asp.net project developed

  • 0

How can I use properly Nant to build and deploy an asp.net project developed using asp.net , vb.net and .net framework 1.1?

I tried with this build file:

<?xml version="1.0" ?>
<project name="MyWebProj" default="build" basedir=".">
    <description>...</description>
    <property name="debug" value="true" overwrite="false"
    />
    <property name="basename" value="MyWebProj" />
    <target name="build">
        <mkdir dir="NantBIN" />
        <vbc target="library" output="NantBIN/${basename}.dll" debug="${debug}">
            <sources>
                <include name="*.vb" />
            </sources>
        </vbc>
    </target>
</project>

And I run this bat file:

@echo off bin\nant -t:net-1.1 -buildfile:.MyWebProjPath pause
  • 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-12T12:59:17+00:00Added an answer on June 12, 2026 at 12:59 pm

    First of all, thank you for all the answers and advices.
    This is how I finally resolved the problem.I use this as the build file:

    <?xml version="1.0"?><project name="..." default="rebuild" basedir=".">
    <target name="rebuild" depends="build">
        <call target="build.copy"/>
    </target>
    <target name="build" description="Build all targets.">
        <call target="build.project"/>
    </target>
    <target name="build.project">
        <solution configuration="${configuration}" solutionfile="${solutionName}" outputdir="${expected.output}">
            <webmap>
                <map url="${webproj.url}" path="${webproj.name}" />
            </webmap>
        </solution>
    </target>
    <target name="build.copy">
        <copy  todir="${path.to.deploy}" overwrite="true">
            <fileset basedir=".">
                ...
                <include name="**\*.asp" />
                <include name="**\*.aspx" />
                <include name="**\*.css" />
                <include name="**\*.js" />
                ...
            </fileset>
        </copy>
    </target>
    

    And I run this bat file (is important to set -t:net-1.1 to specify the .net framework version ):

    bin\nant -t:net-1.1 -buildfile:.MyWebProjPath
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use asp:Login control, user can login properly, but while checking user Profile information
I can use this maven plugin maven-jaxb-plugin to generate Java Classes from XSD file.
How can I use properly the Intent flag FLAG_ACTIVITY_NO_ANIMATION in AndroidManifest file? I supose
Can someone provide a simple example of how to properly use Html.RadioButtonFor? Let's say
I'm having some problems putting my log4j.properties file on classpath. I can use it
tried this many times but I just can't figure out how to define custom
I am working on a NANT build project to build a VS project. One
I use Nant genrate Nunit Report by nunit2report. And everyday it build it will
How can I properly use jQuery and CoffeeScript? All of the examples that I
How I can use Include of the LINQ properly under MVC3? I created .edmx

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.