[Mono-dev] App_Code

damien churchill damien.churchill at ukplc.net
Tue Sep 19 06:11:38 EDT 2006


you don't actually have to compile the code for the 'Assembly="xx.cs"' to work. I've got it working fine with just source files. admittedly still breaks under windows,

________________________________

From: mono-devel-list-bounces at lists.ximian.com on behalf of Nick Hoddinott
Sent: Tue 19/09/2006 09:19
To: Tomasz Kubacki
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] App_Code



Hi,

> I know someone asked it befere, but i still haven't found solution.
> How to make my asp.net 2.0 web page 'automagically' compile dll's

I've haven't found a solution as yet. I started looking at the mono
code, but have had limited time recently. It's something I hope to
revisit soon.

Of course, you can get your application to run by compiling the code
in your App_Code dir to a dll, then adding 'Assembly="xx.dll'
attributes to your code. This will then break your 'automagic' compile
on Windows. :(

Solution I've toyed with are

- Writing the auto compiliation of App_Code feature for mono.
Obviously the best, but needs some planning, and knowledge of the
existing code.

- Moing your code base back to a compiled in advance model. Not too desirable.

- Adding an ugly hack (for your own use) to System.Web.Compiliation to
expect the type to be found in YourAppName.dll.

When I get chance to work on this further I'll post here. I might try
an ugly hack first, upload the patched dll to my site, then attempt a
real solution. :)

Regards,

Nick H
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060919/7cc389c7/attachment.html 


More information about the Mono-devel-list mailing list