2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / ChangeLog
index e50830823f0ac8078fcf2def2ae70d8a866d2526..80c8ae1ffbf3382d92cd710f53b7942adf5fa1ea 100644 (file)
@@ -1,3 +1,511 @@
+2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebServiceCompiler.cs: fix buglet in my last commit.
+
+2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs:
+       * CachingCompiler.cs:
+       * WebServiceCompiler.cs: correctly cache Type instead of the assembly
+       for ashx/asmx. Otherwise we need to open the file and check for the
+       class name in there. Thanks to Ben for pointing this out.
+
+2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CachingCompiler.cs: don't try to watch for changes in system
+       assemblies. Fixes bug #64871.
+
+2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: handle builders that need to process inner text
+       with tags.
+
+       * Location.cs: added setters for the properties.
+
+2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: the path for file was treated as virtual, but it's
+       physical. Fixes bug #61524.
+
+2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs: fixed case-sensitivity issues with #include and its
+       attributes. Closes #61429.
+
+2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs:
+       * WebServiceCompiler.cs: really create the dlls under DynamicBase
+
+2004-06-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: for system colors, use SystemColors class
+       instead of Color. Fixes bug #60249.
+
+2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: try getting the Type from the cache before doing the 
+       real work. Remove temporary files right after successful compilation.
+
+       * CachingCompiler.cs: added GetTypeFromCache.
+
+       * UserControlCompiler.cs: nothing interesting.
+
+       * WebServiceCompiler.cs: try getting the Type from the cache before
+       doing anything else. Remove temp files on sucessful compilation.
+
+2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs:
+       * CachingCompiler.cs: use a different prefix when caching compiler
+       results or Types.
+
+2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: dynamicBase is now protected. Check
+       MONO_ASPNET_NODELETE here.
+
+       * TemplateControlCompiler.cs: if the type is not known but has a 
+       TypeConverter, invoke ConvertFromString in the generated code.
+
+       * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
+       the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
+
+       * CachingCompiler.cs: updated compilation of web services and simple
+       web handlers.
+
+2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CSCompiler.cs: removed.
+
+       * CachingCompiler.cs: language independent compilation for single files.
+
+2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs:
+       * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
+       * CachingCompiler.cs: use HttpRuntime.Cache.
+
+2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PageCompiler.cs: fixed Trace and add support for Buffer.
+
+2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PageCompiler.cs: override CreateConstructor to add assignment for
+       ClientTarget.
+       
+2004-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
+       of CodeObjectCreateExpression for the render method delegate. Thanks
+       to Jochen Wezel.
+
+2004-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: use DynamicBase for the output assemblies.
+
+2004-05-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
+
+2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs: indent a few lines.
+       * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
+       attribute value. This way we can simulate reading 2 characters ahead
+       (one in ungetc and the other in Peek) and work with values like
+       text/javascript. Fixes bug #57302.
+
+2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
+
+2004-04-02  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
+
+2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
+
+2004-02-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: error out when <object> server tag is not closed.
+       Ignore any content inside it.
+
+2004-02-10  Jackson Harper <jackson@ximian.com>
+
+       * AspTokenizer.cs: Collect discarded characters that might be used
+       in client side scripts. Patch by Liyu Liu.
+       * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
+       
+2004-02-10  Jackson Harper <jackson@ximian.com>
+
+       * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
+       bug #54117.
+       
+2004-01-30  Jackson Harper <jackson@ximian.com>
+
+       * TemplateControlCompiler.cs: Call ToString on the types hashcode,
+       the build method takes strings not ints.
+       
+2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: handle more possible errors in global.asax file.
+
+       * BaseCompiler.cs: added utility methods for creating <object> related
+       properties and fields.
+
+       * GlobalAsaxCompiler.cs: keep around applications and session scope
+       objects builders. Also a list of imports and assemblies added in
+       global.asax.
+
+       * TemplateControlCompiler.cs: use base class methods for <object> stuff.
+
+2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
+       pages more than once. Thanks to Eric Lindvall for pointing this out.
+
+2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: allow handling subproperties for other
+       types than Style and Font. Fixes bug #53217.
+
+2004-01-16  Jackson Harper <jackson@ximian.com>
+
+       * TagAttribute.cs: attributes can be stored as encoded html so we
+       decode them here.
+       
+2004-01-14  Jackson Harper <jackson@ximian.com>
+
+       * TemplateControlCompiler.cs: Is a user control is cached and
+       shared use the controls type hashcode for the GUID so it will be
+       the same across instances.
+       
+2004-01-13  Jackson Harper <jackson@ximian.com>
+       
+       * TemplateControlCompiler.cs: If an item has the partial caching
+       attribute build a PartialCachingControl in the parents __Build method.
+       * BaseCompiler.cs: Add a method for adding class attributes to the
+       class.
+       * UserControlCompiler.cs: If caching is enabled on a user control
+       add the PartialCachingAttribute to it.
+       
+2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PageCompiler.cs: invoke Request.ValidateInput if required.
+
+2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
+       #52521. Patch by liyul@hotmail.com.
+
+2003-12-25  Jackson Harper <jackson@ximian.com>
+
+       * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
+       #52522.
+       
+2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PageCompiler.cs: assign the ErrorPage property if provided.
+
+2003-12-15  Jackson Harper <jackson@ximian.com>
+
+       * PageCompiler.cs: Add Trace and TraceMode to framework initialize
+       method if they are set.
+       
+2003-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: ignore <tbody> when we're inside a server table and
+       fail when runat="server" is applied to <tbody> with a parse error
+       instead of waiting for a compilation error. Fixes bug #52157.
+
+2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: basic checking of ID validity.  Throw a
+       ParseException when mixing languages.
+
+2003-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PageCompiler.cs: assign LCID, Culture and/or UICulture in
+       FrameworInitialize() if provided in @Page.
+
+       Fixes bug #51511.
+
+2003-11-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: support for expressions of
+       System.Drawing.Size type. Allow getting Color from comma separated
+       numbers, which is not allowed by ColorConverter.
+
+       This makes http://www.codeproject.com/aspnet/asppopup.asp work.
+
+2003-11-13  Jackson Harper <jackson@ximian.com>
+
+       * PageCompiler.cs: Call InitOutputCache when the OutputCache
+       directive is set.
+       
+2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: use fileEncoding from configuration files.
+
+       * PageCompiler.cs: add assign statements for ContentType,
+       ResponseEncoding and CodePage if supplied.
+
+2003-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
+       a return statement for user controls with 'void' return type.
+
+2003-10-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs: fixed bug #49627.
+
+2003-10-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
+
+2003-10-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directive.cs: new attribute for @Page directive in 1.1.
+
+2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs:
+       * TagAttributes.cs: allow duplicated runat=server attributes and display
+       error page when duplicated attributes and runat is specified.
+
+2003-10-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspTokenizer.cs: moved token numbers above unicode.
+
+2003-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: don't process code render tags inside scripts. Check
+       the language of the script and treat javascript as verbatim input.
+       Fixes bug #48592.
+
+2003-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: fixed bug #48212.
+
+2003-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * WebServiceCompiler.cs: remove the temporary files here too.
+
+2003-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: fixed bug #46429.
+
+2003-08-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Directive.cs: support @WebHandler.
+       
+2003-07-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
+
+2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: first look for cached items, then generate the tree.
+       This should speed things up.
+
+       * CachingCompiler.cs: when compiling web services, use the full path of
+       the .asmx file as key when caching.
+
+       * WebServiceCompiler.cs: first look for cached items, then generate
+       the source file.
+
+2003-07-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs: more useful error information,
+
+       * BaseCompiler.cs:
+       * CachingCompiler.cs: honor the debug="true" option.
+
+       * TemplateControlCompiler.cs: small fixes for templates.
+
+2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BaseCompiler.cs: made Compiler property virtual.
+
+       * CachingCompiler.cs: added support for compiling web services.
+
+       * WebServiceCompiler.cs: implemented.
+
+2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CachingCompiler.cs: fixed bug #43477.
+
+2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspParser.cs:
+       * AspTokenizer.cs: fixed bugs #43206 and #43371.
+
+2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
+       of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
+       reporting.
+
+2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CompilationException.cs: don't add duplicated lines in the case that
+       mcs reports several errors for the same one.
+
+2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: fully support including files, ie., treat them just
+       as C treats #includes.
+
+2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs:
+       * AspParser.cs:
+       * TagType.cs: Added support for server side includes.
+
+2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CSCompiler.cs: actually add the list of referenced assemblies to the
+       compiler options. Throw a CompilationException if there's an error.
+
+       * CachingCompiler.cs: added a method to compile directly from a source
+       file.
+       
+2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: copy the location before setting the value for the
+       control builders.
+
+       * BaseCompiler.cs: changed parameters for CompilationException.
+
+       * CompilationException.cs: it takes now line numbers and error
+       descriptions from the CompilerErrorCollection.
+
+       * Location.cs: used when a copy of an ILocation is needed.
+
+       * ParseException.cs: implemented new methods to provide line numbers
+       and souce file.
+
+       * TemplateControlCompiler.cs: throw a ParseException where appropiate.
+
+2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: also support data bind syntax inside tags not
+       processed as controls. Added debugging method.
+
+       * TemplateControlCompiler.cs: reset the number of data binding handlers 
+       in the proper place. Small fix when getting the container type.
+
+2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory 
+       value.
+
+2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: handle code render syntax in tag attributes.
+
+       * AspParser.cs: the constructor now takes a TextReader.
+
+       * TemplateControlCompiler.cs: removed comment.
+
+2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TemplateControlCompiler.cs: added support for data bound properties.
+
+2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
+       instead of their names.
+
+       * AspElements.cs: removed. No longer needed.
+
+       * AspGenerator.cs: this file is now in charge of interfacing between
+       the parser and the compiler. It manages the creation of the
+       ControlBuilder tree and the compilation of the CodeDOM tree.
+
+       * AspParser.cs: tag handling is simpler now.  Instead of a whole bunch
+       of different Types, tags are just and id and a set of attributes.
+       Implement ILocation interface.
+       
+       * AspTokenizer.cs: added a few methods to help the parser implementing
+       ILocation.
+
+       * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
+       common to appliaction, page and user control, including the actual
+       compilation and error handling.
+
+       * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
+
+       * CachingCompiler.cs: simplified to use the new interfaces.
+
+       * CompilationException.cs: it's now using CompilationResult to report
+       errors.
+
+       * CompilationResult.cs: Removed file.
+
+       * Directive.cs: to check for the validity of a directive.
+
+       * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
+       in BaseCompiler.
+
+       * ILocation.cs: interface used to now the exact place where a parse
+       error happens.
+
+       * PageCompiler.cs: generates a couple of methods that are only used in
+       pages.
+
+       * ParseException.cs: use the ILocation interface.
+
+       * TagAttributes.cs: handles the attributes of the tags parsed.
+
+       * TagType.cs: an enum for the different kinds of tags.
+
+       * TemplateControlCompiler.cs: this is the one that does most of the
+       conversion from teh ControlBuilder tree into a CodeDOM tree.
+
+       * UserControlCompiler.cs: simplified as most of the work is done in
+       its base classes.
+
+       * WebServiceCompiler.cs: dummy.
+
+2003-04-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspComponentFoundry.cs: added GetComponentType method.
+
+2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspTokenizer.cs: allow quotes inside server tags that are part of
+       attribute values.
+       
+       * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
+       compilation fails.
+
+2003-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: generate correct appbase path. It was working with
+       mcs but not with csc.
+
+       * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
+
+       * CachingCompiler.cs: quote source file.
+
+2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AspGenerator.cs: now the Inherits attribute works as expected for
+       global.asax file.
+
+2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CompilationException.cs:
+       * ParseException.cs: display the correct line number in error messages.
+
+       * AspElements.cs: added TargetSchema attribute for control. It's
+       ignored.
+
 2003-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * BaseCompiler.cs: fixed the hack to work under windows.