How to force my ASP.net 2.0 app to recompile

I have a ASP.net 2.0 app and I have made some changes the the source file ( cs files ). I uploaded the changes with the belief that it would auto-recompile. I also have the compiled dll in MY_APP/bin. I checked it and noticed that it did not recompile. Please understand I am new to this.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

my #1 way to do this, add white space to the top of the web config file, after the xml declaration tag.

It forces the node to re-cache and recompile. We even have a page deep in the admin called Flush.aspx that does it for us.

Method 2

I use a similar method to ChanChan, but instead of whitespace I put a comment in the web.config to indicate when/why the config was edited.

Method 3

It’s always best to just actually run a build after making .cs changes.

Where are you running it? Is this for debugging or production?

Method 4

In VS menu you have Build -> Rebuild Solution


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x