How to force my ASP.net 2.0 app to recompile

前端 未结 4 1598
北荒
北荒 2021-01-12 13:39

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

相关标签:
4条回答
  • 2021-01-12 14:21

    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.

    0 讨论(0)
  • 2021-01-12 14:31

    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?

    0 讨论(0)
  • 2021-01-12 14:32

    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.

    0 讨论(0)
  • 2021-01-12 14:37

    In VS menu you have Build -> Rebuild Solution

    0 讨论(0)
提交回复
热议问题