grendello at gmail.com
Fri Nov 9 07:49:01 EST 2007
On Wed, 7 Nov 2007 09:16:52 +0100, Sebastian Böhm <seb at exse.net> scribbled:
> I have a webhandler which complies some code.
> It also needs code from the App_Code path.
> as this is compiled automatically, I need to find the dll at runtime
> to use it with : CompilerParameters.ReferencedAssemblies.Add()
> the App_Code.dll is in somewhere in /tmp/www-data-temp-aspnet-0/ but
> the name is changing all the time.
This is the same behavior what on MS.NET, the App_Code.dll.compiled file is
gnerated to allow lookups by "App_Code" name, but to discover what the real
App_Code dll name is, you must either read the above file or walk the list of
the assemblies loaded in your application and take the name from there.
In general, if your webhandler needs some code for compilation, I would
recommend moving it away from App_Code and putting it in a precompiled assembly
in the bin/ subdirectory.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 194 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20071109/4d767890/attachment.bin
More information about the Mono-list