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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:06:00+00:00 2026-05-12T15:06:00+00:00

I’ve been using mouse right click in Visual Studio to publish sites for ages

  • 0

I’ve been using mouse right click in Visual Studio to publish sites for ages and everything worked great except there’s been too much manual works. Recently I changed to using build script to call aspnet_compiler to publish ASP.NET web application. In my build script I would do something like below:

sh "#{aspnet_compiler} -p ../src/webapp -v targetDir ./publish –u"

My project directory structure looks like this:

/build/rakefile.rb
/build/publish/ --published site goes here
/src/website/bll/ --business logic goes here
/src/website/ --aspx pages
/src/website/code/ --some c# code

When calling aspnet-compiler everything worked fine except the c# code under /src/website/code/ would not be compiled. It seems to me that aspnet-compiler compiled c# code under bll directory then xcopied everything under /src/website/ to the publish directory (including /src/website/code/). I don’t know if I am not using the correct switch calling aspnet-compiler or this is the desired behaviour?

Please help thanks!

  • 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-12T15:06:00+00:00Added an answer on May 12, 2026 at 3:06 pm

    I figured out my own problem.

    First of all my rake build script end up looking like this:

    sh "#{aspnet_compiler} -f -fixednames -u -p ../src/website -v / ./publish"
    

    Second the output behaviour of mouse right click on “publish” within Visual Studio is different from calling aspnet_compiler.

    Right click publish will:

    • directly copy Global.asax
    • only generate .dll and .pdb (.pdb file can be deleted if debugging is not required) files under bin directory

    where when calling aspnet_compiler:

    • will compile Global.asax into App_global.asax.compiled and App_global.asax.dll under bin directory
    • will also generate PrecompiledApp.config (this is because I’ve specified aspx pages should be updatable)

    There was a clean up task after publish task that basically deleted anything other than .dll extension under bin.

    Anyway now I’ve learnt something new.

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

Sidebar

Related Questions

I know that you can use the context menu using a right-mouse-click in a
Been using XML for ages now for data storage & transfer, but have never
I am using Visual Studio 2010, and because of the amount of debug output
While using the Aptana 3 App explorer or Project explorer, the right mouse submenu
I've been unable to hide the mouse cursor (properly) using SDL. I am using
I've been using CGPostMouseEvent() for performing mouse clicks since mac os 10.4. While working
Having worked out how to obtain the mouse click position anywhere along the monitor
Ive been using bootstrap for a few months and am looking to clarify something
I been using VS2008 Pro for a long time now but since of licensing
If been using dbForge Query Builder lately and I'm gotten used to the ease

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.