Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will the .cs files be compiled when loaded after i modified them?

Tags:

c#

.net

asp.net

I've got a ASP.NET website which I'm attempting to edit, however my Visual Studio broke. Someone just told me that i can simply use any text editor to modify the .cs files on the live webserver and whenever the page is opened they'll automatically be compiled.

Could anyone explain whether this is true or false?

I did some googling mentioning JIT-compiling. But it still isn't quite clear to me what it means and how it is used within .NET

like image 487
user6 Avatar asked Jun 14 '12 12:06

user6


Video Answer


2 Answers

It depends on your server settings but yes, you can edit them directly and as long as you've not gone the page precompile route (given there are .cs files in there it doesn't look like it) the changes should get picked up by IIS. I would NOT do that on a live webserver however unless you're REALLY sure about the change you're making.

PS: Backups. Make them.

like image 198
Jeff Watkins Avatar answered Oct 27 '22 00:10

Jeff Watkins


If it is .aspx file then it will be fine but for .cs file it is not possible you have to republish the site again...because the dll is created when you publish the site...after that you can not modify the site...

like image 23
Dhaval.Panchal Avatar answered Oct 26 '22 22:10

Dhaval.Panchal