1 2007-03-13 Marek Habersack <mhabersack@novell.com>
3 * PageThemeCompiler.cs: let property builders through, stop the
4 builders that have no control type. Fixes bug #81092
6 * PageCompiler.cs: interfaces are to be implemented by the parent
7 partial class, not the generated one.
9 * AppResourceFilesCollection.cs: added separate constructor for
10 local resources handling.
12 * TemplateControlCompiler.cs: request the local resource object
13 with proper virtual path.
14 Put field declarations for controls in the partial class.
15 Make sure builders are in valid state before trying to use them.
17 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
18 property in the page/control constructor.
19 Change the generated code model for pages/controls to comply with
20 the way MS.NET does (partial class contains only two properties
21 plus declarations of all the controls, the actual control/page
22 class inherits from the partial class). Fixes bug #81001.
24 * AppResourcesCompiler.cs: does not require specifying manually
25 whether it's a global or local resource compiler anymore. New
26 constructors take care of that.
27 Changed to compile local resources on demand, when a control/page
30 2007-03-12 Marek Habersack <mhabersack@novell.com>
32 * AspParser.cs: revert r73587 as it breaks more than it fixes.
34 * AspComponentFoundry.cs: try to register foundries from App_Code
35 assemblies if tag prefix and its namespace are defined. Fixes bug
38 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
39 of Assembly instances, not strings.
41 * CachingCompiler.cs: make sure items in the CodeAssemblies and
42 TopLevelAssemblies are really instances of the Assembly class
43 before trying to use them.
44 CodeAssemblies is a collection of Assembly instances, not
47 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
48 assemblies, not paths to assemblies.
50 2007-03-10 Marek Habersack <mhabersack@novell.com>
52 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
53 CreateProfileProperty and InternalCreatePageProperty to
54 BaseCompiler from PageCompiler.
56 * GlobalAsaxCompiler.cs: generate the Profile property for the
59 2007-03-09 Marek Habersack <mhabersack@novell.com>
61 * AppCodeCompiler.cs: Add the GetProfile method to the
62 ProfileCommon auto-generated class.
64 * AppResourcesCompiler.cs: attempt to load the resource file
65 earlier in the process, to gracefully handle empty files.
67 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
68 .skin and .css files composing the theme.
70 2007-03-05 Marek Habersack <mhabersack@novell.com>
72 * PageThemeCompiler.cs: Use correct theme path for
73 AppRelativeTemplateSourceDirectory.
74 Do not process builders of type CodeRenderBuilder.
75 Make sure builder.ControlType is not null before depending on it.
77 * ThemeDirectoryCompiler.cs: theme parser should be passed the
78 virtual directory of the theme.
80 2007-03-03 Marek Habersack <mhabersack@novell.com>
82 * PageCompiler.cs: Added support for setting the
83 MaintainScrollPositionOnPostBack property if the corresponding
84 page directive attribute is found.
86 * Directive.cs: added the MaintainScrollPositionOnPostBack and
87 LinePragmas directives.
89 2007-03-02 Marek Habersack <grendello@gmail.com>
91 * AppCodeCompiler.cs: Correctly process App_Code directories which
92 have no compilable files in the top-level directory. Fixes bug
94 Write preservation files for the App_Code assemblies.
96 2007-03-01 Marek Habersack <grendello@gmail.com>
98 * AspParser.cs: fix GetVerbatim for cases when the end is
99 e.g. --> or --%> and the string matched is ---> or ---%>
100 respectively. The new code always backs out to make sure the end is
103 2007-02-27 Marek Habersack <grendello@gmail.com>
105 * TemplateControlCompiler.cs: ParseExpression returns an object,
106 don't assume any concrete type.
107 Use the current culture when converting the expression to a
110 * ConnectionStringsExpressionBuilder.cs: Implement support for
111 expressions of the <%$ ConnectionStrings:StringName %> form
113 2007-02-19 Marek Habersack <grendello@gmail.com>
115 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
117 2007-02-16 Marek Habersack <grendello@gmail.com>
119 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
120 is referenced twice by the compiler(s).
122 * TemplateControlCompiler.cs: Fix the problem with cultures which
123 have a comma as their decimal separator and font/whatever
124 units. New code does not reparse the text representation of the
125 unit on the runtime (e.g. 0.9em) but instead it constructs the
126 property using the FontUnit/Unit constructors which take,
127 respectively, Unit and double/unittype parameters. This avoids
128 culture-specific parsing.
129 Also fix converting from invariant strings in a culture-aware
130 environment (e.g. in a page that uses Culture="auto") during the
133 2007-02-12 Marek Habersack <grendello@gmail.com>
135 * PreservationFile.cs: Support preservation (assembly mapping)
136 files (the ones with .compiled extension in the ASP.NET temporary
137 directory). This one implements a loader/saver class.
139 * AppResourcesCompiler.cs: support for assembly name mapping.
141 * AppCodeCompiler.cs: support for assembly name mapping.
143 2007-02-08 Marek Habersack <grendello@gmail.com>
145 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
147 * AspComponentFoundry.cs: Avoid duplicate control registration
150 * ResourceExpressionBuilder.cs: Make sure all the global resources
151 are looked up using the "Resources." prefix.
153 * AppResourcesCompiler.cs: Make sure all the global resources are
154 embedded with the "Resources." prefix.
156 2007-02-02 Marek Habersack <grendello@gmail.com>
158 * AspGenerator.cs: Move the cache insert code to a separate method, for
159 use from other places.
161 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
162 defer their compilation to the moment when they are actually requested.
164 2007-01-22 Marek Habersack <grendello@gmail.com>
166 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
168 2007-01-20 Miguel de Icaza <miguel@novell.com>
170 * ClientBuildManager.cs: Remove unused variable (this could be a
171 real problem, we never use the appPhysicalTargetDir)
173 * AssemblyBuilder.cs: Remove unused field.
175 * AppResourceFilesCollection.cs: Remove unused field.
177 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
180 * AppResourcesCompiler.cs: Remove unused variable.
182 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
185 * PageCompiler.cs: Put InternalCreatePageProperty inside the
186 NET_2_0 block to eliminate warnings.
188 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
190 * BaseCompiler.cs: Fixed build on 1.0 profile.
192 2007-01-20 Marek Habersack <grendello@gmail.com>
194 * BaseCompiler.cs: If the control base type is in the root
195 namespace, make sure global:: is prepended to it.
197 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
198 mark it as such in the generated code as well.
200 * AppCodeCompiler.cs: Include debug information if configured in
201 web.config. Fixes bug #80096.
203 2007-01-17 Marek Habersack <grendello@gmail.com>
205 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
206 App_GlobalResources) when compiling App_Code sources.
208 * CachingCompiler.cs: Reference toplevel assemblies when compiling
211 * AppResourcesCompiler.cs: Close the streams properly.
213 * AspGenerator.cs: Don't ignore thead/tbody anymore.
215 2007-01-15 Marek Habersack <grendello@gmail.com>
217 * WsdlBuildProvider.cs: New build provider for WSDL files.
218 Compile only when System.Web.Services are present.
220 * TemplateControlCompiler.cs: Forgotten in the previous commit -
221 don't pass the current culture to GetLocalResourceObject, let the
222 method figure it out on its own.
224 2007-01-05 Marek Habersack <grendello@gmail.com>
226 * AppResourceFilesCollection.cs: new class to keep and manage
227 collection of resource files for the App_{Global,Local}Resources
230 * TemplateControlCompiler.cs: rely on
231 HttpContext.GetLocalResourceObject to select the correct culture.
233 * AppResourceFileInfo.cs: new class for keeping resource files
236 * AppResourcesCompiler.cs: new implementation.
238 2006-12-20 Marek Habersack <grendello@gmail.com>
240 * AssemblyBuilder.cs: add an internal version of the
241 AddCodeCompileUnit method.
243 * AppCodeCompiler.cs: implement support for ProfileCommon
244 generation from properties named in the <profile> element in
247 * PageCompiler.cs: create the Profile property in 2.0 code.
249 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
251 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
253 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
255 * ThemeDirectoryCompiler.cs: refactoring.
257 2006-11-28 Marek Habersack <grendello@gmail.com>
259 * BuildManager.cs: Add an internal property to signal whether or
260 not we have any resources from App_{Global,Local}Resources
262 * AspGenerator.cs: Register controls from
263 system.web/pages/controls collection before parsing.
265 * AppResourcesCompiler.cs: Let the build process know if we have
266 compiled any resources from App_{Global,Local}Resources
268 2006-11-27 Marek Habersack <grendello@gmail.com>
270 * CachingCompiler.cs: Automatically reference App_Code
273 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
276 2006-11-25 Marek Habersack <grendello@gmail.com>
278 * AppResourcesCompiler.cs: small optimizations.
280 * AppResourceFilesCompiler.cs: small optimizations.
282 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
284 * WebServiceCompiler.cs: add the type to the cache after getting it
285 from the compiled assembly.
287 2006-11-20 Marek Habersack <grendello@gmail.com>
289 * AppCodeCompiler.cs: Reference assemblies listed in
290 system.web/compilation/assemblies.
291 Don't create empty assemblies.
293 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
295 * TemplateControlCompiler.cs: fixed:
296 When <%# Bind(...) %>-expression is used more then once for same control
297 The variable associated with this control is declared only once.
299 2006-11-18 Marek Habersack <grendello@gmail.com>
301 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
302 files with names like File.resources or File.resx are found in the
303 resource directories.
305 2006-11-16 Marek Habersack <grendello@gmail.com>
307 * ForceCopyBuildProvider.cs: Added the build provider for
310 * MasterPageBuildProvider.cs: Added the build provider for Master
313 * IgnoreFileBuildProvider.cs: Make the class sealed.
315 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
316 correctly uses the BuildProviderCollection to retrieve the
317 appropriate builder and maps the physical input file path into
318 application relative path when setting the virtual path of the
321 2006-11-13 Marek Habersack <grendello@gmail.com>
323 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
324 constructor with just the CodeDomProvider argument. CreateCodeFile
325 now uses the code provider's file extension. Added internal method
326 to add pre-generated source code files. Added a BuildAssembly
327 overload that takes no virtual path as the
328 parameter. BuildAssembly now uses an array of source files instead
329 of compile units and also handles embedded resources and
330 referenced assemblies. BuildAssembly deletes the temporary files
331 if MONO_ASPNET_NODELET isn't set in the environment.
333 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
334 creation. Use the build providers collection to build unknown
335 files in App_Code. Use AssemblyBuilder to compile the assembly.
337 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
338 temporary file creation.
340 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
343 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
346 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
349 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
352 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
355 2006-11-08 Marek Habersack <grendello@gmail.com>
357 * BuildProvider.cs: Implemented the GetCustomString
358 method. Removed the necessity to retrieve the CompilationSection
359 twice when GetDefaultCompilerType is called.
361 * AppResourcesCompiler.cs: Added resource compiler results
364 * AppCodeCompiler.cs: The App_Code compiler classes
366 * BuildManager.cs: Implement the CodeAssemblies property.
367 Added an internal TopLevelTypes property to be used in the custom
368 GetType methods. Implemented the GetCompiledCustomString method.
369 Implemented the GetType method overloads. Implemented the
370 GetVirtualPathDependencies method.
372 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
374 2006-10-18 Marek Habersack <grendello@gmail.com>
376 * TemplateControlCompiler.cs: add support for resource
377 expressions in tag attributes.
379 * ResourceExpressionBuilder.cs: add support for resource
380 expressions in tag attributes.
382 * BaseCompiler.cs: add global/local resource assemblies to
383 compilation references, if present.
385 * AppResourcesCompiler.cs: global/local resources compiler.
387 * AppResourceFilesCompiler.cs: compiler of resource files.
389 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
391 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
392 At run time, the Bind method calls the Eval method, if there is DataItem
394 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
395 method don't raise exception and works properly to extract data from
396 bounded controls on postback.
398 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
400 * AspGenerator.cs: if we are tracking non-server tags for
401 well-formedness, handle tags that do not need to be closed (br, img,...)
404 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
406 * PageCompiler.cs: support the EnableEventValidation attribute.
408 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
410 * AspGenerator.cs: after parsing an include file, don't error out if we
411 still have opened tags unless this was the last file to parse. Fixes
414 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
416 * ParseException.cs: Ensure the source file stream is closed.
418 2006-08-25 Kornél Pál <kornelpal@gmail.com>
420 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
421 * ConnectionStringsExpressionBuilder.cs: Use name reference
423 * ResourceExpressionBuilder.cs: Use assembly name constants.
425 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
427 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
429 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
431 * ClientBuildManager.cs: handle domain shutdown and unload.
432 Implemented some properties. Commented.
434 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
436 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
438 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
440 * added ThemeDirectoryCompiler.jvm.cs
442 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
444 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
445 the property Items does not exist. Patch by Marek Habersack that fixes
448 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
450 * TemplateControlCompiler.cs: support assigning nullable types.
451 Patch by Marek Habersack that fixes bug #78970.
453 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
455 * TemplateControlCompiler.cs: make password work again.
457 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
459 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
460 MS.NET handles nested quotes differently for server controls and
461 for "normal" controls. Add a property "AlternatingQuotes" to the
462 tokenizer and let the parser decide whether it is well-formed or not.
464 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
466 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
467 UrlPropertyAttribute.
469 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
471 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
472 generating code for assignment statement and DataBind event.
474 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
476 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
477 Don't allow an attribute value to contain the same quote characters
478 as the ones used for delimiting the value itself. Add a token
479 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
481 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
483 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
485 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
487 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
489 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
491 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
492 array of style sheets from the parser
493 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
494 put them in LinkedStyleSheets of PageThemeParser
496 2006-04-20 Chris Toshok <toshok@ximian.com>
498 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
499 names in the case where you use "NS.ClassName" in the Inherits
500 attribute. Fixes bug #78135.
502 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
504 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
505 already acquired the lock even when we might have not created the 'key'
506 to the compilation ticket.
508 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
510 * ThemeDirectoryCompiler.cs: add to the directory parser all the
511 assemblies found by PageThemeFileParsers
513 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
515 * TemplateControlCompiler.cs: Properly read all content of
518 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
520 * TemplateControlCompiler.cs : fix for partial parsers
522 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
524 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
527 2006-04-08 Miguel de Icaza <miguel@novell.com>
529 * TemplateControlCompiler.cs: An attempt to fix the regression
530 introduced in r58505 (a bug fix for 77762). This was reported in
531 the mailing list with a batch of new 2.0 failures.
533 We really need a test suite in NUnit to check on ASP.NET aspx
536 2006-03-27 Robert Jordan <robertj@gmx.net>
538 * CachingCompiler.cs: change the compilation locking scheme
539 from "one mcs per process" to "one mcs per file".
541 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
543 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
544 StringPropertyBuilder.
546 2006-03-24 Chris Toshok <toshok@ximian.com>
548 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
549 if system.web/compilation doesn't list a compiler for our
552 2006-03-13 Chris Toshok <toshok@ximian.com>
554 * TemplateControlCompiler.cs (InitMethod): when generating the
555 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
556 argument to it. Only do that if the class we're compiling is
557 actually a subclass of Page. If it's not, pass this.Page.
559 2006-03-07 Chris Toshok <toshok@ximian.com>
561 * AspGenerator.cs: refactor the parsing code so that we can
562 initiate parsing from outside this class.
564 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
565 method, add our StyleSheetTheme assignment here.
566 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
569 * TemplateControlCompiler.cs (EnsureID): make protected.
570 (CreateAssignStatementsFromAttributes): same
571 (AddChildCall): same.
572 (CreateControlTree): same.
573 (CreateFrameworkInitializeMethod): change
574 "AddStatementsToFrameworkInitialize" to
575 "AppendStatementsToFrameworkInitialize", and add call to
576 "PrependStatementsToFrameworkInitialize" before the generation of
577 "base.FrameworkInitialize()."
579 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
581 2006-03-07 Chris Toshok <toshok@ximian.com>
583 * ThemeDirectoryCompiler.cs: new file.
585 * PageThemeCompiler.cs: new file.
587 2006-03-07 Chris Toshok <toshok@ximian.com>
589 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
590 (Init): move the CreateMethods call here.
592 2006-03-02 Chris Toshok <toshok@ximian.com>
594 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
595 SkinID just after the creation of our object, and right after that
596 call "_ctrl.ApplyStyleSheetSkin (page)".
597 (CreateAssignStatementsFromAttributes): split out the majority of
598 this code to CreateAssignStatementFromAttribute, and change this
599 method to simply a loop over the attribute keys. In the 2.0 case,
600 skip the SkinID property, since that's handled explicitly in
603 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
604 for Theme and StyleSheetTheme.
606 2006-02-23 Chris Toshok <toshok@ximian.com>
608 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
609 change from ContentControlBuilderInternal to
610 ContentBuilderInternal.
611 (AddCodeRender): same.
613 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
615 * AssemblyBuilder.cs:
616 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
617 GetGeneratedType() on the BuildProvider instead of loading the assembly
618 and trying a wild guess at the type name.
620 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
622 * GlobalAsaxCompiler.cs:
624 * TemplateControlCompiler.cs: CreateMethods is now internal.
626 * WebServiceBuildProvider.cs:
627 * PageBuildProvider.cs:
628 * UserControlBuildProvider.cs:
629 * WebHandlerBuildProvider.cs: new build providers.
631 * BuildProvider.cs: add assemblies.
633 * BaseCompiler.cs: expose the provider and the compile unit through
636 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
638 * CompilerType.cs: implemented.
640 * AssemblyBuilder.cs: implemented most of it.
642 * WebServiceCompiler.cs:
643 * CachingCompiler.cs: update 2.0 compiler instance creation code.
645 * ClientBuildManager.cs: implemented some of its methods. Not yet
648 * BuildManager.cs: the more interesting methods are implemented now.
650 * BaseCompiler.cs: delete the temporary files in case of error.
652 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
654 2006-02-07 Chris Toshok <toshok@ximian.com>
656 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
657 calls to AddParsedSubObject to a special statement collection --
658 builder.flushOutputStatements -- not to builder.method.Statements.
659 (InitMethod): initially, set flushOutputStatements to
660 method.Statements. If we're dealing with a ContentPlaceHolder,
661 set flushOutputStatements to be the else block of a conditional we
662 create. This causes the compiled control to fall back to the
663 ContentPlaceHolder's child controls in case there's no
664 corresponding Content template.
665 (AddChildCall): use methodStatements instead of method.Statements.
666 (CreateControlTree): same.
668 * PageCompiler.cs (CreatePropertyAssign): factor out the
669 string,string implementation and add one that also takes a
670 CodeExpression; make the string,string implementation call the
671 three arg one with thisRef.
672 (AddStatementsToInitMethod): make use of the 3-arg form of
673 CreatePropertyAssign to reduce code. Also, add support for
674 setting the page's Title from the parser's Title.
676 2006-02-07 Chris Toshok <toshok@ximian.com>
678 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
679 assign __ctrl.MasterPageFile to our master page, if we have one.
681 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
682 assignment from here.
683 (AddStatementsToInitMethod): and move it here.
685 * TemplateControlCompiler.cs (InitMethod): in the case where
686 builder is a RootBuilder (we're building the __BuildControlTree
687 method), call a virtual method so that subclasses can add their
688 own statements to the method (used by both Page and MasterPage);
689 Also, in the RootBuilder case, the argument should be the
690 parser.ClassName type (the class we're building); lastly, expand
691 the ContentPlaceHolder logic to include all the
692 ContentTemplates/InstantiateIn magic.
693 (AddStatementsToInitMethod): empty virtual method.
694 (AddContentTemplateInvocation): ContentControlBuilder ->
695 ContentControlBuilderInternal.
696 (CreateControlTree): same.
697 (CallBaseFrameworkInitialize): new function, create call to
698 base.FrameworkInitialize.
699 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
701 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
703 * IgnoreFileBuildProvider.cs: it's not public.
704 * BuildProvider.cs: mostly implemented.
706 2006-02-01 Chris Toshok <toshok@ximian.com>
708 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
709 GetSection instead of GetWebApplicationSection.
711 * CachingCompiler.cs: same.
713 * AspGenerator.cs: same.
715 * BaseCompiler.cs: same.
717 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
719 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
721 2006-01-22 Chris Toshok <toshok@ximian.com>
723 * IgnoreFileBuildProvider.cs: build provider which does nothing.
725 2006-01-22 Chris Toshok <toshok@ximian.com>
727 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
728 Hashtable ctor to silence a couple of warning.
729 (CompoundFoundry.ctor): same
731 * Directive.cs (InitHash): use a 2.0 friendly form of the
732 Hashtable ctor to silence a couple of warning.
734 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
735 Hashtable ctor to silence a warning.
736 (GetDictionary): same.
738 2006-01-22 Chris Toshok <toshok@ximian.com>
740 * AppSettingsExpressionBuilder.cs: implement this, patterning it
741 after an example on msdn. Also, enable the ExpressionEditor
742 attribute, but use the string rather than the Type overload so we
743 won't have yet another circular dep.
745 * ConnectionStringsExpressionBuilder.cs: partial implementation.
746 Same deal with the ExpressionEditor attribute.
748 * ResourceExpressionBuilder.cs: same deal with the
749 ExpressionEditor attribute.
751 2006-01-20 Chris Toshok <toshok@ximian.com>
753 * ResourceExpressionBuilder.cs (ParseExpression): implement.
755 * ResourceExpressionFields.cs: implement.
757 2006-01-20 Chris Toshok <toshok@ximian.com>
759 * ClientBuildManagerParameter.cs: implement.
761 * ClientBuildManagerCallback.cs: this class contains an empty
762 default implementation.
764 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
766 * AspGenerator.cs: add support for 'src' in <script runat="server">.
769 2006-01-04 Chris Toshok <toshok@ximian.com>
771 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
774 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
776 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
778 * AspGenerator.cs: fix yesterday's fix.
780 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
782 * AspGenerator.cs: only do special processing for <script> if it has
783 the runat="server" attribute. Fixes bug #76918.
785 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
787 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
790 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
792 * TemplateControlCompiler.cs: handle data bound attributes for html
793 controls. Fixes bug #76785.
795 2005-11-28 Chris Toshok <toshok@ximian.com>
797 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
799 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
801 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
803 * WebServiceCompiler.cs: fixed caching for web handlers.
805 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
807 * AspParser.cs: don't change case for verbatim IDs.
810 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
812 * AspParser.cs: when processing verbatim input, throw if we reach EOF
813 before the expected end of the data.
815 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
817 * CachingCompiler.cs:
818 * WebServiceCompiler.cs: when caching a type loaded from an assembly
819 that we didn't compile, make it depend on the file itself, not on a
820 non-existing cache key. This problem affected performance of web
821 services and .ashx, making unnecessary extra calls to LoadFrom every
822 time the cache was cleared.
824 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
826 * BaseCompiler.cs: set the domain's DynamicBase property instead of
827 guessing it in BaseCompiler.
829 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
831 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
832 75146 for pages/controls.
834 2005-08-09 Miguel de Icaza <miguel@novell.com>
836 * WebServiceCompiler.cs: Use the new DynamicDir method.
838 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
839 since this value is null most of the time, compute the real value.
841 Added Bonus: if the directory has some kind of permission problem,
842 try a different directory name.
844 2005-07-13 Miguel de Icaza <miguel@novell.com>
846 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
847 BaseParser.Context for the context.
849 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
853 * TemplateControlCompiler.cs: use invariant culture versions of starts/
856 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
858 * TemplateControlCompiler.cs: comparison between member name and the
859 first part of the id provided by the user should also be
860 case-insensitive. Fixes bug #75379.
862 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
864 * CachingCompiler.cs: use cache.InsertPrivate.
865 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
868 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
870 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
871 as all the others, when compiling an assembly from a Src file. Fixes
874 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
876 * TemplateControlCompiler.cs: if the property is not found, don't forget
877 about trying the field.
879 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
881 * Directive.cs: Register the MasterType directive.
882 * PageCompiler.cs: If a MasterType is specified, add a type specific
883 Master property. All this fixes bug #75192.
885 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
887 * TemplateControlCompiler.cs: when mapping an attribute name to a field
888 or property name, there's no need to try with every property and field,
889 but just the one found when searching by name (no case). There was one
890 call to ProcessPropertiesAndFields per property or field until found,
891 now only one if the property/field is found, none otherwise.
893 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
895 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
896 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
899 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
901 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
902 the assembly file there and be able to load it. Thanks to Rogerio and
905 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
907 * AspParser.cs: InvariantCulture love.
909 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
911 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
912 as the one in Master is protected. Fixes bug #75157.
914 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
916 * AspComponentFoundry.cs: tagnames have precedence over types in
917 assemblies when they use the same prefix. Fixes bug #71855.
919 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
921 * WebServiceCompiler.cs: Create the temp directory before
922 creating the web service source code file.
924 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
926 * AspGenerator.cs: when checking languages, try to match other aliases
927 too (ie, 'cs' == 'c#').
929 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
931 * BaseCompiler.cs: check that DynamicBase directory exists before
932 creating the TempFileCollection.
934 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
936 * AspGenerator.cs: use a stack for non-server tags even before getting
937 to a form. Fixes bug #70274.
939 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
941 * AspParser.cs: don't error out on ill formed tags if it's not a server
942 tag (ie, allow something like '<table align="left cellpadding="0">' to
943 work, as MS does. Fixes bug #67909.
945 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
946 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
947 @Page/@Control directives to CodeDOM (VB.NET support)
949 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
951 * AspParser.cs: Fixed parsing of data binding tags in server
952 tag attributes. Allow <%...%> blocks not assigned to
953 attributes in client tags.
954 * TagAttributes.cs: Make sure that data binding blocks in server
955 tags are always assigned to attributes.
957 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
959 * TemplateControlCompiler.cs: Implemented support for two-way
962 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
964 * TemplateControlCompiler.cs: Use the new BindingContainerType
965 property to find the type of the binding container.
967 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
969 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
970 for primitive types. Parse an empty color string as Color.Empty.
971 Get the converter for a property using its PropertyDescriptor.
973 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
975 * TemplateControlCompiler.cs: Don't autogenerate IDs for
976 controls inside Content template.
978 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
980 * TemplateControlCompiler.cs: make typedesc.aspx work again.
982 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
984 * ExpressionBuilderContext.cs:
985 * ExpressionBuilder.cs: implemented.
987 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
989 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
991 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
993 * TemplateControlCompiler.cs: When generating a property value,
994 check for TypeConverterAttribute in the PropertyInfo, not only in the
996 Implemented code generation using InstanceDescriptor, when the type
997 converter supports conversion to that type.
999 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
1001 * Directive.cs: Added MASTER directive.
1002 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
1003 * PageCompiler.cs: Set the master file name when generating the page.
1004 * TemplateControlCompiler.cs: When generating the method for a
1005 content holder, register the content holder in the base MasterPage.
1006 Added method for registering a Content control for a MasterPage.
1007 Generate code for Content controls.
1009 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
1011 * TemplateControlCompiler.cs: Get the container type from the
1012 template (if it was defined using TemplateContainerAttribute.
1014 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1016 * AspGenerator.cs: correctly process script tags that self-closing.
1019 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1021 * CachingCompiler.cs: when compiling a single .cs file, add the file
1022 itself to dependencies. Fixes bug #68788.
1024 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1026 * ControlBuilder.cs: don't close server tags when we get to a closing
1027 tag that is not applied to a server control. Fixes bug #60323.
1029 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1031 * WebServiceCompiler.cs: fix buglet in my last commit.
1033 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1036 * CachingCompiler.cs:
1037 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
1038 for ashx/asmx. Otherwise we need to open the file and check for the
1039 class name in there. Thanks to Ben for pointing this out.
1041 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1044 * AspTokenizer.cs: prevent quotes from being swallowed when we're
1045 inside a server tag and they are the next non-whitespace character.
1048 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1050 * CachingCompiler.cs: don't try to watch for changes in system
1051 assemblies. Fixes bug #64871.
1053 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1055 * AspGenerator.cs: handle builders that need to process inner text
1058 * Location.cs: added setters for the properties.
1060 2004-08-02 Duncan Mak <duncan@ximian.com>
1062 * BuildProviderResultFlags.cs:
1063 * IImplicitResourceProvider.cs:
1064 * ImplicitResourceKey.cs:
1065 * IResourceReader.cs: Added.
1067 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1069 * AspGenerator.cs: the path for file was treated as virtual, but it's
1070 physical. Fixes bug #61524.
1072 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1074 * AspParser.cs: fixed case-sensitivity issues with #include and its
1075 attributes. Closes #61429.
1077 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1080 * WebServiceCompiler.cs: really create the dlls under DynamicBase
1082 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1084 * TemplateControlCompiler.cs: for system colors, use SystemColors class
1085 instead of Color. Fixes bug #60249.
1087 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1089 * BaseCompiler.cs: try getting the Type from the cache before doing the
1090 real work. Remove temporary files right after successful compilation.
1092 * CachingCompiler.cs: added GetTypeFromCache.
1094 * UserControlCompiler.cs: nothing interesting.
1096 * WebServiceCompiler.cs: try getting the Type from the cache before
1097 doing anything else. Remove temp files on sucessful compilation.
1099 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1102 * CachingCompiler.cs: use a different prefix when caching compiler
1105 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1107 * BaseCompiler.cs: dynamicBase is now protected. Check
1108 MONO_ASPNET_NODELETE here.
1110 * TemplateControlCompiler.cs: if the type is not known but has a
1111 TypeConverter, invoke ConvertFromString in the generated code.
1113 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
1114 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
1116 * CachingCompiler.cs: updated compilation of web services and simple
1119 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1121 * CSCompiler.cs: removed.
1123 * CachingCompiler.cs: language independent compilation for single files.
1125 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1128 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
1129 * CachingCompiler.cs: use HttpRuntime.Cache.
1131 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1133 * PageCompiler.cs: fixed Trace and add support for Buffer.
1135 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1137 * PageCompiler.cs: override CreateConstructor to add assignment for
1140 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1142 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
1143 of CodeObjectCreateExpression for the render method delegate. Thanks
1146 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1148 * BaseCompiler.cs: use DynamicBase for the output assemblies.
1150 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1152 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
1154 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1156 * AspParser.cs: indent a few lines.
1157 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
1158 attribute value. This way we can simulate reading 2 characters ahead
1159 (one in ungetc and the other in Peek) and work with values like
1160 text/javascript. Fixes bug #57302.
1162 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1164 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
1166 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
1168 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
1170 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1172 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
1174 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1176 * AspGenerator.cs: error out when <object> server tag is not closed.
1177 Ignore any content inside it.
1179 2004-02-10 Jackson Harper <jackson@ximian.com>
1181 * AspTokenizer.cs: Collect discarded characters that might be used
1182 in client side scripts. Patch by Liyu Liu.
1183 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
1185 2004-02-10 Jackson Harper <jackson@ximian.com>
1187 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
1190 2004-01-30 Jackson Harper <jackson@ximian.com>
1192 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
1193 the build method takes strings not ints.
1195 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1197 * AspGenerator.cs: handle more possible errors in global.asax file.
1199 * BaseCompiler.cs: added utility methods for creating <object> related
1200 properties and fields.
1202 * GlobalAsaxCompiler.cs: keep around applications and session scope
1203 objects builders. Also a list of imports and assemblies added in
1206 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
1208 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1210 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
1211 pages more than once. Thanks to Eric Lindvall for pointing this out.
1213 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1215 * TemplateControlCompiler.cs: allow handling subproperties for other
1216 types than Style and Font. Fixes bug #53217.
1218 2004-01-16 Jackson Harper <jackson@ximian.com>
1220 * TagAttribute.cs: attributes can be stored as encoded html so we
1223 2004-01-14 Jackson Harper <jackson@ximian.com>
1225 * TemplateControlCompiler.cs: Is a user control is cached and
1226 shared use the controls type hashcode for the GUID so it will be
1227 the same across instances.
1229 2004-01-13 Jackson Harper <jackson@ximian.com>
1231 * TemplateControlCompiler.cs: If an item has the partial caching
1232 attribute build a PartialCachingControl in the parents __Build method.
1233 * BaseCompiler.cs: Add a method for adding class attributes to the
1235 * UserControlCompiler.cs: If caching is enabled on a user control
1236 add the PartialCachingAttribute to it.
1238 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1240 * PageCompiler.cs: invoke Request.ValidateInput if required.
1242 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1244 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
1245 #52521. Patch by liyul@hotmail.com.
1247 2003-12-25 Jackson Harper <jackson@ximian.com>
1249 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
1252 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1254 * PageCompiler.cs: assign the ErrorPage property if provided.
1256 2003-12-15 Jackson Harper <jackson@ximian.com>
1258 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
1259 method if they are set.
1261 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1263 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
1264 fail when runat="server" is applied to <tbody> with a parse error
1265 instead of waiting for a compilation error. Fixes bug #52157.
1267 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1269 * AspGenerator.cs: basic checking of ID validity. Throw a
1270 ParseException when mixing languages.
1272 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1274 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
1275 FrameworInitialize() if provided in @Page.
1279 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1281 * TemplateControlCompiler.cs: support for expressions of
1282 System.Drawing.Size type. Allow getting Color from comma separated
1283 numbers, which is not allowed by ColorConverter.
1285 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
1287 2003-11-13 Jackson Harper <jackson@ximian.com>
1289 * PageCompiler.cs: Call InitOutputCache when the OutputCache
1292 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1294 * AspGenerator.cs: use fileEncoding from configuration files.
1296 * PageCompiler.cs: add assign statements for ContentType,
1297 ResponseEncoding and CodePage if supplied.
1299 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1301 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
1302 a return statement for user controls with 'void' return type.
1304 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1306 * AspParser.cs: fixed bug #49627.
1308 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1310 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
1312 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1314 * Directive.cs: new attribute for @Page directive in 1.1.
1316 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1319 * TagAttributes.cs: allow duplicated runat=server attributes and display
1320 error page when duplicated attributes and runat is specified.
1322 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1324 * AspTokenizer.cs: moved token numbers above unicode.
1326 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1328 * AspGenerator.cs: don't process code render tags inside scripts. Check
1329 the language of the script and treat javascript as verbatim input.
1332 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1334 * TemplateControlCompiler.cs: fixed bug #48212.
1336 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1338 * WebServiceCompiler.cs: remove the temporary files here too.
1340 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1342 * AspGenerator.cs: fixed bug #46429.
1344 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1346 * Directive.cs: support @WebHandler.
1348 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1350 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
1352 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1354 * BaseCompiler.cs: first look for cached items, then generate the tree.
1355 This should speed things up.
1357 * CachingCompiler.cs: when compiling web services, use the full path of
1358 the .asmx file as key when caching.
1360 * WebServiceCompiler.cs: first look for cached items, then generate
1363 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1365 * AspParser.cs: more useful error information,
1368 * CachingCompiler.cs: honor the debug="true" option.
1370 * TemplateControlCompiler.cs: small fixes for templates.
1372 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1374 * BaseCompiler.cs: made Compiler property virtual.
1376 * CachingCompiler.cs: added support for compiling web services.
1378 * WebServiceCompiler.cs: implemented.
1380 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1382 * CachingCompiler.cs: fixed bug #43477.
1384 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1387 * AspTokenizer.cs: fixed bugs #43206 and #43371.
1389 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1391 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
1392 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
1395 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1397 * CompilationException.cs: don't add duplicated lines in the case that
1398 mcs reports several errors for the same one.
1400 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1402 * AspGenerator.cs: fully support including files, ie., treat them just
1403 as C treats #includes.
1405 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1409 * TagType.cs: Added support for server side includes.
1411 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1413 * CSCompiler.cs: actually add the list of referenced assemblies to the
1414 compiler options. Throw a CompilationException if there's an error.
1416 * CachingCompiler.cs: added a method to compile directly from a source
1419 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1421 * AspGenerator.cs: copy the location before setting the value for the
1424 * BaseCompiler.cs: changed parameters for CompilationException.
1426 * CompilationException.cs: it takes now line numbers and error
1427 descriptions from the CompilerErrorCollection.
1429 * Location.cs: used when a copy of an ILocation is needed.
1431 * ParseException.cs: implemented new methods to provide line numbers
1434 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
1436 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1438 * AspGenerator.cs: also support data bind syntax inside tags not
1439 processed as controls. Added debugging method.
1441 * TemplateControlCompiler.cs: reset the number of data binding handlers
1442 in the proper place. Small fix when getting the container type.
1444 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1446 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
1449 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1451 * AspGenerator.cs: handle code render syntax in tag attributes.
1453 * AspParser.cs: the constructor now takes a TextReader.
1455 * TemplateControlCompiler.cs: removed comment.
1457 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1459 * TemplateControlCompiler.cs: added support for data bound properties.
1461 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1463 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
1464 instead of their names.
1466 * AspElements.cs: removed. No longer needed.
1468 * AspGenerator.cs: this file is now in charge of interfacing between
1469 the parser and the compiler. It manages the creation of the
1470 ControlBuilder tree and the compilation of the CodeDOM tree.
1472 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
1473 of different Types, tags are just and id and a set of attributes.
1474 Implement ILocation interface.
1476 * AspTokenizer.cs: added a few methods to help the parser implementing
1479 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
1480 common to appliaction, page and user control, including the actual
1481 compilation and error handling.
1483 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
1485 * CachingCompiler.cs: simplified to use the new interfaces.
1487 * CompilationException.cs: it's now using CompilationResult to report
1490 * CompilationResult.cs: Removed file.
1492 * Directive.cs: to check for the validity of a directive.
1494 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
1497 * ILocation.cs: interface used to now the exact place where a parse
1500 * PageCompiler.cs: generates a couple of methods that are only used in
1503 * ParseException.cs: use the ILocation interface.
1505 * TagAttributes.cs: handles the attributes of the tags parsed.
1507 * TagType.cs: an enum for the different kinds of tags.
1509 * TemplateControlCompiler.cs: this is the one that does most of the
1510 conversion from teh ControlBuilder tree into a CodeDOM tree.
1512 * UserControlCompiler.cs: simplified as most of the work is done in
1515 * WebServiceCompiler.cs: dummy.
1517 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1519 * AspComponentFoundry.cs: added GetComponentType method.
1521 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1523 * AspTokenizer.cs: allow quotes inside server tags that are part of
1526 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
1529 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1531 * AspGenerator.cs: generate correct appbase path. It was working with
1532 mcs but not with csc.
1534 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
1536 * CachingCompiler.cs: quote source file.
1538 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1540 * AspGenerator.cs: now the Inherits attribute works as expected for
1543 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1545 * CompilationException.cs:
1546 * ParseException.cs: display the correct line number in error messages.
1548 * AspElements.cs: added TargetSchema attribute for control. It's
1551 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1553 * BaseCompiler.cs: fixed the hack to work under windows.
1554 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
1556 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1558 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
1560 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
1562 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
1563 app's private bin path
1565 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1569 * CachingCompiler.cs:
1570 * CompilationResult.cs:
1571 * GlobalAsaxCompiler.cs:
1573 * UserControlCompiler.cs: recompile the page if dependencies change.
1575 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1577 * AspGenerator.cs: corrected typo and wrong fix.
1579 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1581 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
1582 when used explicitly.
1584 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1586 * AspElements.cs: get the property Type for controls that use
1587 ParseChildren with a property name.
1589 * AspGenerator.cs: generate correct signature for the method that
1590 adds controls to the default property in ParseChildren.
1592 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1594 * AspGenerator.cs: rethrow exceptions that may come from parsing or
1595 compilation if a user control.
1597 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1599 * AspGenerator.cs: throw ParseException on parse
1602 * AspParser.cs: added Line and Column props.
1604 * CompilationException.cs: derives now from HtmlizedException.
1606 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
1608 * GlobalAsaxCompiler.cs:
1610 * UserControlCompiler.cs: pass the file name in the CompilationResult.
1612 * ParseException.cs: new exception.
1615 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1617 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
1620 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1622 * AspParser.cs: the parser fires events when it parses an element.
1624 * GlobalAsaxCompiler.cs:
1626 * UserControlCompiler.cs:
1627 * AspElements.cs: modified to use the new parser interface.
1629 * AspGenerator.cs: modified to use the new parser. Merge multiple text
1630 strings into one single LiteralControl.
1632 * AspTokenizer.cs: added Line and Column properties.
1634 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1636 * AspParser.cs: fixed bug #36929.
1638 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
1642 * CachingCompiler.cs: changes to work around spaces and
1643 directory-separators in the local filesystem.
1645 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1647 * AspGenerator.cs: make the generated file compile with csc after last
1650 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1652 * AspGenerator.cs: removed unused variable. Added support for
1653 properties/fields of type string [].
1655 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1657 * AspGenerator.cs: modified loading of the parent type now that
1658 Type.GetType is fixed.
1660 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1662 * AspGenerator.cs: cast to Control if the container does not implement
1665 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1667 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
1669 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1671 * AspElements.cs: attributes without value lacked a space afterwards.
1673 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1675 * AspGenerator.cs: functions for columns don't return anything. Fixed
1678 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1680 * AspGenerator.cs: add data bound controls to code render function.
1682 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1684 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
1685 controls. You can register 1 assembly plus any number of user controls
1686 under the same prefix.
1688 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
1689 Hack to allow @Register access to assemblies in other places than bin
1692 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1694 * AspElements.cs: added 'codebehind' attribute for page, control and
1695 application. It's ignored by MS, but allowed. Fixed typo.
1697 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1699 * AspGenerator.cs: fixed EnableSesssionState handling.
1701 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1703 * AspGenerator.cs: don't generate instance fields for pages/controls
1704 when the base class specified in the Inherits attribute already has
1705 them. Closes bug #36262.
1707 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1709 * AspGenerator.cs: generate code like 'control.XXX = value' also for
1710 public fields (properties were being handled in that way too).
1712 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1714 * AspGenerator.cs: now it uses the current HttpContext when creating
1715 user controls. TemplateSourceDirectory is no longer a dummy value.
1717 * GlobalAsaxCompiler.cs:
1719 * UserControlCompiler.cs: set the context which will be used to locate
1722 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1724 * AspGenerator.cs: added support for AutoEventWireup attribute in
1727 * CompilationResult.cs:
1728 * GlobalAsaxCompiler.cs:
1730 * UserControlCompiler.cs: store the options.
1732 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1734 * AspElements.cs: new method Tag.GetElements
1735 used to parse the inner contents of a tag looking for data binding or
1738 New property HtmlControlTag.ParseChildren allows
1739 differentiation of a couple of HtmlControls that has children as
1740 properties (namely HtmlTable and HtmlTableRow).
1742 * AspGenerator.cs: fixed container semantics to
1743 match BindingContainer one. Implemented Inherits attribute for page and
1746 Support HtmlControls that has ChildrenAsProperties.
1748 Generate code for data binding functions that matches the semantic of
1751 Handle data bound and code render attribute values.
1753 Set proper value return for TemplateSourceDirectory. Should be relative
1756 * BaseCompiler.cs: moved CompilerOptions and
1757 References handling here.
1759 * CachingCompiler.cs: copy result of compilation.
1761 * CompilationException.cs: simple ToString () implementation.
1763 * CompilationResult.cs: implemented CopyFrom and ToString.
1765 * GlobalAsaxCompiler.cs:
1767 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
1768 in the base class. Get all the types in the generated assembly and
1769 look for one that derives from the correct Type.
1771 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1773 * AspElements.cs: added @Application directive.
1775 * AspGenerator.cs: make it work also with application files. We
1776 currently generate an extra private function.
1778 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1780 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
1781 exists, it will be compiled into an HttpApplication derived class
1782 (directly or through a user-provided class).
1784 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1786 * AspGenerator.cs: fixed target file name and generated class name.
1787 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
1789 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1791 * AspGenerator.cs: reworked user control
1792 compilation. Provide the options as a Hashtable for use in compilation.
1793 Create the user controls in the private bin path of the domain.
1795 * BaseCompiler.cs: base class for the various compiler types.
1797 * CachingCompiler.cs: actually executes mcs and do some poor caching
1798 (it will use Cache when finished).
1800 * CompilationException.cs: this exception has enough information to
1801 generate a nice error page.
1802 * CompilationResult.cs: used in caching.
1804 * PageCompiler.cs: now derives from BaseCompiler
1806 * TemplateFactory.cs: no longer needed.
1808 * UserControlCompiler.cs: new class used when compiling user controls.
1809 * WebServiceCompiler.cs: derives from BaseCompiler.
1811 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1813 * AspElements.cs: added ServerComment class.
1814 * AspParser.cs: ignore ServerComments tags. Remove server comments when
1819 * PageCompiler.cs: check if the type is already cached before generating
1821 * TemplateFactory.cs: if csFile parameter is null, only checks if we
1822 already have the page compiled.
1824 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1826 * AspGenerator.cs: undo one-liner change.
1828 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1830 * AspGenerator.cs: removed a few hacks no longer needed.
1832 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1834 * PageCompiler.cs: tracing.
1835 * TemplateFactory.cs: cache compiled types and tracing.
1836 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
1838 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1840 * AspComponentFoundry.cs: fixed typo.
1841 * TemplateFactory.cs: use csc style options.
1842 * AspGenerator.cs: don't use FileDependencies property of base class.
1844 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846 * System.Web.Compilation/AspElements.cs:
1847 * System.Web.Compilation/AspGenerator.cs:
1848 * System.Web.Compilation/AspParser.cs:
1849 * System.Web.Compilation/PageCompiler.cs:
1850 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
1851 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
1853 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1855 * AspElements.cs: added WebService directive.
1856 * WebServiceCompiler.cs: New file.
1858 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860 * PageCompiler.cs: fixed compilation.
1862 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1864 * PageCompiler.cs: generate C# file using AspGenerator.
1866 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1868 * AspComponentFoundry.cs: LookupFoundry now returns bool.
1869 * AspGenerator.cs: New file.
1871 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1873 * AspComponentFoundry.cs: New file.
1874 * AspElements.cs: renamed Component to Aspcomponent.
1876 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1883 * TemplateFactory.cs: first steps to move xsp into System.Web.