Do .cs files collect on boot after I change them?

I have an ASP.NET website that I am trying to edit, however my Visual Studio is broken. Someone just told me that I can simply use any text editor to modify the .cs files on a real web server, and whenever the page opens, they will be automatically compiled.

Can anyone explain if this is true or false?

I did some search queries regarding JIT compilation. But it’s still not entirely clear to me what this means and how it is used in .NET.

+5
source share
3 answers

, , , ( , .cs, ), IIS. -, , .

PS: . .

+5

.aspx, , .cs ... dll ... ...

+1

If you just copied and pasted the contents of the website onto the web server and not published it (I think you did), it will work for you. But using your cs files on a web server is not good practice. The best way is to publish your site and publish the published files to a web server. Thus, only the required assemblies will be on the server instead of your source codes.

0
source

All Articles