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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:44:23+00:00 2026-05-10T14:44:23+00:00

I am trying to publish an Asp.net MVC web application locally using the NAnt

  • 0

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target;

<target name='publish-artifacts-to-build'>     <msbuild project='my-solution.sln' target='Publish'>       <property name='Configuration' value='debug' />       <property name='OutDir' value='builds\' />       <arg line='/m:2 /tv:3.5' />     </msbuild> </target> 

and all I get is this as a response;

[msbuild]          Skipping unpublishable project. 

Is it possible to publish web applications via the command line in this way?

  • 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-10T14:44:24+00:00Added an answer on May 10, 2026 at 2:44 pm

    The ‘Publish’ target you are trying to invoke is for ‘OneClick’ deployment, not for publishing a website… This is why you are getting the seemingly bizarre message. You would want to use the AspNetCompiler task, rather than the MSBuild task. See http://msdn2.microsoft.com/en-us/library/ms164291.aspx for more info on this task. Your ‘PublishDir’ would correspond to the TargetPath property of the task.

    Source

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Solved using this post: Can you convert an ASP.NET MVC Application to a Web
I am trying to publish my ASP.NET MVC application. It is build successfully, but
I created an asp.net mvc 3 facebook application using facebook c# sdk. I'm trying
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I'm developing an ASP.NET MVC application with NHibernate and I'm trying to use Automapper
I am trying this. I have built asp.net website. When I publish to IIS
I'm building an ASP.NET MVC application and I'm trying to deploy it on a
I just trying to publish my website developed in asp.net MVC, which is built
I am running Visual Studio 2010, using an ASP.Net forms application.I am trying to
I am trying to host an ASP.NET MVC4 web application with IIS 7.5. When

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.