1 2008-08-14 Marek Habersack <mhabersack@novell.com>
3 * AspGenerator.cs: do not ignore directives inside HTML comments.
5 * TemplateControlCompiler.cs: .NET allows for whitespace between
6 the directive start (<%) and the directive type character. Added
7 code which copes with such situations correctly.
9 2008-08-13 Marek Habersack <mhabersack@novell.com>
11 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
12 to allow for single quotes and an optional second parameter to the
14 Added an Eval regular expression.
15 Both Bind and Eval calls in data expressions are now converted
16 into a CodeDOM method invocations, to allow support for possible
17 languages which use a different call format (previously code
19 Added a method to construct the Eval invoke expression which
20 simplifies code in other areas.
23 2008-08-06 Marek Habersack <mhabersack@novell.com>
25 * TemplateControlCompiler.cs: handle situation when a property of
26 a control for which we're generating the code is of type
27 'Type'. In such case, variable.GetType() will return
28 System.MonoType, which must not be output to the generated
29 source. Thanks to Robert Jordan for giving the idea for the hack!
31 2008-06-30 Marek Habersack <mhabersack@novell.com>
33 * AspGenerator.cs: hush the warnings and fix invalid type
36 * AssemblyBuilder.cs: hush the warnings and add some debugging
39 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
40 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
41 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
43 2008-06-18 Marek Habersack <mhabersack@novell.com>
45 * TemplateControlCompiler.cs: AddChildCall properly processes the
46 PartialCachingAttribute now.
48 2008-06-11 Marek Habersack <mhabersack@novell.com>
50 * BuildManager.cs: if an error occurs while assigning the
51 requested path to an assembly builder inside BuildAssembly, throw
54 * BaseCompiler.cs: do not generate #line pragma for code which
55 exists only in memory.
57 2008-05-30 Marek Habersack <mhabersack@novell.com>
59 * ClientBuildManager.cs: do not use synthetized event accessors
62 2008-05-28 Marek Habersack <mhabersack@novell.com>
64 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
67 2008-05-19 Marek Habersack <mhabersack@novell.com>
69 * AspGenerator.cs: if the last tag parsed was a code directive,
70 ignore any accumulated text if it's 100% whitespace.
71 Do not parse code render directives inside comments.
73 2008-05-15 Marek Habersack <mhabersack@novell.com>
75 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
76 when adding a foundry to the array list. AssemblyFoundry instances
77 are stacked at the end of the array list in a LIFO manner. That
78 way TagNameFoundry takes precedence over AssemblyFoundry should
79 the two contain the same type.
81 2008-05-14 Marek Habersack <mhabersack@novell.com>
83 * ParseException.cs: location can be null in the FileText property
86 2008-05-07 Marek Habersack <mhabersack@novell.com>
88 * AspGenerator.cs: push the include file directory to the parser
89 include directory stack and pop it after parsing the include, so
90 that the relative file paths are resolved correctly. Fixes bug
93 2008-05-06 Marek Habersack <mhabersack@novell.com>
95 * TemplateControlCompiler.cs: compatibility - added the
96 __stringResource static field to the generated class and a call to
97 SetStringResourcePointer to the FrameworkInitialize method.
99 * PageCompiler.cs: __fileDependencies should also be defined in
101 Page properties assigned in the page directive should be set
102 inside BuildControlTree in the 2.0 profile.
104 2008-04-29 Marek Habersack <mhabersack@novell.com>
106 * WebServiceCompiler.cs: if compiling a body-less web service, try
107 to load the class type from the loaded assemblies before
108 attempting to find it in the assemblies on disk.
110 2008-04-28 Marek Habersack <mhabersack@novell.com>
112 * BuildManager.cs: ignore bad assemblies in the bin/
113 directory. Fixes bug #315816
115 2008-04-26 Marek Habersack <mhabersack@novell.com>
117 * GenericBuildProvider.cs: the Parse () method should reuse the
118 previously opened TextReader when calling generator.Parse (), to
119 avoid opening the input file multiple times. Fixes bug #383881
121 2008-04-25 Marek Habersack <mhabersack@novell.com>
123 * AspGenerator.cs: put some safeguards in, to make sure streams
124 are closed in any case.
126 2008-04-24 Marek Habersack <mhabersack@novell.com>
128 * AspComponentFoundry.cs: added a new GetComponentType overload
129 which returns component source and a boolean flag whether the
130 control was registered from web.config (2.0).
132 2008-04-22 Marek Habersack <mhabersack@novell.com>
134 * BuildManager.cs: ignore also arbitrary exceptions when
135 batch-building an assembly. Fixes bug #323556
137 2008-04-19 Marek Habersack <mhabersack@novell.com>
139 * BuildManager.cs: use absolute virtual path to query the
140 VirtualPathProvider for path existence.
141 When ASP.NET is self-hosted, force
142 non-batch compilation. Fixes bug #380985
144 * ILocation.cs: added a new property, FileText.
146 * Location.cs: added implementation of the ILocation.FileText
149 * ParseException.cs: use the new ILocation.FileText, if defined,
150 to get the file source.
152 * AspGenerator.cs: when TextReader is present, use it to read with
153 the VirtualPathProvider to read the file source. Fixes bug #381364
155 * AspParser.cs: added a new property FileText to provide the file
156 contents which was read in the constructor.
158 2008-04-18 Marek Habersack <mhabersack@novell.com>
160 * BuildManager.cs: when any parsing error occurs during batch
161 building, ignore the file which caused it. If the file with
162 parsing error is the one requested by user, throw the parsing
163 exception. Fixes bug #323742
165 2008-04-15 Marek Habersack <mhabersack@novell.com>
167 * CachingCompiler.cs: dispose of streams the way it should
170 2008-04-09 Marek Habersack <mhabersack@novell.com>
172 * BuildManager.cs: refactoring - the SetCommonParameters and
173 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
174 and made internal static.
175 Do not catch compilation exceptions and wrap them in
176 HttpException, let the CompilationException pass through. Fixes
179 * AppWebReferencesCompiler.cs: added - support for compiling of
180 wsdl files found in the App_WebResources directory. Fixes bug
183 * BuildProvider.cs: refactoring - moved the SetCommonParameters
184 and GetDefaultCompilerTypeForLanguage to BuildManager
186 * WsdlBuildProvider.cs: added the CodeCompilerType property
188 Namespace for the generated code is taken from the wsdl path,
189 relative to App_Code or App_WebReferences, if the wsdl in question
190 is under on of those directories.
191 GenerateCode uses OpenReader () so that VirtualPathProvider works
194 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
195 when generating source from code unit and use
196 WebEncoding.FileEncoding when adding code files to the unit. Fixes
198 Cope with virtualPath being null in BuildAssembly.
199 Reference assemblies specified in web.config when linking.
201 2008-04-08 Marek Habersack <mhabersack@novell.com>
203 * AspComponentFoundry.cs: add loaded assembly to the
204 BuildManager's list of referenced assemblies instead to
205 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
207 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
209 * BuildManager.cs: switched to VirtualPath instead of a string
210 path in several methods.
211 Batch compilation is turned off if we have a custom
212 VirtualPathProvider which implements only the VirtualFile and
213 falls back to DefaultVirtualDirectory implementation for directory
215 Added an internal method AddToReferencedAssemblies.
216 Remove invalidated entry from
217 WebConfigurationManager.ExtraAssemblies.
219 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
221 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
223 * AssemblyBuilder.cs: constructors use the new VirtualPath class
225 AddCodeFile can use the VirtualPathProvider if necessary now.
226 BuildAssembly overloads accept VirtualPath parameter instead of a
229 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
232 2008-03-31 Marek Habersack <mhabersack@novell.com>
234 * AppCodeCompiler.cs: implemented support for AppInitialize (a
235 static method in any class defined in the App_Code source files),
236 ran just after the App_Code assemblies are compiled in order to
237 perform any application initialization actions.
239 2008-03-27 Marek Habersack <mhabersack@novell.com>
241 * BuildManager.cs: AssertVirtualPathExists now queries the
242 VirtualPathProvider for path existence if physical path check
243 fails, before throwing the 404 exception.
245 2008-03-13 Marek Habersack <mhabersack@novell.com>
247 * BuildManager.cs: if we're running in a case-insensitive
248 environment, use case-insensitive comparer for the build caches.
250 2008-02-29 Marek Habersack <mhabersack@novell.com>
252 * BuildManager.cs: implement a mechanism to ignore certain virtual
253 paths when batch compiling. Helps applications which may have
254 .as?x files which won't work on mono for various reasons (one such
255 sample is mojoportal).
257 2008-02-28 Marek Habersack <mhabersack@novell.com>
259 * TemplateControlCompiler.cs: make sure that data-bound attribute
260 assignments properly convert the Bind expression to the Eval
261 one. Fixes bug #362039
263 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
264 controls can contain only them, whitespace and directives. Fixes
267 2008-02-27 Marek Habersack <mhabersack@novell.com>
269 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
270 LoadType method for the 2.0 profile.
272 * CompilationException.cs: use a different format of ErrorMessage
273 for the 2.0+ profile.
275 2008-02-26 Marek Habersack <mhabersack@novell.com>
277 * BuildManager.cs: known file types extensions are now matched
280 2008-02-25 Marek Habersack <mhabersack@novell.com>
282 * TemplateControlCompiler.cs: GetContainerType now checks whether
283 the binding container returned from the builder implements
284 IDataItemContainer (for 2.0+ profiles) and looks for one more
285 property, Rows, if no Items property is found.
287 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
289 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
290 "raw" appsetting value if targetType is null.
292 2008-02-07 Marek Habersack <mhabersack@novell.com>
294 * CompilationException.cs: added new constructor which takes
295 CompilerResults as one of the parameters.
296 Added CompilerOutput property.
298 * AssemblyBuilder.cs: use the new CompilationError constructor.
300 * BuildManager.cs: check for virtualPath existence before
301 attempting to compile the assemblies. Fixes bug #359465
303 2008-02-06 Marek Habersack <mhabersack@novell.com>
305 * GenericBuildProvider.cs: GetGeneratedType may return a type even
306 though the results are null.
308 * AssemblyBuilder.cs: if there are no units, no source files, no
309 resources and no embedded resources in the passed options then
310 do not attempt to compile the assembly. Fixes bug #359325
312 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
313 BuildAssembly may return null results.
315 * BuildManager.cs: protect non-page builds from endless recursion
316 if a non-page file recursively references/includes another file
317 from the same batch. If such case is detected, the recursively
318 referenced file is compiled into a separate assembly and removed
319 from the previous compilation batch. Fixes bug #358742.
320 If AssemblyBuilder returns no results from BuildAssembly, it might
321 mean we're dealing with a compilation of empty .as[hm]x files,
322 with no code and only code-behind in bin/. Do not report an error
323 in that case, only add the compiled types to the cache. Fixes bug
326 2008-02-05 Marek Habersack <mhabersack@novell.com>
328 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
329 non-rooted relative paths to absolute ones now. Fixes bug
332 * GenericBuildProvider.cs: introduced a new abstract method,
333 GetReferencedAssemblies, which is called on descendant builders to
334 get a list of assemblies referenced by the parsed file. Fixes bug
337 * AssemblyBuilder.cs: added a new overload of the
338 AddAssemblyReference method, to be used by build providers to
339 register assemblies collected by the corresponding parser.
341 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
342 overload of the new abstract method GetReferencedAssemblies.
344 * AspGenerator.cs: introduced a new overload for the Parse method
345 which accepts a bool indicating whether or not to initialize the
346 parser. The overload is used when parsing server-side
347 includes. Fixes bug #357498
349 2008-02-04 Marek Habersack <mhabersack@novell.com>
351 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
352 generating source code files. Fixes bug #357053.
354 * AspGenerator.cs: set isApplication before parsing. Fixes bug
357 2008-01-31 Jb Evain <jbevain@novell.com>
359 * AspGenerator.cs: correct typo. Fix #357547.
361 2008-01-27 Marek Habersack <mhabersack@novell.com>
363 * BuildManager.cs: GetReferencedAssemblies includes the extra
364 assemblies and the App_Code assemblies. Patch from Mike Morano
365 <mmorano@mikeandwan.us>, thanks!
367 2008-01-24 Marek Habersack <mhabersack@novell.com>
369 * WebHandlerBuildProvider.cs: derive from the new
370 SimpleBuildProvider class.
372 * BuildManager.cs: full implementation of the batch compilation
373 for the 2.0 profile. The implementation is most probably different
374 to MS.NET's but the effects are the same (or nearly the same -
375 there are some minor differences). There are missing bits and
376 pieces, but minor ones - to be added later.
378 * SimpleBuildProvider.cs: new build provider abstract class
379 deriving from the GenericBuildProvider that implements common code
380 for building web handlers and web services.
382 * GenericBuildProvider.cs: new generic abstract class used to
383 implement base builder code for all the build provider types and
386 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
387 class and implement all the necessary abstract members.
388 Handle "fake" virtual paths, to properly support generating of the
391 * BuildProvider.cs: SetVirtualPath now converts the passed path to
393 Added internal virtual method GenerateCode, used by derived
395 SetCommonParameters no longer sets the referenced assemblies, this
396 is done in BuildManager now.
397 Added an internal virtual property CodeUnit which returns the
398 build provider's compilation unit.
400 * PageCompiler.cs: fix assignment of base types for asynchronous
401 pages, to match MS.NET.
402 For asynchronous pages, add the necessary methods generation.
404 * BaseCompiler.cs: default namespace is now set using a constant.
405 Renamed the Init method into ConstructType, to better reflect its
406 purpose and made the method internal - it is used by the build
408 Added several CreateProvider overloads for easier and more unified
409 compilation provider creation.
410 Added an internal MainClassType property to enable class type name
411 retrieval from other parts of the class hierarchy.
413 * ApplicationFileBuildProvider.cs: new build provider deriving
414 from the TemplateBuildProvider class to compile the global.asax
417 * AspGenerator.cs: properly handle parsers which have no input
418 file path given, but use TextReader instead.
419 Dependencies are virtual paths now, convert them to physical ones
420 before creating cache dependency.
422 * CachingCompiler.cs: parser dependencies are virtual paths now,
423 convert them to physical ones before creating cache dependency.
425 * AssemblyBuilder.cs: full implementation of the documented
426 functionality as well as a lot of internal build code
427 added. Produces assemblies using the same style what MS.NET for
428 temporary and target file naming. Handles partial type squashing
429 if the same partial type is used by several code compile units
430 added to the same builder instance.
432 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
433 base class and add implementation of all the abstract methods
436 * ThemeDirectoryBuildProvider.cs: new build provider to compile
437 theme directories. Replaces the old ThemeDirectoryCompiler class.
439 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
440 base class and add implementation of all the abstract methods
443 * TemplateBuildProvider.cs: new internal abstract class which
444 implements the common tasks for all the template control build
447 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
448 type to implement building.
450 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
452 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
454 2008-01-08 Marek Habersack <mhabersack@novell.com>
456 * TemplateControlCompiler.cs: statements to assign
457 fields/properties from resources must be processed at the very end
458 of the control creation method. Some controls (like HyperLink) can
459 set their Text attribute using literal content. In such cases, in
460 order to properly localize the control, the value read from the
461 local page resources must be assigned after the literal value has
462 been added to the control. Fixes bug #323494
464 2008-01-07 Marek Habersack <mhabersack@novell.com>
466 * CachingCompiler.cs: added an overload to the Compile method
467 which accepts a flag whether or not to include debug information
468 in the generated assembly.
470 2008-01-02 Marek Habersack <mhabersack@novell.com>
472 * TemplateControlCompiler.cs: add line pragma wherever necessary.
474 * PageCompiler.cs: reorder the statements to match MS.NET output.
475 Output line pragma information for directive attributes.
477 * BaseCompiler.cs: add a set of AddLinePragma methods for various
479 Output line pragmas when adding server-side scripts to the CodeDOM
482 * AspGenerator.cs: use ServerSideScript to store script location
483 in the original file.
485 * UserControlCompiler.cs: output line pragmas for the init
488 2007-12-28 Marek Habersack <mhabersack@novell.com>
490 * PageCompiler.cs: MS.NET compatibility: added the
491 __fileDependencies object to the generated class.
492 Refactored the output to match MS.NET more closely.
493 IHttpHandler or IHttpAsyncHandler are now added to the generated
494 class list of implemented interfaces.
496 * BaseCompiler.cs: Main class field references are prefixed with
498 Refactored the output to match MS.NET more closely.
500 2007-12-27 Marek Habersack <mhabersack@novell.com>
502 * BaseCompiler.cs: check for base type globality in all the
505 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
507 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
510 2007-12-21 Marek Habersack <mhabersack@novell.com>
512 * BaseCompiler.cs: Refactoring. Move the provider creation code to
513 an internal static method, so that other piece of code which need
514 to create the provider can do it using the same code.
515 Added setters to several internal properties, so that they can be
516 shared with derivative classes.
518 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
521 * CachingCompiler.cs: adjust to the changes above. Also some
524 2007-12-15 Marek Habersack <mhabersack@novell.com>
526 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
528 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
529 profile, it's obsoleted. CachingCompiler will use the
530 CodeDomProvider methods directly in that case.
532 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
533 compiler information for the 2.0 profile from system.codeDom.
535 * CachingCompiler.cs: the Compile overloads do not use the
536 compiler instance, but call appropriate methods on the
537 CodeDomProvider instance directly.
538 Updated some Compile overloads to acquire compiler information for
539 the 2.0 profile from system.codeDom.
541 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
543 * TemplateControlCompiler.cs (AddExpressionAssign):
544 Make sure expression does not contain prefix.
546 * AppSettingsExpressionBuilder.cs: Pass type of property to
547 GetAppSetting, not type of declaring type.
549 2007-12-13 Marek Habersack <mhabersack@novell.com>
551 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
552 AssemblyBuilder.cs, AppResourcesCompiler.cs,
553 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
554 optimization - use String.Concat instead of String.Format in some
557 2007-11-22 Marek Habersack <mhabersack@novell.com>
559 * PageCompiler.cs: use
560 pageParser.OutputCacheVaryByContentEncodings when initializing the
561 output cache in the 2.0 profile.
563 2007-11-06 Marek Habersack <mhabersack@novell.com>
565 * BuildManager.cs: properly retrieve the BuildProviderCollection
566 from configuration files.
568 2007-11-03 Marek Habersack <mhabersack@novell.com>
570 * TemplateControlCompiler.cs: do not call converters specified in
571 the member custom attributes if 'str' is null in
572 GetExpressionFromString.
574 2007-10-23 Marek Habersack <mhabersack@novell.com>
576 * AppResourcesAssemblyBuilder.cs: do not output preservation files
577 for satellite assemblies, just for the main assembly. Also, don't
578 add the satellite assemblies to the list of top-level assemblies.
580 2007-10-17 Marek Habersack <mhabersack@novell.com>
582 * PageCompiler.cs: added code to set the AsyncMode and
583 AsyncTimeout Page properties.
585 2007-10-15 Marek Habersack <mhabersack@novell.com>
587 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
588 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
589 HttpApplication.LoadType instead of Type.GetType.
591 2007-10-10 Marek Habersack <mhabersack@novell.com>
593 * TemplateControlCompiler.cs: be careful when using type
594 converters taken from attributes attached to class members. They
595 may come from the System.Design namespace, which is mostly not
598 2007-10-01 Marek Habersack <mhabersack@novell.com>
600 * AppResourcesCompiler.cs: resources are no longer compiled into a
601 single assembly. Instead, the common assembly construction code
602 has been moved to AppResourcesAssemblyBuilder to use satellite
605 * AppResourcesAssemblyBuilder.cs: new resource assembly
606 construction code which takes care of outputting satellite
609 2007-09-27 Marek Habersack <mhabersack@novell.com>
611 * TemplateControlCompiler.cs: support nullable types in
612 GenerateExpressionFromString.
614 2007-09-21 Marek Habersack <mhabersack@novell.com>
616 * TemplateControlCompiler.cs: if we're running on a platform with
617 the directory separator character that's different to the Unix
618 style '/' one, convert the input file path to the virtual path
619 style string, with path parts separated by '/'. Patch from Robert
620 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
622 2007-09-20 Marek Habersack <mhabersack@novell.com>
624 * TemplateControlCompiler.cs: if a member passed to
625 GetExpressionFromString has a TypeConverter attribute set, try to
626 use the named type converter to convert the string value into the
627 target type. Fixes bug #325489.
629 2007-09-14 Marek Habersack <mhabersack@novell.com>
631 * AppResourcesCompiler.cs: use _culture and _resourceManager
632 instead of culture and resourceManger in the generated code, to
633 avoid case problems for languages that are case-insensitive.
635 2007-09-10 Marek Habersack <mhabersack@novell.com>
637 * TemplateControlCompiler.cs: cast the expression to the field
638 type whenever appropriate in GetExpressionFromString.
639 When generating an object instance and one of the parameters is
640 System.Type, return a typeof expression.
642 2007-09-07 Marek Habersack <mhabersack@novell.com>
644 * TemplateControlCompiler.cs: another modification to the way
645 TemplateInstance.Single templates are treated. The search for
646 parent with this attribute set stops as soon as the first
647 TemplateBuilder is encountered, no matter what the value of its
648 TemplateInstance attribute is.
650 2007-09-06 Marek Habersack <mhabersack@novell.com>
652 * TemplateControlCompiler.cs: ID must be assigned as soon as
653 possible, before any other attributes of the control are
654 accessed. The control code may rely on ID being set.
655 Extend the process of checking if a control is located within a
656 template with the TemplateInstance.Single attribute set, to all
657 the parents of the current builder.
659 2007-09-05 Marek Habersack <mhabersack@novell.com>
661 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
662 batch must share the same component foundry. Under MS.NET if any
663 earlier .skin file registers a control prefix any later .skin
664 files may use it without registering.
666 2007-09-04 Marek Habersack <mhabersack@novell.com>
668 * TemplateControlCompiler.cs: make sure that base class doesn't
669 contain a field of the same name which is accessible from the
670 current control if we're within a singleton template.
671 When generating code for a property or field, use the name
672 retrieved from the metadata by reflection instead of the one
673 parsed from html. Fixes bug #82687. Patch from SunHo Kim
674 <zsunno@gmail.com>, thanks!
676 2007-08-29 Marek Habersack <mhabersack@novell.com>
678 * CachingCompiler.cs: consider contents of the
679 <compilation><assemblies> section when constructing a list of
680 assemblies during compilation.
682 * TemplateControlCompiler.cs: mark fields corresponding to the
683 controls as global references.
684 When control tree is constructed and the parent of the current
685 builder is a TemplateBuilder marked with the TemplateInstance
686 attribute set to Single, use the control's ID as the field
687 name. This makes it possible to refer to controls inside templates
688 by name instead of by using FindControl.
690 2007-08-23 Marek Habersack <mhabersack@novell.com>
692 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
693 and HttpApplication.LoadTypeFromBin.
695 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
698 2007-08-21 Marek Habersack <mhabersack@novell.com>
700 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
701 to look up assemblies in the binary path(s).
703 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
705 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
706 for scope case insensitive. Fixes bug #82479.
708 2007-08-14 Marek Habersack <mhabersack@novell.com>
710 * TemplateControlCompiler.cs: remove dead code.
712 * AssemblyBuilder.cs: include actual exception information when
713 reporting inability to load a compiled assembly.
715 * AppCodeCompiler.cs: remove unused variables.
717 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
718 component collections, instead of the old Queue which implemented
719 FIFO. Fixes situations when a control registered later for a
720 certain prefix would not be used in preference to a previously
721 registered one of the same name.
723 2007-08-06 Marek Habersack <mhabersack@novell.com>
725 * AspComponentFoundry.cs: properly add new foundry if the
726 corresponding entry in the foundries collection is a Queue. Patch
727 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
729 2007-07-31 Marek Habersack <mhabersack@novell.com>
731 * AspComponentFoundry.cs: do not overwrite previously registered
732 foundries when a new one is registered with the same prefix. Fixes
735 2007-07-18 Marek Habersack <mhabersack@novell.com>
737 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
738 does not look up the Item/Items properties to determine the
739 container type, instead it just returns the type reported by the
740 builder passed to this method. This change makes the generated
741 code match MS.NET. Fixes bug #82119.
743 2007-07-02 Marek Habersack <mhabersack@novell.com>
745 * TemplateControlCompiler.cs: don't use StartWith to see if a
746 variable's value is a bind expression, as it erroneously renames
747 all calls to methods starting with the string Bind. Use a regular
748 expression now instead. Fixes bug #81928.
750 2007-06-20 Marek Habersack <mhabersack@novell.com>
752 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
754 * CachingCompiler.cs: as above
755 * AspGenerator.cs: as above
757 2007-06-13 Marek Habersack <mhabersack@novell.com>
759 * TemplateControlCompiler.cs: make sure control has a writable
760 TemplateControl property prior to assigning values to it.
762 2007-06-09 Marek Habersack <mhabersack@novell.com>
764 * TemplateControlCompiler.cs: TemplateControl is assigned for
765 controls that are placed within ContentPlaceHolder and not for the
766 ContentPlaceHolder itself.
767 No longer add the overriden version of TemplateSourceDirectory to
768 the generated source, all the work is now done in
769 Control.TemplateSourceDirectory.
771 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
772 slash, for compatibility with MS.NET
774 2007-06-05 Marek Habersack <mhabersack@novell.com>
776 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
777 profile uses the TemplateControl property instead of Parent. This
778 allows to return the correct path.
780 2007-06-01 Marek Habersack <mhabersack@novell.com>
782 * TemplateControlCompiler.cs: be case-insensitive when looking for
785 2007-05-29 Marek Habersack <mhabersack@novell.com>
787 * ThemeDirectoryCompiler.cs: pass the skin file's
788 virtual path to the skin file parser as its first paramenter, and
791 2007-05-28 Marek Habersack <mhabersack@novell.com>
793 * ResourceExpressionBuilder.cs: properly cast
794 GetGlobalResourceObject calls to the type of the property being
797 2007-05-25 Marek Habersack <mhabersack@novell.com>
799 * TemplateControlCompiler.cs: Changed a few incorrect
800 ObjectCreationExpression to the correct DelegateCreationExpression.
803 2007-05-24 Marek Habersack <mhabersack@novell.com>
805 * PageCompiler.cs: added support for the PreviousPageType directive.
807 * Directive.cs: as above.
809 2007-05-22 Marek Habersack <mhabersack@novell.com>
811 * UserControlCompiler.cs: the Profile property should be present
812 also in user controls.
814 2007-05-15 Marek Habersack <mhabersack@novell.com>
816 * ResourceExpressionBuilder.cs: added a static method to generate
817 a GetLocalResourceObject call which properly handles types which
818 cannot be converted from strings.
820 * TemplateControlCompiler.cs: use code described above to generate
821 code for properties assigned from resources.
823 * WsdlBuildProvider.cs: make the code actually work - get the
824 physical path of VirtualPath instead of converting it to absolute
826 Do not generate source, add the code unit to assembly builder
829 * XsdBuildProvider.cs: added
831 2007-05-08 Marek Habersack <mhabersack@novell.com>
833 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
834 so use a delegate create expression - it may make difference for
835 languages other than C# (e.g. VisualBasic).
837 2007-05-07 Marek Habersack <mhabersack@novell.com>
839 * AspGenerator.cs: if the parser's language is implicit (i.e. set
840 from the default configuration), the first script with the
841 language attribute present sets the language of the parser.
843 2007-05-04 Marek Habersack <mhabersack@novell.com>
845 * TemplateControlCompiler.cs: do not query the parent for
846 TemplateSourceDirectory if we are generating code for a Master
849 2007-04-30 Marek Habersack <mhabersack@novell.com>
851 * ConnectionStringsExpressionBuilder.cs: support expressions with
852 suffixes .ProviderName and .ConnectionString (case-insensitie) and
853 generate a call to GetConnectionStringProviderName in the former
854 case. Fixes bug #81490
856 * AppCodeCompiler.cs: support for cases when there exists a custom
857 profile class but there is no App_Code directory or it's
858 empty. Fixes bug #81489.
860 * TemplateControlCompiler.cs: fix generation of code for
861 declarative attribute assignments of the form Font-Size="small"
862 (i.e. when a font size is assigned a symbolic, relative size
863 value). This fixes for example rendering of the 0th level of
866 2007-04-27 Marek Habersack <mhabersack@novell.com>
868 * AppCodeCompiler.cs: do not look at the number of errors, check
869 the compiler return code instead.
870 Resolve assembly names from the global web.config to their
871 locations before passing them to the compiler provider.
873 * AssemblyBuilder.cs: as above
875 * AppResourcesCompiler.cs: as above
877 * AspComponentFoundry.cs: formatting changes.
878 AssemblyFoundry looks for the specified namespace+type in the
879 top-level assemblies if necessary.
881 2007-04-26 Marek Habersack <mhabersack@novell.com>
883 * AssemblyBuilder.cs: handle compilation failures in a better
886 * PageCompiler.cs: the Master property must be in the partial
887 class if present. Fixes bug #81442
889 2007-04-20 Marek Habersack <mhabersack@novell.com>
891 * AppCodeCompiler.cs: fix App_Code build when the directory
892 contains both known and unknown files.
894 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
896 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
899 2007-04-19 Marek Habersack <mhabersack@novell.com>
901 * AppCodeCompiler.cs: yet another method of detecting if we have a
904 * BaseCompiler.cs: as above
906 * AspComponentFoundry.cs: implemented delayed loading of control
907 assemblies. Fixes bug #81058.
909 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
911 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
912 then use it instead of the default ASP namespace. Fixes part of bug
915 2007-04-19 Marek Habersack <mhabersack@novell.com>
917 * BaseCompiler.cs: don't look at the number of profile properties
918 when deciding if we have a custom profile. It is possible to have
919 a profile that just inherits from a base class and does not list
920 any custom properties. Fixes bug #81396.
922 * AppCodeCompiler.cs: as above
924 2007-04-15 Marek Habersack <mhabersack@novell.com>
926 * AppCodeCompiler.cs: properly convert physical file path to
927 virtual path for build providers.
928 Make sure there's actually anything to compile.
930 2007-04-11 Marek Habersack <mhabersack@novell.com>
932 * AppCodeCompiler.cs: move custom profile type check till after
933 the App_Code compilation is done. That way we can have custom
934 profile providers in there. Fixes bug #81307.
936 2007-04-10 Marek Habersack <mhabersack@novell.com>
938 * AppResourceFilesCollection.cs: watch App_LocalResources for
941 2007-04-06 Marek Habersack <mhabersack@novell.com>
943 * BaseCompiler.cs: display the source of the file in which the
944 error actually happened if the file exists, or the unit
947 2007-04-03 Marek Habersack <mhabersack@novell.com>
949 * AppResourcesCompiler.cs: global resources are put in the
950 "Resources." namespace while local ones are not. Fixes bug #81174
951 which was reopened after r75261.
953 2007-03-26 Marek Habersack <mhabersack@novell.com>
955 * TemplateControlCompiler.cs: refactor assining properties from
956 resources a bit to support pages and user controls. Fixes bug
958 Process meta:resourcekey after all the field/attribute assignments
959 are done. Fixes bug #80809.
960 Clean the code up a bit.
961 Use GetExpressionFromString to generate a correct expression for
962 custom page/control attributes. Fixes bug #81132.
964 2007-03-21 Marek Habersack <mhabersack@novell.com>
966 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
967 AssignAppRelativeVirtualPath if the attribute was defined.
969 * TemplateControlCompiler.cs: added support for setting custom
970 attributes of a base class from the Page or Control directive
973 2007-03-20 Marek Habersack <mhabersack@novell.com>
975 * ResourceExpressionBuilder.cs: if the resource class key is null
976 or empty, call GetLocalResourceObject, if not,
977 GetGlobalResourceObject. Fixes bug #81174.
979 2007-03-16 Marek Habersack <mhabersack@novell.com>
981 * AppCodeCompiler.cs: produce message that makes more sense.
983 2007-03-15 Marek Habersack <mhabersack@novell.com>
985 * AppResourcesCompiler.cs: handle global resource keys with dots
986 the way MS.NET does. All the dots are replaced with underscores
987 when generating the stronly-typed property.
989 2007-03-14 Marek Habersack <mhabersack@novell.com>
991 * AppResourcesCompiler.cs: Fix a bug with global resources file
992 grouping where no translated resources were processed due to base
995 * TemplateControlCompiler.cs: hadle situations when there exist a
996 control in the page with id matching the name of a field/property
997 in the parent class. In this case we use 'protected new' to
1000 2007-03-13 Marek Habersack <mhabersack@novell.com>
1002 * AspParser.cs: fix an off-by-one parsing bug with server-side
1005 * PageThemeCompiler.cs: let property builders through, stop the
1006 builders that have no control type. Fixes bug #81092
1008 * PageCompiler.cs: interfaces are to be implemented by the parent
1009 partial class, not the generated one.
1011 * AppResourceFilesCollection.cs: added separate constructor for
1012 local resources handling.
1014 * TemplateControlCompiler.cs: request the local resource object
1015 with proper virtual path.
1016 Put field declarations for controls in the partial class.
1017 Make sure builders are in valid state before trying to use them.
1019 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1020 property in the page/control constructor.
1021 Change the generated code model for pages/controls to comply with
1022 the way MS.NET does (partial class contains only two properties
1023 plus declarations of all the controls, the actual control/page
1024 class inherits from the partial class). Fixes bug #81001.
1026 * AppResourcesCompiler.cs: does not require specifying manually
1027 whether it's a global or local resource compiler anymore. New
1028 constructors take care of that.
1029 Changed to compile local resources on demand, when a control/page
1032 2007-03-12 Marek Habersack <mhabersack@novell.com>
1034 * AspParser.cs: revert r73587 as it breaks more than it fixes.
1036 * AspComponentFoundry.cs: try to register foundries from App_Code
1037 assemblies if tag prefix and its namespace are defined. Fixes bug
1040 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1041 of Assembly instances, not strings.
1043 * CachingCompiler.cs: make sure items in the CodeAssemblies and
1044 TopLevelAssemblies are really instances of the Assembly class
1045 before trying to use them.
1046 CodeAssemblies is a collection of Assembly instances, not
1049 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1050 assemblies, not paths to assemblies.
1052 2007-03-10 Marek Habersack <mhabersack@novell.com>
1054 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1055 CreateProfileProperty and InternalCreatePageProperty to
1056 BaseCompiler from PageCompiler.
1058 * GlobalAsaxCompiler.cs: generate the Profile property for the
1061 2007-03-09 Marek Habersack <mhabersack@novell.com>
1063 * AppCodeCompiler.cs: Add the GetProfile method to the
1064 ProfileCommon auto-generated class.
1066 * AppResourcesCompiler.cs: attempt to load the resource file
1067 earlier in the process, to gracefully handle empty files.
1069 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1070 .skin and .css files composing the theme.
1072 2007-03-05 Marek Habersack <mhabersack@novell.com>
1074 * PageThemeCompiler.cs: Use correct theme path for
1075 AppRelativeTemplateSourceDirectory.
1076 Do not process builders of type CodeRenderBuilder.
1077 Make sure builder.ControlType is not null before depending on it.
1079 * ThemeDirectoryCompiler.cs: theme parser should be passed the
1080 virtual directory of the theme.
1082 2007-03-03 Marek Habersack <mhabersack@novell.com>
1084 * PageCompiler.cs: Added support for setting the
1085 MaintainScrollPositionOnPostBack property if the corresponding
1086 page directive attribute is found.
1088 * Directive.cs: added the MaintainScrollPositionOnPostBack and
1089 LinePragmas directives.
1091 2007-03-02 Marek Habersack <grendello@gmail.com>
1093 * AppCodeCompiler.cs: Correctly process App_Code directories which
1094 have no compilable files in the top-level directory. Fixes bug
1096 Write preservation files for the App_Code assemblies.
1098 2007-03-01 Marek Habersack <grendello@gmail.com>
1100 * AspParser.cs: fix GetVerbatim for cases when the end is
1101 e.g. --> or --%> and the string matched is ---> or ---%>
1102 respectively. The new code always backs out to make sure the end is
1105 2007-02-27 Marek Habersack <grendello@gmail.com>
1107 * TemplateControlCompiler.cs: ParseExpression returns an object,
1108 don't assume any concrete type.
1109 Use the current culture when converting the expression to a
1112 * ConnectionStringsExpressionBuilder.cs: Implement support for
1113 expressions of the <%$ ConnectionStrings:StringName %> form
1115 2007-02-19 Marek Habersack <grendello@gmail.com>
1117 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1119 2007-02-16 Marek Habersack <grendello@gmail.com>
1121 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1122 is referenced twice by the compiler(s).
1124 * TemplateControlCompiler.cs: Fix the problem with cultures which
1125 have a comma as their decimal separator and font/whatever
1126 units. New code does not reparse the text representation of the
1127 unit on the runtime (e.g. 0.9em) but instead it constructs the
1128 property using the FontUnit/Unit constructors which take,
1129 respectively, Unit and double/unittype parameters. This avoids
1130 culture-specific parsing.
1131 Also fix converting from invariant strings in a culture-aware
1132 environment (e.g. in a page that uses Culture="auto") during the
1135 2007-02-12 Marek Habersack <grendello@gmail.com>
1137 * PreservationFile.cs: Support preservation (assembly mapping)
1138 files (the ones with .compiled extension in the ASP.NET temporary
1139 directory). This one implements a loader/saver class.
1141 * AppResourcesCompiler.cs: support for assembly name mapping.
1143 * AppCodeCompiler.cs: support for assembly name mapping.
1145 2007-02-08 Marek Habersack <grendello@gmail.com>
1147 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1149 * AspComponentFoundry.cs: Avoid duplicate control registration
1152 * ResourceExpressionBuilder.cs: Make sure all the global resources
1153 are looked up using the "Resources." prefix.
1155 * AppResourcesCompiler.cs: Make sure all the global resources are
1156 embedded with the "Resources." prefix.
1158 2007-02-02 Marek Habersack <grendello@gmail.com>
1160 * AspGenerator.cs: Move the cache insert code to a separate method, for
1161 use from other places.
1163 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1164 defer their compilation to the moment when they are actually requested.
1166 2007-01-22 Marek Habersack <grendello@gmail.com>
1168 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1170 2007-01-20 Miguel de Icaza <miguel@novell.com>
1172 * ClientBuildManager.cs: Remove unused variable (this could be a
1173 real problem, we never use the appPhysicalTargetDir)
1175 * AssemblyBuilder.cs: Remove unused field.
1177 * AppResourceFilesCollection.cs: Remove unused field.
1179 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1182 * AppResourcesCompiler.cs: Remove unused variable.
1184 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1187 * PageCompiler.cs: Put InternalCreatePageProperty inside the
1188 NET_2_0 block to eliminate warnings.
1190 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
1192 * BaseCompiler.cs: Fixed build on 1.0 profile.
1194 2007-01-20 Marek Habersack <grendello@gmail.com>
1196 * BaseCompiler.cs: If the control base type is in the root
1197 namespace, make sure global:: is prepended to it.
1199 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1200 mark it as such in the generated code as well.
1202 * AppCodeCompiler.cs: Include debug information if configured in
1203 web.config. Fixes bug #80096.
1205 2007-01-17 Marek Habersack <grendello@gmail.com>
1207 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1208 App_GlobalResources) when compiling App_Code sources.
1210 * CachingCompiler.cs: Reference toplevel assemblies when compiling
1213 * AppResourcesCompiler.cs: Close the streams properly.
1215 * AspGenerator.cs: Don't ignore thead/tbody anymore.
1217 2007-01-15 Marek Habersack <grendello@gmail.com>
1219 * WsdlBuildProvider.cs: New build provider for WSDL files.
1220 Compile only when System.Web.Services are present.
1222 * TemplateControlCompiler.cs: Forgotten in the previous commit -
1223 don't pass the current culture to GetLocalResourceObject, let the
1224 method figure it out on its own.
1226 2007-01-05 Marek Habersack <grendello@gmail.com>
1228 * AppResourceFilesCollection.cs: new class to keep and manage
1229 collection of resource files for the App_{Global,Local}Resources
1232 * TemplateControlCompiler.cs: rely on
1233 HttpContext.GetLocalResourceObject to select the correct culture.
1235 * AppResourceFileInfo.cs: new class for keeping resource files
1238 * AppResourcesCompiler.cs: new implementation.
1240 2006-12-20 Marek Habersack <grendello@gmail.com>
1242 * AssemblyBuilder.cs: add an internal version of the
1243 AddCodeCompileUnit method.
1245 * AppCodeCompiler.cs: implement support for ProfileCommon
1246 generation from properties named in the <profile> element in
1249 * PageCompiler.cs: create the Profile property in 2.0 code.
1251 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
1253 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1255 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1257 * ThemeDirectoryCompiler.cs: refactoring.
1259 2006-11-28 Marek Habersack <grendello@gmail.com>
1261 * BuildManager.cs: Add an internal property to signal whether or
1262 not we have any resources from App_{Global,Local}Resources
1264 * AspGenerator.cs: Register controls from
1265 system.web/pages/controls collection before parsing.
1267 * AppResourcesCompiler.cs: Let the build process know if we have
1268 compiled any resources from App_{Global,Local}Resources
1270 2006-11-27 Marek Habersack <grendello@gmail.com>
1272 * CachingCompiler.cs: Automatically reference App_Code
1275 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1278 2006-11-25 Marek Habersack <grendello@gmail.com>
1280 * AppResourcesCompiler.cs: small optimizations.
1282 * AppResourceFilesCompiler.cs: small optimizations.
1284 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1286 * WebServiceCompiler.cs: add the type to the cache after getting it
1287 from the compiled assembly.
1289 2006-11-20 Marek Habersack <grendello@gmail.com>
1291 * AppCodeCompiler.cs: Reference assemblies listed in
1292 system.web/compilation/assemblies.
1293 Don't create empty assemblies.
1295 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1297 * TemplateControlCompiler.cs: fixed:
1298 When <%# Bind(...) %>-expression is used more then once for same control
1299 The variable associated with this control is declared only once.
1301 2006-11-18 Marek Habersack <grendello@gmail.com>
1303 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
1304 files with names like File.resources or File.resx are found in the
1305 resource directories.
1307 2006-11-16 Marek Habersack <grendello@gmail.com>
1309 * ForceCopyBuildProvider.cs: Added the build provider for
1312 * MasterPageBuildProvider.cs: Added the build provider for Master
1315 * IgnoreFileBuildProvider.cs: Make the class sealed.
1317 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
1318 correctly uses the BuildProviderCollection to retrieve the
1319 appropriate builder and maps the physical input file path into
1320 application relative path when setting the virtual path of the
1323 2006-11-13 Marek Habersack <grendello@gmail.com>
1325 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
1326 constructor with just the CodeDomProvider argument. CreateCodeFile
1327 now uses the code provider's file extension. Added internal method
1328 to add pre-generated source code files. Added a BuildAssembly
1329 overload that takes no virtual path as the
1330 parameter. BuildAssembly now uses an array of source files instead
1331 of compile units and also handles embedded resources and
1332 referenced assemblies. BuildAssembly deletes the temporary files
1333 if MONO_ASPNET_NODELET isn't set in the environment.
1335 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
1336 creation. Use the build providers collection to build unknown
1337 files in App_Code. Use AssemblyBuilder to compile the assembly.
1339 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1340 temporary file creation.
1342 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1345 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1348 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1351 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1354 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1357 2006-11-08 Marek Habersack <grendello@gmail.com>
1359 * BuildProvider.cs: Implemented the GetCustomString
1360 method. Removed the necessity to retrieve the CompilationSection
1361 twice when GetDefaultCompilerType is called.
1363 * AppResourcesCompiler.cs: Added resource compiler results
1366 * AppCodeCompiler.cs: The App_Code compiler classes
1368 * BuildManager.cs: Implement the CodeAssemblies property.
1369 Added an internal TopLevelTypes property to be used in the custom
1370 GetType methods. Implemented the GetCompiledCustomString method.
1371 Implemented the GetType method overloads. Implemented the
1372 GetVirtualPathDependencies method.
1374 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1376 2006-10-18 Marek Habersack <grendello@gmail.com>
1378 * TemplateControlCompiler.cs: add support for resource
1379 expressions in tag attributes.
1381 * ResourceExpressionBuilder.cs: add support for resource
1382 expressions in tag attributes.
1384 * BaseCompiler.cs: add global/local resource assemblies to
1385 compilation references, if present.
1387 * AppResourcesCompiler.cs: global/local resources compiler.
1389 * AppResourceFilesCompiler.cs: compiler of resource files.
1391 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1393 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1394 At run time, the Bind method calls the Eval method, if there is DataItem
1396 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
1397 method don't raise exception and works properly to extract data from
1398 bounded controls on postback.
1400 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1402 * AspGenerator.cs: if we are tracking non-server tags for
1403 well-formedness, handle tags that do not need to be closed (br, img,...)
1406 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1408 * PageCompiler.cs: support the EnableEventValidation attribute.
1410 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1412 * AspGenerator.cs: after parsing an include file, don't error out if we
1413 still have opened tags unless this was the last file to parse. Fixes
1416 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
1418 * ParseException.cs: Ensure the source file stream is closed.
1420 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1422 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1423 * ConnectionStringsExpressionBuilder.cs: Use name reference
1425 * ResourceExpressionBuilder.cs: Use assembly name constants.
1427 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1429 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1431 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1433 * ClientBuildManager.cs: handle domain shutdown and unload.
1434 Implemented some properties. Commented.
1436 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
1438 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
1440 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1442 * added ThemeDirectoryCompiler.jvm.cs
1444 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1446 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
1447 the property Items does not exist. Patch by Marek Habersack that fixes
1450 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1452 * TemplateControlCompiler.cs: support assigning nullable types.
1453 Patch by Marek Habersack that fixes bug #78970.
1455 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1457 * TemplateControlCompiler.cs: make password work again.
1459 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
1461 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1462 MS.NET handles nested quotes differently for server controls and
1463 for "normal" controls. Add a property "AlternatingQuotes" to the
1464 tokenizer and let the parser decide whether it is well-formed or not.
1466 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
1468 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
1469 UrlPropertyAttribute.
1471 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
1473 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
1474 generating code for assignment statement and DataBind event.
1476 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
1478 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1479 Don't allow an attribute value to contain the same quote characters
1480 as the ones used for delimiting the value itself. Add a token
1481 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
1483 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
1485 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
1487 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
1489 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
1491 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
1493 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
1494 array of style sheets from the parser
1495 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
1496 put them in LinkedStyleSheets of PageThemeParser
1498 2006-04-20 Chris Toshok <toshok@ximian.com>
1500 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
1501 names in the case where you use "NS.ClassName" in the Inherits
1502 attribute. Fixes bug #78135.
1504 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1506 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
1507 already acquired the lock even when we might have not created the 'key'
1508 to the compilation ticket.
1510 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
1512 * ThemeDirectoryCompiler.cs: add to the directory parser all the
1513 assemblies found by PageThemeFileParsers
1515 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
1517 * TemplateControlCompiler.cs: Properly read all content of
1520 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1522 * TemplateControlCompiler.cs : fix for partial parsers
1524 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1526 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
1529 2006-04-08 Miguel de Icaza <miguel@novell.com>
1531 * TemplateControlCompiler.cs: An attempt to fix the regression
1532 introduced in r58505 (a bug fix for 77762). This was reported in
1533 the mailing list with a batch of new 2.0 failures.
1535 We really need a test suite in NUnit to check on ASP.NET aspx
1538 2006-03-27 Robert Jordan <robertj@gmx.net>
1540 * CachingCompiler.cs: change the compilation locking scheme
1541 from "one mcs per process" to "one mcs per file".
1543 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1545 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
1546 StringPropertyBuilder.
1548 2006-03-24 Chris Toshok <toshok@ximian.com>
1550 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
1551 if system.web/compilation doesn't list a compiler for our
1554 2006-03-13 Chris Toshok <toshok@ximian.com>
1556 * TemplateControlCompiler.cs (InitMethod): when generating the
1557 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
1558 argument to it. Only do that if the class we're compiling is
1559 actually a subclass of Page. If it's not, pass this.Page.
1561 2006-03-07 Chris Toshok <toshok@ximian.com>
1563 * AspGenerator.cs: refactor the parsing code so that we can
1564 initiate parsing from outside this class.
1566 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
1567 method, add our StyleSheetTheme assignment here.
1568 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
1571 * TemplateControlCompiler.cs (EnsureID): make protected.
1572 (CreateAssignStatementsFromAttributes): same
1573 (AddChildCall): same.
1574 (CreateControlTree): same.
1575 (CreateFrameworkInitializeMethod): change
1576 "AddStatementsToFrameworkInitialize" to
1577 "AppendStatementsToFrameworkInitialize", and add call to
1578 "PrependStatementsToFrameworkInitialize" before the generation of
1579 "base.FrameworkInitialize()."
1581 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
1583 2006-03-07 Chris Toshok <toshok@ximian.com>
1585 * ThemeDirectoryCompiler.cs: new file.
1587 * PageThemeCompiler.cs: new file.
1589 2006-03-07 Chris Toshok <toshok@ximian.com>
1591 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
1592 (Init): move the CreateMethods call here.
1594 2006-03-02 Chris Toshok <toshok@ximian.com>
1596 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
1597 SkinID just after the creation of our object, and right after that
1598 call "_ctrl.ApplyStyleSheetSkin (page)".
1599 (CreateAssignStatementsFromAttributes): split out the majority of
1600 this code to CreateAssignStatementFromAttribute, and change this
1601 method to simply a loop over the attribute keys. In the 2.0 case,
1602 skip the SkinID property, since that's handled explicitly in
1605 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
1606 for Theme and StyleSheetTheme.
1608 2006-02-23 Chris Toshok <toshok@ximian.com>
1610 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
1611 change from ContentControlBuilderInternal to
1612 ContentBuilderInternal.
1613 (AddCodeRender): same.
1615 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1617 * AssemblyBuilder.cs:
1618 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
1619 GetGeneratedType() on the BuildProvider instead of loading the assembly
1620 and trying a wild guess at the type name.
1622 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1624 * GlobalAsaxCompiler.cs:
1626 * TemplateControlCompiler.cs: CreateMethods is now internal.
1628 * WebServiceBuildProvider.cs:
1629 * PageBuildProvider.cs:
1630 * UserControlBuildProvider.cs:
1631 * WebHandlerBuildProvider.cs: new build providers.
1633 * BuildProvider.cs: add assemblies.
1635 * BaseCompiler.cs: expose the provider and the compile unit through
1638 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1640 * CompilerType.cs: implemented.
1642 * AssemblyBuilder.cs: implemented most of it.
1644 * WebServiceCompiler.cs:
1645 * CachingCompiler.cs: update 2.0 compiler instance creation code.
1647 * ClientBuildManager.cs: implemented some of its methods. Not yet
1650 * BuildManager.cs: the more interesting methods are implemented now.
1652 * BaseCompiler.cs: delete the temporary files in case of error.
1654 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
1656 2006-02-07 Chris Toshok <toshok@ximian.com>
1658 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
1659 calls to AddParsedSubObject to a special statement collection --
1660 builder.flushOutputStatements -- not to builder.method.Statements.
1661 (InitMethod): initially, set flushOutputStatements to
1662 method.Statements. If we're dealing with a ContentPlaceHolder,
1663 set flushOutputStatements to be the else block of a conditional we
1664 create. This causes the compiled control to fall back to the
1665 ContentPlaceHolder's child controls in case there's no
1666 corresponding Content template.
1667 (AddChildCall): use methodStatements instead of method.Statements.
1668 (CreateControlTree): same.
1670 * PageCompiler.cs (CreatePropertyAssign): factor out the
1671 string,string implementation and add one that also takes a
1672 CodeExpression; make the string,string implementation call the
1673 three arg one with thisRef.
1674 (AddStatementsToInitMethod): make use of the 3-arg form of
1675 CreatePropertyAssign to reduce code. Also, add support for
1676 setting the page's Title from the parser's Title.
1678 2006-02-07 Chris Toshok <toshok@ximian.com>
1680 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
1681 assign __ctrl.MasterPageFile to our master page, if we have one.
1683 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
1684 assignment from here.
1685 (AddStatementsToInitMethod): and move it here.
1687 * TemplateControlCompiler.cs (InitMethod): in the case where
1688 builder is a RootBuilder (we're building the __BuildControlTree
1689 method), call a virtual method so that subclasses can add their
1690 own statements to the method (used by both Page and MasterPage);
1691 Also, in the RootBuilder case, the argument should be the
1692 parser.ClassName type (the class we're building); lastly, expand
1693 the ContentPlaceHolder logic to include all the
1694 ContentTemplates/InstantiateIn magic.
1695 (AddStatementsToInitMethod): empty virtual method.
1696 (AddContentTemplateInvocation): ContentControlBuilder ->
1697 ContentControlBuilderInternal.
1698 (CreateControlTree): same.
1699 (CallBaseFrameworkInitialize): new function, create call to
1700 base.FrameworkInitialize.
1701 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
1703 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1705 * IgnoreFileBuildProvider.cs: it's not public.
1706 * BuildProvider.cs: mostly implemented.
1708 2006-02-01 Chris Toshok <toshok@ximian.com>
1710 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
1711 GetSection instead of GetWebApplicationSection.
1713 * CachingCompiler.cs: same.
1715 * AspGenerator.cs: same.
1717 * BaseCompiler.cs: same.
1719 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1721 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
1723 2006-01-22 Chris Toshok <toshok@ximian.com>
1725 * IgnoreFileBuildProvider.cs: build provider which does nothing.
1727 2006-01-22 Chris Toshok <toshok@ximian.com>
1729 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
1730 Hashtable ctor to silence a couple of warning.
1731 (CompoundFoundry.ctor): same
1733 * Directive.cs (InitHash): use a 2.0 friendly form of the
1734 Hashtable ctor to silence a couple of warning.
1736 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
1737 Hashtable ctor to silence a warning.
1738 (GetDictionary): same.
1740 2006-01-22 Chris Toshok <toshok@ximian.com>
1742 * AppSettingsExpressionBuilder.cs: implement this, patterning it
1743 after an example on msdn. Also, enable the ExpressionEditor
1744 attribute, but use the string rather than the Type overload so we
1745 won't have yet another circular dep.
1747 * ConnectionStringsExpressionBuilder.cs: partial implementation.
1748 Same deal with the ExpressionEditor attribute.
1750 * ResourceExpressionBuilder.cs: same deal with the
1751 ExpressionEditor attribute.
1753 2006-01-20 Chris Toshok <toshok@ximian.com>
1755 * ResourceExpressionBuilder.cs (ParseExpression): implement.
1757 * ResourceExpressionFields.cs: implement.
1759 2006-01-20 Chris Toshok <toshok@ximian.com>
1761 * ClientBuildManagerParameter.cs: implement.
1763 * ClientBuildManagerCallback.cs: this class contains an empty
1764 default implementation.
1766 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1768 * AspGenerator.cs: add support for 'src' in <script runat="server">.
1771 2006-01-04 Chris Toshok <toshok@ximian.com>
1773 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
1776 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
1778 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1780 * AspGenerator.cs: fix yesterday's fix.
1782 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1784 * AspGenerator.cs: only do special processing for <script> if it has
1785 the runat="server" attribute. Fixes bug #76918.
1787 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1789 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
1792 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1794 * TemplateControlCompiler.cs: handle data bound attributes for html
1795 controls. Fixes bug #76785.
1797 2005-11-28 Chris Toshok <toshok@ximian.com>
1799 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
1801 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
1803 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1805 * WebServiceCompiler.cs: fixed caching for web handlers.
1807 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1809 * AspParser.cs: don't change case for verbatim IDs.
1812 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1814 * AspParser.cs: when processing verbatim input, throw if we reach EOF
1815 before the expected end of the data.
1817 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1819 * CachingCompiler.cs:
1820 * WebServiceCompiler.cs: when caching a type loaded from an assembly
1821 that we didn't compile, make it depend on the file itself, not on a
1822 non-existing cache key. This problem affected performance of web
1823 services and .ashx, making unnecessary extra calls to LoadFrom every
1824 time the cache was cleared.
1826 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1828 * BaseCompiler.cs: set the domain's DynamicBase property instead of
1829 guessing it in BaseCompiler.
1831 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1833 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
1834 75146 for pages/controls.
1836 2005-08-09 Miguel de Icaza <miguel@novell.com>
1838 * WebServiceCompiler.cs: Use the new DynamicDir method.
1840 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
1841 since this value is null most of the time, compute the real value.
1843 Added Bonus: if the directory has some kind of permission problem,
1844 try a different directory name.
1846 2005-07-13 Miguel de Icaza <miguel@novell.com>
1848 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
1849 BaseParser.Context for the context.
1851 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1855 * TemplateControlCompiler.cs: use invariant culture versions of starts/
1858 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860 * TemplateControlCompiler.cs: comparison between member name and the
1861 first part of the id provided by the user should also be
1862 case-insensitive. Fixes bug #75379.
1864 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1866 * CachingCompiler.cs: use cache.InsertPrivate.
1867 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
1870 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1872 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
1873 as all the others, when compiling an assembly from a Src file. Fixes
1876 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1878 * TemplateControlCompiler.cs: if the property is not found, don't forget
1879 about trying the field.
1881 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
1883 * Directive.cs: Register the MasterType directive.
1884 * PageCompiler.cs: If a MasterType is specified, add a type specific
1885 Master property. All this fixes bug #75192.
1887 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1889 * TemplateControlCompiler.cs: when mapping an attribute name to a field
1890 or property name, there's no need to try with every property and field,
1891 but just the one found when searching by name (no case). There was one
1892 call to ProcessPropertiesAndFields per property or field until found,
1893 now only one if the property/field is found, none otherwise.
1895 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1897 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
1898 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
1901 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1903 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
1904 the assembly file there and be able to load it. Thanks to Rogerio and
1907 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1909 * AspParser.cs: InvariantCulture love.
1911 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1913 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
1914 as the one in Master is protected. Fixes bug #75157.
1916 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1918 * AspComponentFoundry.cs: tagnames have precedence over types in
1919 assemblies when they use the same prefix. Fixes bug #71855.
1921 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
1923 * WebServiceCompiler.cs: Create the temp directory before
1924 creating the web service source code file.
1926 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1928 * AspGenerator.cs: when checking languages, try to match other aliases
1929 too (ie, 'cs' == 'c#').
1931 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1933 * BaseCompiler.cs: check that DynamicBase directory exists before
1934 creating the TempFileCollection.
1936 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1938 * AspGenerator.cs: use a stack for non-server tags even before getting
1939 to a form. Fixes bug #70274.
1941 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1943 * AspParser.cs: don't error out on ill formed tags if it's not a server
1944 tag (ie, allow something like '<table align="left cellpadding="0">' to
1945 work, as MS does. Fixes bug #67909.
1947 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
1948 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
1949 @Page/@Control directives to CodeDOM (VB.NET support)
1951 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
1953 * AspParser.cs: Fixed parsing of data binding tags in server
1954 tag attributes. Allow <%...%> blocks not assigned to
1955 attributes in client tags.
1956 * TagAttributes.cs: Make sure that data binding blocks in server
1957 tags are always assigned to attributes.
1959 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
1961 * TemplateControlCompiler.cs: Implemented support for two-way
1964 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
1966 * TemplateControlCompiler.cs: Use the new BindingContainerType
1967 property to find the type of the binding container.
1969 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1971 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
1972 for primitive types. Parse an empty color string as Color.Empty.
1973 Get the converter for a property using its PropertyDescriptor.
1975 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
1977 * TemplateControlCompiler.cs: Don't autogenerate IDs for
1978 controls inside Content template.
1980 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1982 * TemplateControlCompiler.cs: make typedesc.aspx work again.
1984 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1986 * ExpressionBuilderContext.cs:
1987 * ExpressionBuilder.cs: implemented.
1989 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1991 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
1993 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
1995 * TemplateControlCompiler.cs: When generating a property value,
1996 check for TypeConverterAttribute in the PropertyInfo, not only in the
1998 Implemented code generation using InstanceDescriptor, when the type
1999 converter supports conversion to that type.
2001 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
2003 * Directive.cs: Added MASTER directive.
2004 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2005 * PageCompiler.cs: Set the master file name when generating the page.
2006 * TemplateControlCompiler.cs: When generating the method for a
2007 content holder, register the content holder in the base MasterPage.
2008 Added method for registering a Content control for a MasterPage.
2009 Generate code for Content controls.
2011 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
2013 * TemplateControlCompiler.cs: Get the container type from the
2014 template (if it was defined using TemplateContainerAttribute.
2016 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2018 * AspGenerator.cs: correctly process script tags that self-closing.
2021 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2023 * CachingCompiler.cs: when compiling a single .cs file, add the file
2024 itself to dependencies. Fixes bug #68788.
2026 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2028 * ControlBuilder.cs: don't close server tags when we get to a closing
2029 tag that is not applied to a server control. Fixes bug #60323.
2031 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2033 * WebServiceCompiler.cs: fix buglet in my last commit.
2035 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2038 * CachingCompiler.cs:
2039 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2040 for ashx/asmx. Otherwise we need to open the file and check for the
2041 class name in there. Thanks to Ben for pointing this out.
2043 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2046 * AspTokenizer.cs: prevent quotes from being swallowed when we're
2047 inside a server tag and they are the next non-whitespace character.
2050 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2052 * CachingCompiler.cs: don't try to watch for changes in system
2053 assemblies. Fixes bug #64871.
2055 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2057 * AspGenerator.cs: handle builders that need to process inner text
2060 * Location.cs: added setters for the properties.
2062 2004-08-02 Duncan Mak <duncan@ximian.com>
2064 * BuildProviderResultFlags.cs:
2065 * IImplicitResourceProvider.cs:
2066 * ImplicitResourceKey.cs:
2067 * IResourceReader.cs: Added.
2069 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2071 * AspGenerator.cs: the path for file was treated as virtual, but it's
2072 physical. Fixes bug #61524.
2074 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2076 * AspParser.cs: fixed case-sensitivity issues with #include and its
2077 attributes. Closes #61429.
2079 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2082 * WebServiceCompiler.cs: really create the dlls under DynamicBase
2084 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2086 * TemplateControlCompiler.cs: for system colors, use SystemColors class
2087 instead of Color. Fixes bug #60249.
2089 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2091 * BaseCompiler.cs: try getting the Type from the cache before doing the
2092 real work. Remove temporary files right after successful compilation.
2094 * CachingCompiler.cs: added GetTypeFromCache.
2096 * UserControlCompiler.cs: nothing interesting.
2098 * WebServiceCompiler.cs: try getting the Type from the cache before
2099 doing anything else. Remove temp files on sucessful compilation.
2101 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2104 * CachingCompiler.cs: use a different prefix when caching compiler
2107 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2109 * BaseCompiler.cs: dynamicBase is now protected. Check
2110 MONO_ASPNET_NODELETE here.
2112 * TemplateControlCompiler.cs: if the type is not known but has a
2113 TypeConverter, invoke ConvertFromString in the generated code.
2115 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2116 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2118 * CachingCompiler.cs: updated compilation of web services and simple
2121 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2123 * CSCompiler.cs: removed.
2125 * CachingCompiler.cs: language independent compilation for single files.
2127 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2131 * CachingCompiler.cs: use HttpRuntime.Cache.
2133 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2135 * PageCompiler.cs: fixed Trace and add support for Buffer.
2137 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2139 * PageCompiler.cs: override CreateConstructor to add assignment for
2142 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2144 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2145 of CodeObjectCreateExpression for the render method delegate. Thanks
2148 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2150 * BaseCompiler.cs: use DynamicBase for the output assemblies.
2152 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2156 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2158 * AspParser.cs: indent a few lines.
2159 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2160 attribute value. This way we can simulate reading 2 characters ahead
2161 (one in ungetc and the other in Peek) and work with values like
2162 text/javascript. Fixes bug #57302.
2164 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2166 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2168 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
2170 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2172 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2174 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2176 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2178 * AspGenerator.cs: error out when <object> server tag is not closed.
2179 Ignore any content inside it.
2181 2004-02-10 Jackson Harper <jackson@ximian.com>
2183 * AspTokenizer.cs: Collect discarded characters that might be used
2184 in client side scripts. Patch by Liyu Liu.
2185 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2187 2004-02-10 Jackson Harper <jackson@ximian.com>
2189 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2192 2004-01-30 Jackson Harper <jackson@ximian.com>
2194 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2195 the build method takes strings not ints.
2197 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2199 * AspGenerator.cs: handle more possible errors in global.asax file.
2201 * BaseCompiler.cs: added utility methods for creating <object> related
2202 properties and fields.
2204 * GlobalAsaxCompiler.cs: keep around applications and session scope
2205 objects builders. Also a list of imports and assemblies added in
2208 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2210 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2212 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2213 pages more than once. Thanks to Eric Lindvall for pointing this out.
2215 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 * TemplateControlCompiler.cs: allow handling subproperties for other
2218 types than Style and Font. Fixes bug #53217.
2220 2004-01-16 Jackson Harper <jackson@ximian.com>
2222 * TagAttribute.cs: attributes can be stored as encoded html so we
2225 2004-01-14 Jackson Harper <jackson@ximian.com>
2227 * TemplateControlCompiler.cs: Is a user control is cached and
2228 shared use the controls type hashcode for the GUID so it will be
2229 the same across instances.
2231 2004-01-13 Jackson Harper <jackson@ximian.com>
2233 * TemplateControlCompiler.cs: If an item has the partial caching
2234 attribute build a PartialCachingControl in the parents __Build method.
2235 * BaseCompiler.cs: Add a method for adding class attributes to the
2237 * UserControlCompiler.cs: If caching is enabled on a user control
2238 add the PartialCachingAttribute to it.
2240 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2242 * PageCompiler.cs: invoke Request.ValidateInput if required.
2244 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2246 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2247 #52521. Patch by liyul@hotmail.com.
2249 2003-12-25 Jackson Harper <jackson@ximian.com>
2251 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2254 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2256 * PageCompiler.cs: assign the ErrorPage property if provided.
2258 2003-12-15 Jackson Harper <jackson@ximian.com>
2260 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2261 method if they are set.
2263 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2265 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
2266 fail when runat="server" is applied to <tbody> with a parse error
2267 instead of waiting for a compilation error. Fixes bug #52157.
2269 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2271 * AspGenerator.cs: basic checking of ID validity. Throw a
2272 ParseException when mixing languages.
2274 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2277 FrameworInitialize() if provided in @Page.
2281 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2283 * TemplateControlCompiler.cs: support for expressions of
2284 System.Drawing.Size type. Allow getting Color from comma separated
2285 numbers, which is not allowed by ColorConverter.
2287 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2289 2003-11-13 Jackson Harper <jackson@ximian.com>
2291 * PageCompiler.cs: Call InitOutputCache when the OutputCache
2294 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2296 * AspGenerator.cs: use fileEncoding from configuration files.
2298 * PageCompiler.cs: add assign statements for ContentType,
2299 ResponseEncoding and CodePage if supplied.
2301 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2303 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2304 a return statement for user controls with 'void' return type.
2306 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2308 * AspParser.cs: fixed bug #49627.
2310 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2312 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2314 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2316 * Directive.cs: new attribute for @Page directive in 1.1.
2318 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2321 * TagAttributes.cs: allow duplicated runat=server attributes and display
2322 error page when duplicated attributes and runat is specified.
2324 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2326 * AspTokenizer.cs: moved token numbers above unicode.
2328 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2330 * AspGenerator.cs: don't process code render tags inside scripts. Check
2331 the language of the script and treat javascript as verbatim input.
2334 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2336 * TemplateControlCompiler.cs: fixed bug #48212.
2338 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2340 * WebServiceCompiler.cs: remove the temporary files here too.
2342 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2344 * AspGenerator.cs: fixed bug #46429.
2346 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2348 * Directive.cs: support @WebHandler.
2350 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2352 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2354 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2356 * BaseCompiler.cs: first look for cached items, then generate the tree.
2357 This should speed things up.
2359 * CachingCompiler.cs: when compiling web services, use the full path of
2360 the .asmx file as key when caching.
2362 * WebServiceCompiler.cs: first look for cached items, then generate
2365 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2367 * AspParser.cs: more useful error information,
2370 * CachingCompiler.cs: honor the debug="true" option.
2372 * TemplateControlCompiler.cs: small fixes for templates.
2374 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2376 * BaseCompiler.cs: made Compiler property virtual.
2378 * CachingCompiler.cs: added support for compiling web services.
2380 * WebServiceCompiler.cs: implemented.
2382 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2384 * CachingCompiler.cs: fixed bug #43477.
2386 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2389 * AspTokenizer.cs: fixed bugs #43206 and #43371.
2391 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2393 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2394 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2397 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2399 * CompilationException.cs: don't add duplicated lines in the case that
2400 mcs reports several errors for the same one.
2402 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2404 * AspGenerator.cs: fully support including files, ie., treat them just
2405 as C treats #includes.
2407 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2411 * TagType.cs: Added support for server side includes.
2413 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2415 * CSCompiler.cs: actually add the list of referenced assemblies to the
2416 compiler options. Throw a CompilationException if there's an error.
2418 * CachingCompiler.cs: added a method to compile directly from a source
2421 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2423 * AspGenerator.cs: copy the location before setting the value for the
2426 * BaseCompiler.cs: changed parameters for CompilationException.
2428 * CompilationException.cs: it takes now line numbers and error
2429 descriptions from the CompilerErrorCollection.
2431 * Location.cs: used when a copy of an ILocation is needed.
2433 * ParseException.cs: implemented new methods to provide line numbers
2436 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
2438 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2440 * AspGenerator.cs: also support data bind syntax inside tags not
2441 processed as controls. Added debugging method.
2443 * TemplateControlCompiler.cs: reset the number of data binding handlers
2444 in the proper place. Small fix when getting the container type.
2446 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2448 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
2451 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2453 * AspGenerator.cs: handle code render syntax in tag attributes.
2455 * AspParser.cs: the constructor now takes a TextReader.
2457 * TemplateControlCompiler.cs: removed comment.
2459 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2461 * TemplateControlCompiler.cs: added support for data bound properties.
2463 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2465 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
2466 instead of their names.
2468 * AspElements.cs: removed. No longer needed.
2470 * AspGenerator.cs: this file is now in charge of interfacing between
2471 the parser and the compiler. It manages the creation of the
2472 ControlBuilder tree and the compilation of the CodeDOM tree.
2474 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
2475 of different Types, tags are just and id and a set of attributes.
2476 Implement ILocation interface.
2478 * AspTokenizer.cs: added a few methods to help the parser implementing
2481 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
2482 common to appliaction, page and user control, including the actual
2483 compilation and error handling.
2485 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
2487 * CachingCompiler.cs: simplified to use the new interfaces.
2489 * CompilationException.cs: it's now using CompilationResult to report
2492 * CompilationResult.cs: Removed file.
2494 * Directive.cs: to check for the validity of a directive.
2496 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
2499 * ILocation.cs: interface used to now the exact place where a parse
2502 * PageCompiler.cs: generates a couple of methods that are only used in
2505 * ParseException.cs: use the ILocation interface.
2507 * TagAttributes.cs: handles the attributes of the tags parsed.
2509 * TagType.cs: an enum for the different kinds of tags.
2511 * TemplateControlCompiler.cs: this is the one that does most of the
2512 conversion from teh ControlBuilder tree into a CodeDOM tree.
2514 * UserControlCompiler.cs: simplified as most of the work is done in
2517 * WebServiceCompiler.cs: dummy.
2519 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2521 * AspComponentFoundry.cs: added GetComponentType method.
2523 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2525 * AspTokenizer.cs: allow quotes inside server tags that are part of
2528 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
2531 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2533 * AspGenerator.cs: generate correct appbase path. It was working with
2534 mcs but not with csc.
2536 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
2538 * CachingCompiler.cs: quote source file.
2540 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2542 * AspGenerator.cs: now the Inherits attribute works as expected for
2545 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2547 * CompilationException.cs:
2548 * ParseException.cs: display the correct line number in error messages.
2550 * AspElements.cs: added TargetSchema attribute for control. It's
2553 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2555 * BaseCompiler.cs: fixed the hack to work under windows.
2556 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
2558 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2560 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
2562 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
2564 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
2565 app's private bin path
2567 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2571 * CachingCompiler.cs:
2572 * CompilationResult.cs:
2573 * GlobalAsaxCompiler.cs:
2575 * UserControlCompiler.cs: recompile the page if dependencies change.
2577 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2579 * AspGenerator.cs: corrected typo and wrong fix.
2581 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2583 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
2584 when used explicitly.
2586 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2588 * AspElements.cs: get the property Type for controls that use
2589 ParseChildren with a property name.
2591 * AspGenerator.cs: generate correct signature for the method that
2592 adds controls to the default property in ParseChildren.
2594 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2596 * AspGenerator.cs: rethrow exceptions that may come from parsing or
2597 compilation if a user control.
2599 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2601 * AspGenerator.cs: throw ParseException on parse
2604 * AspParser.cs: added Line and Column props.
2606 * CompilationException.cs: derives now from HtmlizedException.
2608 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
2610 * GlobalAsaxCompiler.cs:
2612 * UserControlCompiler.cs: pass the file name in the CompilationResult.
2614 * ParseException.cs: new exception.
2617 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2619 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
2622 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2624 * AspParser.cs: the parser fires events when it parses an element.
2626 * GlobalAsaxCompiler.cs:
2628 * UserControlCompiler.cs:
2629 * AspElements.cs: modified to use the new parser interface.
2631 * AspGenerator.cs: modified to use the new parser. Merge multiple text
2632 strings into one single LiteralControl.
2634 * AspTokenizer.cs: added Line and Column properties.
2636 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2638 * AspParser.cs: fixed bug #36929.
2640 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
2644 * CachingCompiler.cs: changes to work around spaces and
2645 directory-separators in the local filesystem.
2647 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2649 * AspGenerator.cs: make the generated file compile with csc after last
2652 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2654 * AspGenerator.cs: removed unused variable. Added support for
2655 properties/fields of type string [].
2657 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2659 * AspGenerator.cs: modified loading of the parent type now that
2660 Type.GetType is fixed.
2662 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2664 * AspGenerator.cs: cast to Control if the container does not implement
2667 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2669 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
2671 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2673 * AspElements.cs: attributes without value lacked a space afterwards.
2675 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2677 * AspGenerator.cs: functions for columns don't return anything. Fixed
2680 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2682 * AspGenerator.cs: add data bound controls to code render function.
2684 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2686 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
2687 controls. You can register 1 assembly plus any number of user controls
2688 under the same prefix.
2690 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
2691 Hack to allow @Register access to assemblies in other places than bin
2694 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2696 * AspElements.cs: added 'codebehind' attribute for page, control and
2697 application. It's ignored by MS, but allowed. Fixed typo.
2699 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2701 * AspGenerator.cs: fixed EnableSesssionState handling.
2703 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2705 * AspGenerator.cs: don't generate instance fields for pages/controls
2706 when the base class specified in the Inherits attribute already has
2707 them. Closes bug #36262.
2709 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2711 * AspGenerator.cs: generate code like 'control.XXX = value' also for
2712 public fields (properties were being handled in that way too).
2714 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2716 * AspGenerator.cs: now it uses the current HttpContext when creating
2717 user controls. TemplateSourceDirectory is no longer a dummy value.
2719 * GlobalAsaxCompiler.cs:
2721 * UserControlCompiler.cs: set the context which will be used to locate
2724 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2726 * AspGenerator.cs: added support for AutoEventWireup attribute in
2729 * CompilationResult.cs:
2730 * GlobalAsaxCompiler.cs:
2732 * UserControlCompiler.cs: store the options.
2734 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2736 * AspElements.cs: new method Tag.GetElements
2737 used to parse the inner contents of a tag looking for data binding or
2740 New property HtmlControlTag.ParseChildren allows
2741 differentiation of a couple of HtmlControls that has children as
2742 properties (namely HtmlTable and HtmlTableRow).
2744 * AspGenerator.cs: fixed container semantics to
2745 match BindingContainer one. Implemented Inherits attribute for page and
2748 Support HtmlControls that has ChildrenAsProperties.
2750 Generate code for data binding functions that matches the semantic of
2753 Handle data bound and code render attribute values.
2755 Set proper value return for TemplateSourceDirectory. Should be relative
2758 * BaseCompiler.cs: moved CompilerOptions and
2759 References handling here.
2761 * CachingCompiler.cs: copy result of compilation.
2763 * CompilationException.cs: simple ToString () implementation.
2765 * CompilationResult.cs: implemented CopyFrom and ToString.
2767 * GlobalAsaxCompiler.cs:
2769 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
2770 in the base class. Get all the types in the generated assembly and
2771 look for one that derives from the correct Type.
2773 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2775 * AspElements.cs: added @Application directive.
2777 * AspGenerator.cs: make it work also with application files. We
2778 currently generate an extra private function.
2780 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2782 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
2783 exists, it will be compiled into an HttpApplication derived class
2784 (directly or through a user-provided class).
2786 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2788 * AspGenerator.cs: fixed target file name and generated class name.
2789 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
2791 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2793 * AspGenerator.cs: reworked user control
2794 compilation. Provide the options as a Hashtable for use in compilation.
2795 Create the user controls in the private bin path of the domain.
2797 * BaseCompiler.cs: base class for the various compiler types.
2799 * CachingCompiler.cs: actually executes mcs and do some poor caching
2800 (it will use Cache when finished).
2802 * CompilationException.cs: this exception has enough information to
2803 generate a nice error page.
2804 * CompilationResult.cs: used in caching.
2806 * PageCompiler.cs: now derives from BaseCompiler
2808 * TemplateFactory.cs: no longer needed.
2810 * UserControlCompiler.cs: new class used when compiling user controls.
2811 * WebServiceCompiler.cs: derives from BaseCompiler.
2813 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2815 * AspElements.cs: added ServerComment class.
2816 * AspParser.cs: ignore ServerComments tags. Remove server comments when
2821 * PageCompiler.cs: check if the type is already cached before generating
2823 * TemplateFactory.cs: if csFile parameter is null, only checks if we
2824 already have the page compiled.
2826 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2828 * AspGenerator.cs: undo one-liner change.
2830 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2832 * AspGenerator.cs: removed a few hacks no longer needed.
2834 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2836 * PageCompiler.cs: tracing.
2837 * TemplateFactory.cs: cache compiled types and tracing.
2838 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
2840 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2842 * AspComponentFoundry.cs: fixed typo.
2843 * TemplateFactory.cs: use csc style options.
2844 * AspGenerator.cs: don't use FileDependencies property of base class.
2846 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2848 * System.Web.Compilation/AspElements.cs:
2849 * System.Web.Compilation/AspGenerator.cs:
2850 * System.Web.Compilation/AspParser.cs:
2851 * System.Web.Compilation/PageCompiler.cs:
2852 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
2853 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
2855 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2857 * AspElements.cs: added WebService directive.
2858 * WebServiceCompiler.cs: New file.
2860 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2862 * PageCompiler.cs: fixed compilation.
2864 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2866 * PageCompiler.cs: generate C# file using AspGenerator.
2868 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2870 * AspComponentFoundry.cs: LookupFoundry now returns bool.
2871 * AspGenerator.cs: New file.
2873 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2875 * AspComponentFoundry.cs: New file.
2876 * AspElements.cs: renamed Component to Aspcomponent.
2878 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2885 * TemplateFactory.cs: first steps to move xsp into System.Web.