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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:37:02+00:00 2026-05-26T00:37:02+00:00

If this has been asked before, I apologize. If I had a currently deployed

  • 0

If this has been asked before, I apologize.

If I had a currently deployed ASP.Net C# website which had a slight bug or modification needed in a cs file, would it be possible to modify the cs file and have IIS recompile the ASP.Net website rather than using Visual Studio or SharpDevelop to rebuild the site?

I’m familiar with PHP websites where a change is compiled automatically. Is there a way to get ASP.Net or IIS to do something similar to the code-behind files of an ASP.Net website?

I understand that modifying the web.config file may force a recompile, and modifying the ASPx files automatically displays the changes, but I haven’t found the same success in the code behind files.

Thank you.

Edit (Answer below):

The command to recompile an existing ASP.Net website using existing sources (including the solution file) is this:

%windir%\microsoft.net\framework\v4.0.30319\msbuild /m Solution.sln /p:Configuration=Debug
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
:err
@PAUSE
@exit /B 1

Paste the above code into a batch file within your solution directory. Change the Solution.sln to your solution file, modify the framework to match your installed version. You can change the Configuration option to “Release” as well.

* Batch file code used from SharpDevelop source code. Idea based on this forum post: http://community.sharpdevelop.net/forums/t/8281.aspx

  • 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-26T00:37:02+00:00Added an answer on May 26, 2026 at 12:37 am

    The command to recompile an existing ASP.Net website using existing sources (including the solution file) is this:

    %windir%\microsoft.net\framework\v4.0.30319\msbuild /m Solution.sln /p:Configuration=Debug
    @IF %ERRORLEVEL% NEQ 0 GOTO err
    @exit /B 0
    :err
    @PAUSE
    @exit /B 1
    

    Paste the above code into a batch file within your solution directory. Change the Solution.sln to your solution file, modify the framework to match your installed version. You can change the Configuration option to “Release” as well.

    * Batch file code used from SharpDevelop source code. Idea based on this forum post: http://community.sharpdevelop.net/forums/t/8281.aspx

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

Sidebar

Related Questions

I apologize if this has been asked before, but I haven't quite found the
First, I apologize if this has been asked before - indeed I'm sure it
This has been asked before, but the other poster's concern had more to do
If this has been asked before, I apologize but this is kinda of a
If this has been asked before in a different wording, I apologize. Heres my
First off, I apologize if this question has been asked before. I've done a
Apologies if this has been asked before. I have some data which I need
If this has been asked before I sincerely apologize. After around half an hour
I apologize if this has been asked before. I searched but did not find
If this has been asked before I apologize but I wasn't able to get

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.