[Mono-bugs] [Bug 79918][Wis] Changed - [2.0] mono/asp.net passes to be compiled files as a command line argument to codedom provider

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 22 05:16:16 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by grendello at gmail.com.


--- shadow/79918	2007-01-22 04:51:50.000000000 -0500
+++ shadow/79918.tmp.9352	2007-01-22 05:16:15.000000000 -0500
@@ -109,6 +109,22 @@
   It seems you ran your test on mono 1.1, could you please try 
 running it with the latest released and the svn head versions?
+------- Additional Comments From grendello at gmail.com  2007-01-22 05:16 -------
+Actually, don't. I've looked into the code and I can see where the 
+problem is now. Most of the compiles in mono's ASP.NET go through the 
+CachingCompiler.Compile(BaseCompiler) overload, which expects the 
+calling BaseCompiler to have the code to be compiled in the form of 
+DOM and it calls compiler_implementation.CompileAssemblyFromDom, 
+which does not allow passing extra source files. That's why 
+TemplateParser.cs puts the contents of the CodeFile page directive in 
+the compiler options in order to be able to compile all the related 
+files in one batch. The only solution I can see for now is to have 
+BaseCompiler (or CachingCompiler) generate sources from DOM prior to 
+calling the compiler implementation. This, in a way, duplicates the 
+effort of the compiler itself but I can't see any solution for the 
+moment. Miguel, what do you think?

More information about the mono-bugs mailing list