1 2006-03-07 Chris Toshok <toshok@ximian.com>
3 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
4 (Init): move the CreateMethods call here.
6 2006-03-02 Chris Toshok <toshok@ximian.com>
8 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
9 SkinID just after the creation of our object, and right after that
10 call "_ctrl.ApplyStyleSheetSkin (page)".
11 (CreateAssignStatementsFromAttributes): split out the majority of
12 this code to CreateAssignStatementFromAttribute, and change this
13 method to simply a loop over the attribute keys. In the 2.0 case,
14 skip the SkinID property, since that's handled explicitly in
17 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
18 for Theme and StyleSheetTheme.
20 2006-02-23 Chris Toshok <toshok@ximian.com>
22 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
23 change from ContentControlBuilderInternal to
24 ContentBuilderInternal.
25 (AddCodeRender): same.
27 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
31 GetGeneratedType() on the BuildProvider instead of loading the assembly
32 and trying a wild guess at the type name.
34 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
36 * GlobalAsaxCompiler.cs:
38 * TemplateControlCompiler.cs: CreateMethods is now internal.
40 * WebServiceBuildProvider.cs:
41 * PageBuildProvider.cs:
42 * UserControlBuildProvider.cs:
43 * WebHandlerBuildProvider.cs: new build providers.
45 * BuildProvider.cs: add assemblies.
47 * BaseCompiler.cs: expose the provider and the compile unit through
50 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
52 * CompilerType.cs: implemented.
54 * AssemblyBuilder.cs: implemented most of it.
56 * WebServiceCompiler.cs:
57 * CachingCompiler.cs: update 2.0 compiler instance creation code.
59 * ClientBuildManager.cs: implemented some of its methods. Not yet
62 * BuildManager.cs: the more interesting methods are implemented now.
64 * BaseCompiler.cs: delete the temporary files in case of error.
66 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
68 2006-02-07 Chris Toshok <toshok@ximian.com>
70 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
71 calls to AddParsedSubObject to a special statement collection --
72 builder.flushOutputStatements -- not to builder.method.Statements.
73 (InitMethod): initially, set flushOutputStatements to
74 method.Statements. If we're dealing with a ContentPlaceHolder,
75 set flushOutputStatements to be the else block of a conditional we
76 create. This causes the compiled control to fall back to the
77 ContentPlaceHolder's child controls in case there's no
78 corresponding Content template.
79 (AddChildCall): use methodStatements instead of method.Statements.
80 (CreateControlTree): same.
82 * PageCompiler.cs (CreatePropertyAssign): factor out the
83 string,string implementation and add one that also takes a
84 CodeExpression; make the string,string implementation call the
85 three arg one with thisRef.
86 (AddStatementsToInitMethod): make use of the 3-arg form of
87 CreatePropertyAssign to reduce code. Also, add support for
88 setting the page's Title from the parser's Title.
90 2006-02-07 Chris Toshok <toshok@ximian.com>
92 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
93 assign __ctrl.MasterPageFile to our master page, if we have one.
95 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
97 (AddStatementsToInitMethod): and move it here.
99 * TemplateControlCompiler.cs (InitMethod): in the case where
100 builder is a RootBuilder (we're building the __BuildControlTree
101 method), call a virtual method so that subclasses can add their
102 own statements to the method (used by both Page and MasterPage);
103 Also, in the RootBuilder case, the argument should be the
104 parser.ClassName type (the class we're building); lastly, expand
105 the ContentPlaceHolder logic to include all the
106 ContentTemplates/InstantiateIn magic.
107 (AddStatementsToInitMethod): empty virtual method.
108 (AddContentTemplateInvocation): ContentControlBuilder ->
109 ContentControlBuilderInternal.
110 (CreateControlTree): same.
111 (CallBaseFrameworkInitialize): new function, create call to
112 base.FrameworkInitialize.
113 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
115 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
117 * IgnoreFileBuildProvider.cs: it's not public.
118 * BuildProvider.cs: mostly implemented.
120 2006-02-01 Chris Toshok <toshok@ximian.com>
122 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
123 GetSection instead of GetWebApplicationSection.
125 * CachingCompiler.cs: same.
127 * AspGenerator.cs: same.
129 * BaseCompiler.cs: same.
131 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
135 2006-01-22 Chris Toshok <toshok@ximian.com>
137 * IgnoreFileBuildProvider.cs: build provider which does nothing.
139 2006-01-22 Chris Toshok <toshok@ximian.com>
141 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
142 Hashtable ctor to silence a couple of warning.
143 (CompoundFoundry.ctor): same
145 * Directive.cs (InitHash): use a 2.0 friendly form of the
146 Hashtable ctor to silence a couple of warning.
148 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
149 Hashtable ctor to silence a warning.
150 (GetDictionary): same.
152 2006-01-22 Chris Toshok <toshok@ximian.com>
154 * AppSettingsExpressionBuilder.cs: implement this, patterning it
155 after an example on msdn. Also, enable the ExpressionEditor
156 attribute, but use the string rather than the Type overload so we
157 won't have yet another circular dep.
159 * ConnectionStringsExpressionBuilder.cs: partial implementation.
160 Same deal with the ExpressionEditor attribute.
162 * ResourceExpressionBuilder.cs: same deal with the
163 ExpressionEditor attribute.
165 2006-01-20 Chris Toshok <toshok@ximian.com>
167 * ResourceExpressionBuilder.cs (ParseExpression): implement.
169 * ResourceExpressionFields.cs: implement.
171 2006-01-20 Chris Toshok <toshok@ximian.com>
173 * ClientBuildManagerParameter.cs: implement.
175 * ClientBuildManagerCallback.cs: this class contains an empty
176 default implementation.
178 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
180 * AspGenerator.cs: add support for 'src' in <script runat="server">.
183 2006-01-04 Chris Toshok <toshok@ximian.com>
185 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
188 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
190 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
192 * AspGenerator.cs: fix yesterday's fix.
194 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
196 * AspGenerator.cs: only do special processing for <script> if it has
197 the runat="server" attribute. Fixes bug #76918.
199 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
201 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
204 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
206 * TemplateControlCompiler.cs: handle data bound attributes for html
207 controls. Fixes bug #76785.
209 2005-11-28 Chris Toshok <toshok@ximian.com>
211 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
213 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
215 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
217 * WebServiceCompiler.cs: fixed caching for web handlers.
219 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
221 * AspParser.cs: don't change case for verbatim IDs.
224 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
226 * AspParser.cs: when processing verbatim input, throw if we reach EOF
227 before the expected end of the data.
229 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
231 * CachingCompiler.cs:
232 * WebServiceCompiler.cs: when caching a type loaded from an assembly
233 that we didn't compile, make it depend on the file itself, not on a
234 non-existing cache key. This problem affected performance of web
235 services and .ashx, making unnecessary extra calls to LoadFrom every
236 time the cache was cleared.
238 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
240 * BaseCompiler.cs: set the domain's DynamicBase property instead of
241 guessing it in BaseCompiler.
243 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
245 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
246 75146 for pages/controls.
248 2005-08-09 Miguel de Icaza <miguel@novell.com>
250 * WebServiceCompiler.cs: Use the new DynamicDir method.
252 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
253 since this value is null most of the time, compute the real value.
255 Added Bonus: if the directory has some kind of permission problem,
256 try a different directory name.
258 2005-07-13 Miguel de Icaza <miguel@novell.com>
260 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
261 BaseParser.Context for the context.
263 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
267 * TemplateControlCompiler.cs: use invariant culture versions of starts/
270 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
272 * TemplateControlCompiler.cs: comparison between member name and the
273 first part of the id provided by the user should also be
274 case-insensitive. Fixes bug #75379.
276 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
278 * CachingCompiler.cs: use cache.InsertPrivate.
279 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
282 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
284 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
285 as all the others, when compiling an assembly from a Src file. Fixes
288 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
290 * TemplateControlCompiler.cs: if the property is not found, don't forget
291 about trying the field.
293 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
295 * Directive.cs: Register the MasterType directive.
296 * PageCompiler.cs: If a MasterType is specified, add a type specific
297 Master property. All this fixes bug #75192.
299 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
301 * TemplateControlCompiler.cs: when mapping an attribute name to a field
302 or property name, there's no need to try with every property and field,
303 but just the one found when searching by name (no case). There was one
304 call to ProcessPropertiesAndFields per property or field until found,
305 now only one if the property/field is found, none otherwise.
307 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
309 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
310 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
313 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
315 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
316 the assembly file there and be able to load it. Thanks to Rogerio and
319 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
321 * AspParser.cs: InvariantCulture love.
323 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
325 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
326 as the one in Master is protected. Fixes bug #75157.
328 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
330 * AspComponentFoundry.cs: tagnames have precedence over types in
331 assemblies when they use the same prefix. Fixes bug #71855.
333 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
335 * WebServiceCompiler.cs: Create the temp directory before
336 creating the web service source code file.
338 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
340 * AspGenerator.cs: when checking languages, try to match other aliases
341 too (ie, 'cs' == 'c#').
343 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
345 * BaseCompiler.cs: check that DynamicBase directory exists before
346 creating the TempFileCollection.
348 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
350 * AspGenerator.cs: use a stack for non-server tags even before getting
351 to a form. Fixes bug #70274.
353 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
355 * AspParser.cs: don't error out on ill formed tags if it's not a server
356 tag (ie, allow something like '<table align="left cellpadding="0">' to
357 work, as MS does. Fixes bug #67909.
359 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
360 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
361 @Page/@Control directives to CodeDOM (VB.NET support)
363 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
365 * AspParser.cs: Fixed parsing of data binding tags in server
366 tag attributes. Allow <%...%> blocks not assigned to
367 attributes in client tags.
368 * TagAttributes.cs: Make sure that data binding blocks in server
369 tags are always assigned to attributes.
371 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
373 * TemplateControlCompiler.cs: Implemented support for two-way
376 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
378 * TemplateControlCompiler.cs: Use the new BindingContainerType
379 property to find the type of the binding container.
381 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
383 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
384 for primitive types. Parse an empty color string as Color.Empty.
385 Get the converter for a property using its PropertyDescriptor.
387 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
389 * TemplateControlCompiler.cs: Don't autogenerate IDs for
390 controls inside Content template.
392 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
394 * TemplateControlCompiler.cs: make typedesc.aspx work again.
396 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
398 * ExpressionBuilderContext.cs:
399 * ExpressionBuilder.cs: implemented.
401 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
403 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
405 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
407 * TemplateControlCompiler.cs: When generating a property value,
408 check for TypeConverterAttribute in the PropertyInfo, not only in the
410 Implemented code generation using InstanceDescriptor, when the type
411 converter supports conversion to that type.
413 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
415 * Directive.cs: Added MASTER directive.
416 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
417 * PageCompiler.cs: Set the master file name when generating the page.
418 * TemplateControlCompiler.cs: When generating the method for a
419 content holder, register the content holder in the base MasterPage.
420 Added method for registering a Content control for a MasterPage.
421 Generate code for Content controls.
423 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
425 * TemplateControlCompiler.cs: Get the container type from the
426 template (if it was defined using TemplateContainerAttribute.
428 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
430 * AspGenerator.cs: correctly process script tags that self-closing.
433 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
435 * CachingCompiler.cs: when compiling a single .cs file, add the file
436 itself to dependencies. Fixes bug #68788.
438 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
440 * ControlBuilder.cs: don't close server tags when we get to a closing
441 tag that is not applied to a server control. Fixes bug #60323.
443 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
445 * WebServiceCompiler.cs: fix buglet in my last commit.
447 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
450 * CachingCompiler.cs:
451 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
452 for ashx/asmx. Otherwise we need to open the file and check for the
453 class name in there. Thanks to Ben for pointing this out.
455 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
458 * AspTokenizer.cs: prevent quotes from being swallowed when we're
459 inside a server tag and they are the next non-whitespace character.
462 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
464 * CachingCompiler.cs: don't try to watch for changes in system
465 assemblies. Fixes bug #64871.
467 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
469 * AspGenerator.cs: handle builders that need to process inner text
472 * Location.cs: added setters for the properties.
474 2004-08-02 Duncan Mak <duncan@ximian.com>
476 * BuildProviderResultFlags.cs:
477 * IImplicitResourceProvider.cs:
478 * ImplicitResourceKey.cs:
479 * IResourceReader.cs: Added.
481 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
483 * AspGenerator.cs: the path for file was treated as virtual, but it's
484 physical. Fixes bug #61524.
486 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
488 * AspParser.cs: fixed case-sensitivity issues with #include and its
489 attributes. Closes #61429.
491 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
494 * WebServiceCompiler.cs: really create the dlls under DynamicBase
496 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
498 * TemplateControlCompiler.cs: for system colors, use SystemColors class
499 instead of Color. Fixes bug #60249.
501 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
503 * BaseCompiler.cs: try getting the Type from the cache before doing the
504 real work. Remove temporary files right after successful compilation.
506 * CachingCompiler.cs: added GetTypeFromCache.
508 * UserControlCompiler.cs: nothing interesting.
510 * WebServiceCompiler.cs: try getting the Type from the cache before
511 doing anything else. Remove temp files on sucessful compilation.
513 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
516 * CachingCompiler.cs: use a different prefix when caching compiler
519 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
521 * BaseCompiler.cs: dynamicBase is now protected. Check
522 MONO_ASPNET_NODELETE here.
524 * TemplateControlCompiler.cs: if the type is not known but has a
525 TypeConverter, invoke ConvertFromString in the generated code.
527 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
528 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
530 * CachingCompiler.cs: updated compilation of web services and simple
533 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
535 * CSCompiler.cs: removed.
537 * CachingCompiler.cs: language independent compilation for single files.
539 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
542 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
543 * CachingCompiler.cs: use HttpRuntime.Cache.
545 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
547 * PageCompiler.cs: fixed Trace and add support for Buffer.
549 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
551 * PageCompiler.cs: override CreateConstructor to add assignment for
554 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
556 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
557 of CodeObjectCreateExpression for the render method delegate. Thanks
560 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
562 * BaseCompiler.cs: use DynamicBase for the output assemblies.
564 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
566 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
568 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
570 * AspParser.cs: indent a few lines.
571 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
572 attribute value. This way we can simulate reading 2 characters ahead
573 (one in ungetc and the other in Peek) and work with values like
574 text/javascript. Fixes bug #57302.
576 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
578 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
580 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
582 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
584 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
586 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
588 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
590 * AspGenerator.cs: error out when <object> server tag is not closed.
591 Ignore any content inside it.
593 2004-02-10 Jackson Harper <jackson@ximian.com>
595 * AspTokenizer.cs: Collect discarded characters that might be used
596 in client side scripts. Patch by Liyu Liu.
597 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
599 2004-02-10 Jackson Harper <jackson@ximian.com>
601 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
604 2004-01-30 Jackson Harper <jackson@ximian.com>
606 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
607 the build method takes strings not ints.
609 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
611 * AspGenerator.cs: handle more possible errors in global.asax file.
613 * BaseCompiler.cs: added utility methods for creating <object> related
614 properties and fields.
616 * GlobalAsaxCompiler.cs: keep around applications and session scope
617 objects builders. Also a list of imports and assemblies added in
620 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
622 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
624 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
625 pages more than once. Thanks to Eric Lindvall for pointing this out.
627 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
629 * TemplateControlCompiler.cs: allow handling subproperties for other
630 types than Style and Font. Fixes bug #53217.
632 2004-01-16 Jackson Harper <jackson@ximian.com>
634 * TagAttribute.cs: attributes can be stored as encoded html so we
637 2004-01-14 Jackson Harper <jackson@ximian.com>
639 * TemplateControlCompiler.cs: Is a user control is cached and
640 shared use the controls type hashcode for the GUID so it will be
641 the same across instances.
643 2004-01-13 Jackson Harper <jackson@ximian.com>
645 * TemplateControlCompiler.cs: If an item has the partial caching
646 attribute build a PartialCachingControl in the parents __Build method.
647 * BaseCompiler.cs: Add a method for adding class attributes to the
649 * UserControlCompiler.cs: If caching is enabled on a user control
650 add the PartialCachingAttribute to it.
652 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
654 * PageCompiler.cs: invoke Request.ValidateInput if required.
656 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
658 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
659 #52521. Patch by liyul@hotmail.com.
661 2003-12-25 Jackson Harper <jackson@ximian.com>
663 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
666 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
668 * PageCompiler.cs: assign the ErrorPage property if provided.
670 2003-12-15 Jackson Harper <jackson@ximian.com>
672 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
673 method if they are set.
675 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
677 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
678 fail when runat="server" is applied to <tbody> with a parse error
679 instead of waiting for a compilation error. Fixes bug #52157.
681 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
683 * AspGenerator.cs: basic checking of ID validity. Throw a
684 ParseException when mixing languages.
686 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
688 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
689 FrameworInitialize() if provided in @Page.
693 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
695 * TemplateControlCompiler.cs: support for expressions of
696 System.Drawing.Size type. Allow getting Color from comma separated
697 numbers, which is not allowed by ColorConverter.
699 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
701 2003-11-13 Jackson Harper <jackson@ximian.com>
703 * PageCompiler.cs: Call InitOutputCache when the OutputCache
706 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
708 * AspGenerator.cs: use fileEncoding from configuration files.
710 * PageCompiler.cs: add assign statements for ContentType,
711 ResponseEncoding and CodePage if supplied.
713 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
715 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
716 a return statement for user controls with 'void' return type.
718 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
720 * AspParser.cs: fixed bug #49627.
722 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
724 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
726 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
728 * Directive.cs: new attribute for @Page directive in 1.1.
730 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
733 * TagAttributes.cs: allow duplicated runat=server attributes and display
734 error page when duplicated attributes and runat is specified.
736 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
738 * AspTokenizer.cs: moved token numbers above unicode.
740 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
742 * AspGenerator.cs: don't process code render tags inside scripts. Check
743 the language of the script and treat javascript as verbatim input.
746 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
748 * TemplateControlCompiler.cs: fixed bug #48212.
750 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
752 * WebServiceCompiler.cs: remove the temporary files here too.
754 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
756 * AspGenerator.cs: fixed bug #46429.
758 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
760 * Directive.cs: support @WebHandler.
762 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
764 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
766 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
768 * BaseCompiler.cs: first look for cached items, then generate the tree.
769 This should speed things up.
771 * CachingCompiler.cs: when compiling web services, use the full path of
772 the .asmx file as key when caching.
774 * WebServiceCompiler.cs: first look for cached items, then generate
777 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
779 * AspParser.cs: more useful error information,
782 * CachingCompiler.cs: honor the debug="true" option.
784 * TemplateControlCompiler.cs: small fixes for templates.
786 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
788 * BaseCompiler.cs: made Compiler property virtual.
790 * CachingCompiler.cs: added support for compiling web services.
792 * WebServiceCompiler.cs: implemented.
794 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
796 * CachingCompiler.cs: fixed bug #43477.
798 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
801 * AspTokenizer.cs: fixed bugs #43206 and #43371.
803 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
805 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
806 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
809 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
811 * CompilationException.cs: don't add duplicated lines in the case that
812 mcs reports several errors for the same one.
814 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
816 * AspGenerator.cs: fully support including files, ie., treat them just
817 as C treats #includes.
819 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
823 * TagType.cs: Added support for server side includes.
825 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
827 * CSCompiler.cs: actually add the list of referenced assemblies to the
828 compiler options. Throw a CompilationException if there's an error.
830 * CachingCompiler.cs: added a method to compile directly from a source
833 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
835 * AspGenerator.cs: copy the location before setting the value for the
838 * BaseCompiler.cs: changed parameters for CompilationException.
840 * CompilationException.cs: it takes now line numbers and error
841 descriptions from the CompilerErrorCollection.
843 * Location.cs: used when a copy of an ILocation is needed.
845 * ParseException.cs: implemented new methods to provide line numbers
848 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
850 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
852 * AspGenerator.cs: also support data bind syntax inside tags not
853 processed as controls. Added debugging method.
855 * TemplateControlCompiler.cs: reset the number of data binding handlers
856 in the proper place. Small fix when getting the container type.
858 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
860 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
863 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
865 * AspGenerator.cs: handle code render syntax in tag attributes.
867 * AspParser.cs: the constructor now takes a TextReader.
869 * TemplateControlCompiler.cs: removed comment.
871 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
873 * TemplateControlCompiler.cs: added support for data bound properties.
875 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
877 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
878 instead of their names.
880 * AspElements.cs: removed. No longer needed.
882 * AspGenerator.cs: this file is now in charge of interfacing between
883 the parser and the compiler. It manages the creation of the
884 ControlBuilder tree and the compilation of the CodeDOM tree.
886 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
887 of different Types, tags are just and id and a set of attributes.
888 Implement ILocation interface.
890 * AspTokenizer.cs: added a few methods to help the parser implementing
893 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
894 common to appliaction, page and user control, including the actual
895 compilation and error handling.
897 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
899 * CachingCompiler.cs: simplified to use the new interfaces.
901 * CompilationException.cs: it's now using CompilationResult to report
904 * CompilationResult.cs: Removed file.
906 * Directive.cs: to check for the validity of a directive.
908 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
911 * ILocation.cs: interface used to now the exact place where a parse
914 * PageCompiler.cs: generates a couple of methods that are only used in
917 * ParseException.cs: use the ILocation interface.
919 * TagAttributes.cs: handles the attributes of the tags parsed.
921 * TagType.cs: an enum for the different kinds of tags.
923 * TemplateControlCompiler.cs: this is the one that does most of the
924 conversion from teh ControlBuilder tree into a CodeDOM tree.
926 * UserControlCompiler.cs: simplified as most of the work is done in
929 * WebServiceCompiler.cs: dummy.
931 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
933 * AspComponentFoundry.cs: added GetComponentType method.
935 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
937 * AspTokenizer.cs: allow quotes inside server tags that are part of
940 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
943 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
945 * AspGenerator.cs: generate correct appbase path. It was working with
946 mcs but not with csc.
948 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
950 * CachingCompiler.cs: quote source file.
952 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
954 * AspGenerator.cs: now the Inherits attribute works as expected for
957 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
959 * CompilationException.cs:
960 * ParseException.cs: display the correct line number in error messages.
962 * AspElements.cs: added TargetSchema attribute for control. It's
965 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967 * BaseCompiler.cs: fixed the hack to work under windows.
968 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
970 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
972 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
974 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
976 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
977 app's private bin path
979 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
983 * CachingCompiler.cs:
984 * CompilationResult.cs:
985 * GlobalAsaxCompiler.cs:
987 * UserControlCompiler.cs: recompile the page if dependencies change.
989 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
991 * AspGenerator.cs: corrected typo and wrong fix.
993 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
995 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
996 when used explicitly.
998 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1000 * AspElements.cs: get the property Type for controls that use
1001 ParseChildren with a property name.
1003 * AspGenerator.cs: generate correct signature for the method that
1004 adds controls to the default property in ParseChildren.
1006 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1008 * AspGenerator.cs: rethrow exceptions that may come from parsing or
1009 compilation if a user control.
1011 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1013 * AspGenerator.cs: throw ParseException on parse
1016 * AspParser.cs: added Line and Column props.
1018 * CompilationException.cs: derives now from HtmlizedException.
1020 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
1022 * GlobalAsaxCompiler.cs:
1024 * UserControlCompiler.cs: pass the file name in the CompilationResult.
1026 * ParseException.cs: new exception.
1029 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1031 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
1034 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1036 * AspParser.cs: the parser fires events when it parses an element.
1038 * GlobalAsaxCompiler.cs:
1040 * UserControlCompiler.cs:
1041 * AspElements.cs: modified to use the new parser interface.
1043 * AspGenerator.cs: modified to use the new parser. Merge multiple text
1044 strings into one single LiteralControl.
1046 * AspTokenizer.cs: added Line and Column properties.
1048 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1050 * AspParser.cs: fixed bug #36929.
1052 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
1056 * CachingCompiler.cs: changes to work around spaces and
1057 directory-separators in the local filesystem.
1059 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1061 * AspGenerator.cs: make the generated file compile with csc after last
1064 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1066 * AspGenerator.cs: removed unused variable. Added support for
1067 properties/fields of type string [].
1069 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1071 * AspGenerator.cs: modified loading of the parent type now that
1072 Type.GetType is fixed.
1074 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1076 * AspGenerator.cs: cast to Control if the container does not implement
1079 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1081 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
1083 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1085 * AspElements.cs: attributes without value lacked a space afterwards.
1087 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1089 * AspGenerator.cs: functions for columns don't return anything. Fixed
1092 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1094 * AspGenerator.cs: add data bound controls to code render function.
1096 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1098 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
1099 controls. You can register 1 assembly plus any number of user controls
1100 under the same prefix.
1102 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
1103 Hack to allow @Register access to assemblies in other places than bin
1106 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1108 * AspElements.cs: added 'codebehind' attribute for page, control and
1109 application. It's ignored by MS, but allowed. Fixed typo.
1111 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1113 * AspGenerator.cs: fixed EnableSesssionState handling.
1115 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1117 * AspGenerator.cs: don't generate instance fields for pages/controls
1118 when the base class specified in the Inherits attribute already has
1119 them. Closes bug #36262.
1121 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1123 * AspGenerator.cs: generate code like 'control.XXX = value' also for
1124 public fields (properties were being handled in that way too).
1126 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1128 * AspGenerator.cs: now it uses the current HttpContext when creating
1129 user controls. TemplateSourceDirectory is no longer a dummy value.
1131 * GlobalAsaxCompiler.cs:
1133 * UserControlCompiler.cs: set the context which will be used to locate
1136 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1138 * AspGenerator.cs: added support for AutoEventWireup attribute in
1141 * CompilationResult.cs:
1142 * GlobalAsaxCompiler.cs:
1144 * UserControlCompiler.cs: store the options.
1146 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1148 * AspElements.cs: new method Tag.GetElements
1149 used to parse the inner contents of a tag looking for data binding or
1152 New property HtmlControlTag.ParseChildren allows
1153 differentiation of a couple of HtmlControls that has children as
1154 properties (namely HtmlTable and HtmlTableRow).
1156 * AspGenerator.cs: fixed container semantics to
1157 match BindingContainer one. Implemented Inherits attribute for page and
1160 Support HtmlControls that has ChildrenAsProperties.
1162 Generate code for data binding functions that matches the semantic of
1165 Handle data bound and code render attribute values.
1167 Set proper value return for TemplateSourceDirectory. Should be relative
1170 * BaseCompiler.cs: moved CompilerOptions and
1171 References handling here.
1173 * CachingCompiler.cs: copy result of compilation.
1175 * CompilationException.cs: simple ToString () implementation.
1177 * CompilationResult.cs: implemented CopyFrom and ToString.
1179 * GlobalAsaxCompiler.cs:
1181 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
1182 in the base class. Get all the types in the generated assembly and
1183 look for one that derives from the correct Type.
1185 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1187 * AspElements.cs: added @Application directive.
1189 * AspGenerator.cs: make it work also with application files. We
1190 currently generate an extra private function.
1192 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1194 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
1195 exists, it will be compiled into an HttpApplication derived class
1196 (directly or through a user-provided class).
1198 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1200 * AspGenerator.cs: fixed target file name and generated class name.
1201 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
1203 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1205 * AspGenerator.cs: reworked user control
1206 compilation. Provide the options as a Hashtable for use in compilation.
1207 Create the user controls in the private bin path of the domain.
1209 * BaseCompiler.cs: base class for the various compiler types.
1211 * CachingCompiler.cs: actually executes mcs and do some poor caching
1212 (it will use Cache when finished).
1214 * CompilationException.cs: this exception has enough information to
1215 generate a nice error page.
1216 * CompilationResult.cs: used in caching.
1218 * PageCompiler.cs: now derives from BaseCompiler
1220 * TemplateFactory.cs: no longer needed.
1222 * UserControlCompiler.cs: new class used when compiling user controls.
1223 * WebServiceCompiler.cs: derives from BaseCompiler.
1225 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1227 * AspElements.cs: added ServerComment class.
1228 * AspParser.cs: ignore ServerComments tags. Remove server comments when
1233 * PageCompiler.cs: check if the type is already cached before generating
1235 * TemplateFactory.cs: if csFile parameter is null, only checks if we
1236 already have the page compiled.
1238 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1240 * AspGenerator.cs: undo one-liner change.
1242 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1244 * AspGenerator.cs: removed a few hacks no longer needed.
1246 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1248 * PageCompiler.cs: tracing.
1249 * TemplateFactory.cs: cache compiled types and tracing.
1250 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
1252 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1254 * AspComponentFoundry.cs: fixed typo.
1255 * TemplateFactory.cs: use csc style options.
1256 * AspGenerator.cs: don't use FileDependencies property of base class.
1258 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1260 * System.Web.Compilation/AspElements.cs:
1261 * System.Web.Compilation/AspGenerator.cs:
1262 * System.Web.Compilation/AspParser.cs:
1263 * System.Web.Compilation/PageCompiler.cs:
1264 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
1265 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
1267 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1269 * AspElements.cs: added WebService directive.
1270 * WebServiceCompiler.cs: New file.
1272 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1274 * PageCompiler.cs: fixed compilation.
1276 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1278 * PageCompiler.cs: generate C# file using AspGenerator.
1280 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1282 * AspComponentFoundry.cs: LookupFoundry now returns bool.
1283 * AspGenerator.cs: New file.
1285 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1287 * AspComponentFoundry.cs: New file.
1288 * AspElements.cs: renamed Component to Aspcomponent.
1290 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1297 * TemplateFactory.cs: first steps to move xsp into System.Web.