[Mono-list] When Code-Behind pages get recompiled?

Marek Habersack grendello at gmail.com
Mon Dec 3 05:17:00 EST 2007


On Thu, 29 Nov 2007 13:02:34 +0100, László Monda <laci at monda.hu> scribbled:

> Hi List,
Hello,

> 
> I'm using mod-mono-server with Mono 1.2.4 installed in Ubuntu Gutsy and
> I've noticed that if I modify a .cs file, it doesn't get recompiled.
> A .cs file only gets recompiled if their accompanying .aspx file gets
> modified.
This issue had been fixed after 1.2.4 release
 
> I was told on #mono that sole .cs files get recompiled too upon
> modifications using Mono 1.2.6 preview.
That's true

> 
> So, to sum things up, I'm curious when Code-Behind pages get recompiled.
> From which Mono version does mod-mono-server automatically recompile a
> standalone .cs file without touching its accompanying .aspx page and
> without restarting the server?
Both the .aspx and its associated code-behind file are recompiled when either
of those is modified. There is no way to recompile just the .aspx or just the
code-behind file - they are strongrly dependent on each other. And once
any .as?x or code-behind file is changed throughout the application, the entire
application domain has to be unloaded and reinitialized on the next request.

best regards,

marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20071203/7f624b28/attachment.bin 


More information about the Mono-list mailing list