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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:35:31+00:00 2026-05-21T20:35:31+00:00

I have a website (not a web application) and I want to publish it

  • 0

I have a website (not a web application) and I want to publish it from the command prompt in the same directory every night.

I don’t want to use build automation tools like TeamCity, TFS, or third-party tools like Nant – it should be done with MSBuild. How can I do this?

Update: in the Publish window the only option that should be checked is Use Fixed naming and single page assemblies.

  • 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-05-21T20:35:31+00:00Added an answer on May 21, 2026 at 8:35 pm

    From your comment, your web project is a web site project and not a web application project.

    In this case, ‘Publish’ target can not be the option but ‘AspNetCompiler’ is the solution.

    Create an xml file with below content and call it from MSBuild.

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
        <Target Name="PrecompileWeb">
            <AspNetCompiler
                VirtualPath="/MyWebSite"
                PhysicalPath="c:\inetpub\wwwroot\MyWebSite\"
                TargetPath="c:\precompiledweb\MyWebSite\"
                Force="true"
                Debug="true"
                FixedNames="True"
            />
        </Target>
    </Project>
    

    Reference to this task is here and you can configure all your un/check options.

    FixedName=”True” equals the checking of ‘use fixed naming and single page…’ option.

    Then you call this file from MSBuild instead of the solution file.

    MSBuild your.xml /p:Configuration=<Debug/Release>
    

    As long as your class libraries are referenced by your web site project, they’ll be built together.

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

Sidebar

Related Questions

I have a ASP.Net web application. I want to publish it to the Windows
I have a Web Application and want to move/make it as a IIS website
I have a login-protected website. It's an internal application and it's not avaiable to
I want to stop search engines from crawling my whole website. I have a
I have one web application with two projects: Project Website Using CMS; namespace Web
I have a VS 2005 Web Site project (not the web application project model,
I have a Web application and a WCF service hosted on the same Windows
I have an ASP.NET website. I want users who are not logged in to
I have a website that does not have page refreshes when the visitor navigates
I have website on the server, which is not precompiled (with source code, so

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.