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 170413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:48:13+00:00 2026-05-11T12:48:13+00:00

Is it possible to accomplish publish (as in Visual Studio publish on Web Application

  • 0

Is it possible to accomplish publish (as in Visual Studio publish on Web Application project) on solution using NAnt? I just can’t find the solution.

  • 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. 2026-05-11T12:48:14+00:00Added an answer on May 11, 2026 at 12:48 pm

    They key is to use the built-in ‘_CopyWebApplication’ target.

    Here is what i do

    <target name='compile' description='Compiles the project.'>         <exec basedir='.' program='${DotNetPath}msbuild.exe' commandline=' src/MyProject.Web/MyProject.Web.csproj /nologo    /t:Rebuild   /t:ResolveReferences;_CopyWebApplication   /p:OutDir=../../output/build/bin/   /p:WebProjectOutputDir=../../output/build/   /p:Debug=${debug}   /p:Configuration=${configuration}   /v:m'     workingdir='.' failonerror='true' />     </target> 

    with the dir structure of:

    /project.build /src/myprojct.sln /src/myporject.web/myproject.web.csproj /output 

    Edit: i also use this to use the YUI compression to compress my css and js

    <target name='compress-js'>         <foreach item='File' property='filename'>             <in>                 <items basedir='output/build/assets/javascript/'>                     <include name='/**/*.js' />                     <exclude name='/**/*.min.js' />                     <exclude name='/**/*.pack.js' />                 </items>             </in>             <do>                 <exec basedir='.' program='${JavaPath}java' commandline=' -jar S:\yuicompressor-2.4.1\build\yuicompressor-2.4.1.jar --type js --charset utf-8 -o &quot;${filename}&quot; &quot;${filename}&quot;' failonerror='true' />             </do>         </foreach>     </target>       <target name='compress-css' depends='combine-css'>         <foreach item='File' property='filename'>             <in>                 <items basedir='output/build/assets/css/'>                     <include name='/**/*.css' />                     <exclude name='/**/*.min.css' />                     <exclude name='/**/*.pack.css' />                 </items>             </in>             <do>                 <exec basedir='.' program='S:\Java\jdk1.6.0_11\bin\java' commandline=' -jar S:\yuicompressor-2.4.1\build\yuicompressor-2.4.1.jar --type css --charset utf-8 -o &quot;${filename}&quot; &quot;${filename}&quot;' failonerror='true' />             </do>         </foreach>     </target> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to accomplish something like this using linqtosql? select * from table
Using jQuery (1.7), and not jQueryUI - (how) would it be possible to accomplish
Is it possible to declaratively set clientCache for an Action using the web.config in
I am using Visual Studio 6.0 (VC++ with MFC) in Windows XP platform. I
Is is possible to accomplish the equivalent of a LEFT JOIN with subselect where
I need to extract options in ``particular select tag. Is it possible to accomplish
Is it possible under any set of circumstances to be able to accomplish this?
Im not sure that its possible to do what I want to accomplish. I
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the
I want to create an Android application where a user can create an account

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.