1 2008-11-14 Marek Habersack <mhabersack@novell.com>
3 * TemplateControlCompiler.cs: treat Eval and Bind expressions as
4 verbatim code. The only difference between the two is that in the
5 latter case Bind is replaced with Eval in the output code. Fixes
8 2008-10-29 Marek Habersack <mhabersack@novell.com>
10 * BuildManager.cs: seal the internal classes.
11 Remove unused BuildCacheItem.ValidBuild property.
13 2008-10-16 Marek Habersack <mhabersack@novell.com>
15 * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
16 use PropertyInfo.CanWrite to check whether the property is
17 writable anymore, it calls GetSetMethod (false) instead.
19 2008-10-10 Marek Habersack <mhabersack@novell.com>
21 * TemplateControlCompiler.cs: allow whitespace around parentheses
22 in the Bind and Eval expressions.
24 2008-10-09 Marek Habersack <mhabersack@novell.com>
26 * BuildManager.cs: if monoSettings section is found in the
27 system.web section in web.config, use its contents to augment
28 compiler configuration. Used to work around the issue reported in
31 2008-10-08 Marek Habersack <mhabersack@novell.com>
33 * TemplateControlCompiler.cs: templates must be instantiated even
34 for builders which process children as properties.
36 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
38 * AssemblyBuilder.cs: use CodeBase to get to the original assembly
39 path because Location might point the the shadow copy. Bug #409646
42 2008-10-03 Marek Habersack <mhabersack@novell.com>
44 * BuildManager.cs: if an assembly fails to build out of a batch of
45 files, extract the virtual path that was requested by the client
46 and attempt to compile it alone.
48 2008-09-29 Marek Habersack <mhabersack@novell.com>
50 * BuildManagerRemoveEntryEventHandler.cs: added
52 * BuildManager.cs: added a static event to notify interested
53 parties when an entry is removed from the buildCache. Fixes bug
56 2008-09-26 Marek Habersack <mhabersack@novell.com>
58 * BuildManager.cs: when creating a cache entry for a virtual path,
59 make it depend on a list of files built recursively from all the
60 virtual path's dependencies. Fixes bug #430114
62 2008-09-24 Andreia Gaita <avidigal@novell.com>
64 * AspParser.cs: When parsing text which contain xml tags that resemble
65 the end string, append the original text instead of the end string,
66 because the casing might not match between the two. Fixes #320445
68 2008-09-23 Marek Habersack <mhabersack@novell.com>
70 * AspGenerator.cs: ignore whitespace only if it's between
71 CodeRender blocks, not between DataBinding and
74 2008-09-01 Marek Habersack <mhabersack@novell.com>
76 * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
77 null/empty parser.InputFile now.
79 * AspGenerator.cs: AddTypeToCache works checks whether inputFile
80 is null or empty and does not assume the dependencies ArrayList is
82 CloseControl uses ControlBuilder's OriginalTagName property,
83 should the property/tag name be prefixed with 'prefix:'
85 * CachingCompiler.cs: expect the dependencies ArrayList to be null
88 2008-08-31 Marek Habersack <mhabersack@novell.com>
90 * TemplateControlCompiler.cs: trust builder.BindingContainerType
91 in the 2.0+ profile - do not use container properties to detect
93 Added a helper method, compiled only when DEBUG is defined, to
94 generate Console.WriteLine CodeDOM calls.
95 Templates are processed before anything else, so that children
96 which may depend on parent's templates can get access to them.
98 * BaseCompiler.cs: add line pragmas only if enabled for the
101 2008-08-29 Marek Habersack <mhabersack@novell.com>
103 * AppCodeCompiler.cs: properly handle profile base class
104 specifications which refer to full type names.
106 2008-08-26 Marek Habersack <mhabersack@novell.com>
108 * BuildManager.cs: use VirtualPathUtility.Combine in
109 GetAbsoluteVirtualPath for non-rooted paths.
111 2008-08-19 Marek Habersack <mhabersack@novell.com>
113 * ThemeDirectoryBuildProvider.cs: theme directory dependencies
114 should use only virtual paths for CSS files. Fixes bug #397187
116 2008-08-18 Marek Habersack <mhabersack@novell.com>
118 * TemplateControlCompiler.cs: process expression when they are
119 used used in values of attributes without associated
120 properties. Fixes bug #417883
122 * ResourceExpressionBuilder.cs: added two overloads of
123 CreateGetLocalResourceObject to encompass cases when the generated
124 expression is not assigned to a property but rather used as a
125 parameter to the SetAttribute method. Fixes bug #417883
127 2008-08-14 Marek Habersack <mhabersack@novell.com>
129 * AspGenerator.cs: do not ignore directives inside HTML comments.
131 * TemplateControlCompiler.cs: .NET allows for whitespace between
132 the directive start (<%) and the directive type character. Added
133 code which copes with such situations correctly.
135 2008-08-13 Marek Habersack <mhabersack@novell.com>
137 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
138 to allow for single quotes and an optional second parameter to the
140 Added an Eval regular expression.
141 Both Bind and Eval calls in data expressions are now converted
142 into a CodeDOM method invocations, to allow support for possible
143 languages which use a different call format (previously code
145 Added a method to construct the Eval invoke expression which
146 simplifies code in other areas.
149 2008-08-06 Marek Habersack <mhabersack@novell.com>
151 * TemplateControlCompiler.cs: handle situation when a property of
152 a control for which we're generating the code is of type
153 'Type'. In such case, variable.GetType() will return
154 System.MonoType, which must not be output to the generated
155 source. Thanks to Robert Jordan for giving the idea for the hack!
157 2008-06-30 Marek Habersack <mhabersack@novell.com>
159 * AspGenerator.cs: hush the warnings and fix invalid type
162 * AssemblyBuilder.cs: hush the warnings and add some debugging
165 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
166 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
167 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
169 2008-06-18 Marek Habersack <mhabersack@novell.com>
171 * TemplateControlCompiler.cs: AddChildCall properly processes the
172 PartialCachingAttribute now.
174 2008-06-11 Marek Habersack <mhabersack@novell.com>
176 * BuildManager.cs: if an error occurs while assigning the
177 requested path to an assembly builder inside BuildAssembly, throw
180 * BaseCompiler.cs: do not generate #line pragma for code which
181 exists only in memory.
183 2008-05-30 Marek Habersack <mhabersack@novell.com>
185 * ClientBuildManager.cs: do not use synthetized event accessors
188 2008-05-28 Marek Habersack <mhabersack@novell.com>
190 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
193 2008-05-19 Marek Habersack <mhabersack@novell.com>
195 * AspGenerator.cs: if the last tag parsed was a code directive,
196 ignore any accumulated text if it's 100% whitespace.
197 Do not parse code render directives inside comments.
199 2008-05-15 Marek Habersack <mhabersack@novell.com>
201 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
202 when adding a foundry to the array list. AssemblyFoundry instances
203 are stacked at the end of the array list in a LIFO manner. That
204 way TagNameFoundry takes precedence over AssemblyFoundry should
205 the two contain the same type.
207 2008-05-14 Marek Habersack <mhabersack@novell.com>
209 * ParseException.cs: location can be null in the FileText property
212 2008-05-07 Marek Habersack <mhabersack@novell.com>
214 * AspGenerator.cs: push the include file directory to the parser
215 include directory stack and pop it after parsing the include, so
216 that the relative file paths are resolved correctly. Fixes bug
219 2008-05-06 Marek Habersack <mhabersack@novell.com>
221 * TemplateControlCompiler.cs: compatibility - added the
222 __stringResource static field to the generated class and a call to
223 SetStringResourcePointer to the FrameworkInitialize method.
225 * PageCompiler.cs: __fileDependencies should also be defined in
227 Page properties assigned in the page directive should be set
228 inside BuildControlTree in the 2.0 profile.
230 2008-04-29 Marek Habersack <mhabersack@novell.com>
232 * WebServiceCompiler.cs: if compiling a body-less web service, try
233 to load the class type from the loaded assemblies before
234 attempting to find it in the assemblies on disk.
236 2008-04-28 Marek Habersack <mhabersack@novell.com>
238 * BuildManager.cs: ignore bad assemblies in the bin/
239 directory. Fixes bug #315816
241 2008-04-26 Marek Habersack <mhabersack@novell.com>
243 * GenericBuildProvider.cs: the Parse () method should reuse the
244 previously opened TextReader when calling generator.Parse (), to
245 avoid opening the input file multiple times. Fixes bug #383881
247 2008-04-25 Marek Habersack <mhabersack@novell.com>
249 * AspGenerator.cs: put some safeguards in, to make sure streams
250 are closed in any case.
252 2008-04-24 Marek Habersack <mhabersack@novell.com>
254 * AspComponentFoundry.cs: added a new GetComponentType overload
255 which returns component source and a boolean flag whether the
256 control was registered from web.config (2.0).
258 2008-04-22 Marek Habersack <mhabersack@novell.com>
260 * BuildManager.cs: ignore also arbitrary exceptions when
261 batch-building an assembly. Fixes bug #323556
263 2008-04-19 Marek Habersack <mhabersack@novell.com>
265 * BuildManager.cs: use absolute virtual path to query the
266 VirtualPathProvider for path existence.
267 When ASP.NET is self-hosted, force
268 non-batch compilation. Fixes bug #380985
270 * ILocation.cs: added a new property, FileText.
272 * Location.cs: added implementation of the ILocation.FileText
275 * ParseException.cs: use the new ILocation.FileText, if defined,
276 to get the file source.
278 * AspGenerator.cs: when TextReader is present, use it to read with
279 the VirtualPathProvider to read the file source. Fixes bug #381364
281 * AspParser.cs: added a new property FileText to provide the file
282 contents which was read in the constructor.
284 2008-04-18 Marek Habersack <mhabersack@novell.com>
286 * BuildManager.cs: when any parsing error occurs during batch
287 building, ignore the file which caused it. If the file with
288 parsing error is the one requested by user, throw the parsing
289 exception. Fixes bug #323742
291 2008-04-15 Marek Habersack <mhabersack@novell.com>
293 * CachingCompiler.cs: dispose of streams the way it should
296 2008-04-09 Marek Habersack <mhabersack@novell.com>
298 * BuildManager.cs: refactoring - the SetCommonParameters and
299 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
300 and made internal static.
301 Do not catch compilation exceptions and wrap them in
302 HttpException, let the CompilationException pass through. Fixes
305 * AppWebReferencesCompiler.cs: added - support for compiling of
306 wsdl files found in the App_WebResources directory. Fixes bug
309 * BuildProvider.cs: refactoring - moved the SetCommonParameters
310 and GetDefaultCompilerTypeForLanguage to BuildManager
312 * WsdlBuildProvider.cs: added the CodeCompilerType property
314 Namespace for the generated code is taken from the wsdl path,
315 relative to App_Code or App_WebReferences, if the wsdl in question
316 is under on of those directories.
317 GenerateCode uses OpenReader () so that VirtualPathProvider works
320 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
321 when generating source from code unit and use
322 WebEncoding.FileEncoding when adding code files to the unit. Fixes
324 Cope with virtualPath being null in BuildAssembly.
325 Reference assemblies specified in web.config when linking.
327 2008-04-08 Marek Habersack <mhabersack@novell.com>
329 * AspComponentFoundry.cs: add loaded assembly to the
330 BuildManager's list of referenced assemblies instead to
331 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
333 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
335 * BuildManager.cs: switched to VirtualPath instead of a string
336 path in several methods.
337 Batch compilation is turned off if we have a custom
338 VirtualPathProvider which implements only the VirtualFile and
339 falls back to DefaultVirtualDirectory implementation for directory
341 Added an internal method AddToReferencedAssemblies.
342 Remove invalidated entry from
343 WebConfigurationManager.ExtraAssemblies.
345 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
347 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
349 * AssemblyBuilder.cs: constructors use the new VirtualPath class
351 AddCodeFile can use the VirtualPathProvider if necessary now.
352 BuildAssembly overloads accept VirtualPath parameter instead of a
355 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
358 2008-03-31 Marek Habersack <mhabersack@novell.com>
360 * AppCodeCompiler.cs: implemented support for AppInitialize (a
361 static method in any class defined in the App_Code source files),
362 ran just after the App_Code assemblies are compiled in order to
363 perform any application initialization actions.
365 2008-03-27 Marek Habersack <mhabersack@novell.com>
367 * BuildManager.cs: AssertVirtualPathExists now queries the
368 VirtualPathProvider for path existence if physical path check
369 fails, before throwing the 404 exception.
371 2008-03-13 Marek Habersack <mhabersack@novell.com>
373 * BuildManager.cs: if we're running in a case-insensitive
374 environment, use case-insensitive comparer for the build caches.
376 2008-02-29 Marek Habersack <mhabersack@novell.com>
378 * BuildManager.cs: implement a mechanism to ignore certain virtual
379 paths when batch compiling. Helps applications which may have
380 .as?x files which won't work on mono for various reasons (one such
381 sample is mojoportal).
383 2008-02-28 Marek Habersack <mhabersack@novell.com>
385 * TemplateControlCompiler.cs: make sure that data-bound attribute
386 assignments properly convert the Bind expression to the Eval
387 one. Fixes bug #362039
389 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
390 controls can contain only them, whitespace and directives. Fixes
393 2008-02-27 Marek Habersack <mhabersack@novell.com>
395 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
396 LoadType method for the 2.0 profile.
398 * CompilationException.cs: use a different format of ErrorMessage
399 for the 2.0+ profile.
401 2008-02-26 Marek Habersack <mhabersack@novell.com>
403 * BuildManager.cs: known file types extensions are now matched
406 2008-02-25 Marek Habersack <mhabersack@novell.com>
408 * TemplateControlCompiler.cs: GetContainerType now checks whether
409 the binding container returned from the builder implements
410 IDataItemContainer (for 2.0+ profiles) and looks for one more
411 property, Rows, if no Items property is found.
413 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
415 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
416 "raw" appsetting value if targetType is null.
418 2008-02-07 Marek Habersack <mhabersack@novell.com>
420 * CompilationException.cs: added new constructor which takes
421 CompilerResults as one of the parameters.
422 Added CompilerOutput property.
424 * AssemblyBuilder.cs: use the new CompilationError constructor.
426 * BuildManager.cs: check for virtualPath existence before
427 attempting to compile the assemblies. Fixes bug #359465
429 2008-02-06 Marek Habersack <mhabersack@novell.com>
431 * GenericBuildProvider.cs: GetGeneratedType may return a type even
432 though the results are null.
434 * AssemblyBuilder.cs: if there are no units, no source files, no
435 resources and no embedded resources in the passed options then
436 do not attempt to compile the assembly. Fixes bug #359325
438 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
439 BuildAssembly may return null results.
441 * BuildManager.cs: protect non-page builds from endless recursion
442 if a non-page file recursively references/includes another file
443 from the same batch. If such case is detected, the recursively
444 referenced file is compiled into a separate assembly and removed
445 from the previous compilation batch. Fixes bug #358742.
446 If AssemblyBuilder returns no results from BuildAssembly, it might
447 mean we're dealing with a compilation of empty .as[hm]x files,
448 with no code and only code-behind in bin/. Do not report an error
449 in that case, only add the compiled types to the cache. Fixes bug
452 2008-02-05 Marek Habersack <mhabersack@novell.com>
454 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
455 non-rooted relative paths to absolute ones now. Fixes bug
458 * GenericBuildProvider.cs: introduced a new abstract method,
459 GetReferencedAssemblies, which is called on descendant builders to
460 get a list of assemblies referenced by the parsed file. Fixes bug
463 * AssemblyBuilder.cs: added a new overload of the
464 AddAssemblyReference method, to be used by build providers to
465 register assemblies collected by the corresponding parser.
467 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
468 overload of the new abstract method GetReferencedAssemblies.
470 * AspGenerator.cs: introduced a new overload for the Parse method
471 which accepts a bool indicating whether or not to initialize the
472 parser. The overload is used when parsing server-side
473 includes. Fixes bug #357498
475 2008-02-04 Marek Habersack <mhabersack@novell.com>
477 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
478 generating source code files. Fixes bug #357053.
480 * AspGenerator.cs: set isApplication before parsing. Fixes bug
483 2008-01-31 Jb Evain <jbevain@novell.com>
485 * AspGenerator.cs: correct typo. Fix #357547.
487 2008-01-27 Marek Habersack <mhabersack@novell.com>
489 * BuildManager.cs: GetReferencedAssemblies includes the extra
490 assemblies and the App_Code assemblies. Patch from Mike Morano
491 <mmorano@mikeandwan.us>, thanks!
493 2008-01-24 Marek Habersack <mhabersack@novell.com>
495 * WebHandlerBuildProvider.cs: derive from the new
496 SimpleBuildProvider class.
498 * BuildManager.cs: full implementation of the batch compilation
499 for the 2.0 profile. The implementation is most probably different
500 to MS.NET's but the effects are the same (or nearly the same -
501 there are some minor differences). There are missing bits and
502 pieces, but minor ones - to be added later.
504 * SimpleBuildProvider.cs: new build provider abstract class
505 deriving from the GenericBuildProvider that implements common code
506 for building web handlers and web services.
508 * GenericBuildProvider.cs: new generic abstract class used to
509 implement base builder code for all the build provider types and
512 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
513 class and implement all the necessary abstract members.
514 Handle "fake" virtual paths, to properly support generating of the
517 * BuildProvider.cs: SetVirtualPath now converts the passed path to
519 Added internal virtual method GenerateCode, used by derived
521 SetCommonParameters no longer sets the referenced assemblies, this
522 is done in BuildManager now.
523 Added an internal virtual property CodeUnit which returns the
524 build provider's compilation unit.
526 * PageCompiler.cs: fix assignment of base types for asynchronous
527 pages, to match MS.NET.
528 For asynchronous pages, add the necessary methods generation.
530 * BaseCompiler.cs: default namespace is now set using a constant.
531 Renamed the Init method into ConstructType, to better reflect its
532 purpose and made the method internal - it is used by the build
534 Added several CreateProvider overloads for easier and more unified
535 compilation provider creation.
536 Added an internal MainClassType property to enable class type name
537 retrieval from other parts of the class hierarchy.
539 * ApplicationFileBuildProvider.cs: new build provider deriving
540 from the TemplateBuildProvider class to compile the global.asax
543 * AspGenerator.cs: properly handle parsers which have no input
544 file path given, but use TextReader instead.
545 Dependencies are virtual paths now, convert them to physical ones
546 before creating cache dependency.
548 * CachingCompiler.cs: parser dependencies are virtual paths now,
549 convert them to physical ones before creating cache dependency.
551 * AssemblyBuilder.cs: full implementation of the documented
552 functionality as well as a lot of internal build code
553 added. Produces assemblies using the same style what MS.NET for
554 temporary and target file naming. Handles partial type squashing
555 if the same partial type is used by several code compile units
556 added to the same builder instance.
558 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
559 base class and add implementation of all the abstract methods
562 * ThemeDirectoryBuildProvider.cs: new build provider to compile
563 theme directories. Replaces the old ThemeDirectoryCompiler class.
565 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
566 base class and add implementation of all the abstract methods
569 * TemplateBuildProvider.cs: new internal abstract class which
570 implements the common tasks for all the template control build
573 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
574 type to implement building.
576 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
578 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
580 2008-01-08 Marek Habersack <mhabersack@novell.com>
582 * TemplateControlCompiler.cs: statements to assign
583 fields/properties from resources must be processed at the very end
584 of the control creation method. Some controls (like HyperLink) can
585 set their Text attribute using literal content. In such cases, in
586 order to properly localize the control, the value read from the
587 local page resources must be assigned after the literal value has
588 been added to the control. Fixes bug #323494
590 2008-01-07 Marek Habersack <mhabersack@novell.com>
592 * CachingCompiler.cs: added an overload to the Compile method
593 which accepts a flag whether or not to include debug information
594 in the generated assembly.
596 2008-01-02 Marek Habersack <mhabersack@novell.com>
598 * TemplateControlCompiler.cs: add line pragma wherever necessary.
600 * PageCompiler.cs: reorder the statements to match MS.NET output.
601 Output line pragma information for directive attributes.
603 * BaseCompiler.cs: add a set of AddLinePragma methods for various
605 Output line pragmas when adding server-side scripts to the CodeDOM
608 * AspGenerator.cs: use ServerSideScript to store script location
609 in the original file.
611 * UserControlCompiler.cs: output line pragmas for the init
614 2007-12-28 Marek Habersack <mhabersack@novell.com>
616 * PageCompiler.cs: MS.NET compatibility: added the
617 __fileDependencies object to the generated class.
618 Refactored the output to match MS.NET more closely.
619 IHttpHandler or IHttpAsyncHandler are now added to the generated
620 class list of implemented interfaces.
622 * BaseCompiler.cs: Main class field references are prefixed with
624 Refactored the output to match MS.NET more closely.
626 2007-12-27 Marek Habersack <mhabersack@novell.com>
628 * BaseCompiler.cs: check for base type globality in all the
631 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
633 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
636 2007-12-21 Marek Habersack <mhabersack@novell.com>
638 * BaseCompiler.cs: Refactoring. Move the provider creation code to
639 an internal static method, so that other piece of code which need
640 to create the provider can do it using the same code.
641 Added setters to several internal properties, so that they can be
642 shared with derivative classes.
644 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
647 * CachingCompiler.cs: adjust to the changes above. Also some
650 2007-12-15 Marek Habersack <mhabersack@novell.com>
652 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
654 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
655 profile, it's obsoleted. CachingCompiler will use the
656 CodeDomProvider methods directly in that case.
658 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
659 compiler information for the 2.0 profile from system.codeDom.
661 * CachingCompiler.cs: the Compile overloads do not use the
662 compiler instance, but call appropriate methods on the
663 CodeDomProvider instance directly.
664 Updated some Compile overloads to acquire compiler information for
665 the 2.0 profile from system.codeDom.
667 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
669 * TemplateControlCompiler.cs (AddExpressionAssign):
670 Make sure expression does not contain prefix.
672 * AppSettingsExpressionBuilder.cs: Pass type of property to
673 GetAppSetting, not type of declaring type.
675 2007-12-13 Marek Habersack <mhabersack@novell.com>
677 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
678 AssemblyBuilder.cs, AppResourcesCompiler.cs,
679 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
680 optimization - use String.Concat instead of String.Format in some
683 2007-11-22 Marek Habersack <mhabersack@novell.com>
685 * PageCompiler.cs: use
686 pageParser.OutputCacheVaryByContentEncodings when initializing the
687 output cache in the 2.0 profile.
689 2007-11-06 Marek Habersack <mhabersack@novell.com>
691 * BuildManager.cs: properly retrieve the BuildProviderCollection
692 from configuration files.
694 2007-11-03 Marek Habersack <mhabersack@novell.com>
696 * TemplateControlCompiler.cs: do not call converters specified in
697 the member custom attributes if 'str' is null in
698 GetExpressionFromString.
700 2007-10-23 Marek Habersack <mhabersack@novell.com>
702 * AppResourcesAssemblyBuilder.cs: do not output preservation files
703 for satellite assemblies, just for the main assembly. Also, don't
704 add the satellite assemblies to the list of top-level assemblies.
706 2007-10-17 Marek Habersack <mhabersack@novell.com>
708 * PageCompiler.cs: added code to set the AsyncMode and
709 AsyncTimeout Page properties.
711 2007-10-15 Marek Habersack <mhabersack@novell.com>
713 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
714 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
715 HttpApplication.LoadType instead of Type.GetType.
717 2007-10-10 Marek Habersack <mhabersack@novell.com>
719 * TemplateControlCompiler.cs: be careful when using type
720 converters taken from attributes attached to class members. They
721 may come from the System.Design namespace, which is mostly not
724 2007-10-01 Marek Habersack <mhabersack@novell.com>
726 * AppResourcesCompiler.cs: resources are no longer compiled into a
727 single assembly. Instead, the common assembly construction code
728 has been moved to AppResourcesAssemblyBuilder to use satellite
731 * AppResourcesAssemblyBuilder.cs: new resource assembly
732 construction code which takes care of outputting satellite
735 2007-09-27 Marek Habersack <mhabersack@novell.com>
737 * TemplateControlCompiler.cs: support nullable types in
738 GenerateExpressionFromString.
740 2007-09-21 Marek Habersack <mhabersack@novell.com>
742 * TemplateControlCompiler.cs: if we're running on a platform with
743 the directory separator character that's different to the Unix
744 style '/' one, convert the input file path to the virtual path
745 style string, with path parts separated by '/'. Patch from Robert
746 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
748 2007-09-20 Marek Habersack <mhabersack@novell.com>
750 * TemplateControlCompiler.cs: if a member passed to
751 GetExpressionFromString has a TypeConverter attribute set, try to
752 use the named type converter to convert the string value into the
753 target type. Fixes bug #325489.
755 2007-09-14 Marek Habersack <mhabersack@novell.com>
757 * AppResourcesCompiler.cs: use _culture and _resourceManager
758 instead of culture and resourceManger in the generated code, to
759 avoid case problems for languages that are case-insensitive.
761 2007-09-10 Marek Habersack <mhabersack@novell.com>
763 * TemplateControlCompiler.cs: cast the expression to the field
764 type whenever appropriate in GetExpressionFromString.
765 When generating an object instance and one of the parameters is
766 System.Type, return a typeof expression.
768 2007-09-07 Marek Habersack <mhabersack@novell.com>
770 * TemplateControlCompiler.cs: another modification to the way
771 TemplateInstance.Single templates are treated. The search for
772 parent with this attribute set stops as soon as the first
773 TemplateBuilder is encountered, no matter what the value of its
774 TemplateInstance attribute is.
776 2007-09-06 Marek Habersack <mhabersack@novell.com>
778 * TemplateControlCompiler.cs: ID must be assigned as soon as
779 possible, before any other attributes of the control are
780 accessed. The control code may rely on ID being set.
781 Extend the process of checking if a control is located within a
782 template with the TemplateInstance.Single attribute set, to all
783 the parents of the current builder.
785 2007-09-05 Marek Habersack <mhabersack@novell.com>
787 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
788 batch must share the same component foundry. Under MS.NET if any
789 earlier .skin file registers a control prefix any later .skin
790 files may use it without registering.
792 2007-09-04 Marek Habersack <mhabersack@novell.com>
794 * TemplateControlCompiler.cs: make sure that base class doesn't
795 contain a field of the same name which is accessible from the
796 current control if we're within a singleton template.
797 When generating code for a property or field, use the name
798 retrieved from the metadata by reflection instead of the one
799 parsed from html. Fixes bug #82687. Patch from SunHo Kim
800 <zsunno@gmail.com>, thanks!
802 2007-08-29 Marek Habersack <mhabersack@novell.com>
804 * CachingCompiler.cs: consider contents of the
805 <compilation><assemblies> section when constructing a list of
806 assemblies during compilation.
808 * TemplateControlCompiler.cs: mark fields corresponding to the
809 controls as global references.
810 When control tree is constructed and the parent of the current
811 builder is a TemplateBuilder marked with the TemplateInstance
812 attribute set to Single, use the control's ID as the field
813 name. This makes it possible to refer to controls inside templates
814 by name instead of by using FindControl.
816 2007-08-23 Marek Habersack <mhabersack@novell.com>
818 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
819 and HttpApplication.LoadTypeFromBin.
821 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
824 2007-08-21 Marek Habersack <mhabersack@novell.com>
826 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
827 to look up assemblies in the binary path(s).
829 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
831 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
832 for scope case insensitive. Fixes bug #82479.
834 2007-08-14 Marek Habersack <mhabersack@novell.com>
836 * TemplateControlCompiler.cs: remove dead code.
838 * AssemblyBuilder.cs: include actual exception information when
839 reporting inability to load a compiled assembly.
841 * AppCodeCompiler.cs: remove unused variables.
843 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
844 component collections, instead of the old Queue which implemented
845 FIFO. Fixes situations when a control registered later for a
846 certain prefix would not be used in preference to a previously
847 registered one of the same name.
849 2007-08-06 Marek Habersack <mhabersack@novell.com>
851 * AspComponentFoundry.cs: properly add new foundry if the
852 corresponding entry in the foundries collection is a Queue. Patch
853 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
855 2007-07-31 Marek Habersack <mhabersack@novell.com>
857 * AspComponentFoundry.cs: do not overwrite previously registered
858 foundries when a new one is registered with the same prefix. Fixes
861 2007-07-18 Marek Habersack <mhabersack@novell.com>
863 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
864 does not look up the Item/Items properties to determine the
865 container type, instead it just returns the type reported by the
866 builder passed to this method. This change makes the generated
867 code match MS.NET. Fixes bug #82119.
869 2007-07-02 Marek Habersack <mhabersack@novell.com>
871 * TemplateControlCompiler.cs: don't use StartWith to see if a
872 variable's value is a bind expression, as it erroneously renames
873 all calls to methods starting with the string Bind. Use a regular
874 expression now instead. Fixes bug #81928.
876 2007-06-20 Marek Habersack <mhabersack@novell.com>
878 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
880 * CachingCompiler.cs: as above
881 * AspGenerator.cs: as above
883 2007-06-13 Marek Habersack <mhabersack@novell.com>
885 * TemplateControlCompiler.cs: make sure control has a writable
886 TemplateControl property prior to assigning values to it.
888 2007-06-09 Marek Habersack <mhabersack@novell.com>
890 * TemplateControlCompiler.cs: TemplateControl is assigned for
891 controls that are placed within ContentPlaceHolder and not for the
892 ContentPlaceHolder itself.
893 No longer add the overriden version of TemplateSourceDirectory to
894 the generated source, all the work is now done in
895 Control.TemplateSourceDirectory.
897 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
898 slash, for compatibility with MS.NET
900 2007-06-05 Marek Habersack <mhabersack@novell.com>
902 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
903 profile uses the TemplateControl property instead of Parent. This
904 allows to return the correct path.
906 2007-06-01 Marek Habersack <mhabersack@novell.com>
908 * TemplateControlCompiler.cs: be case-insensitive when looking for
911 2007-05-29 Marek Habersack <mhabersack@novell.com>
913 * ThemeDirectoryCompiler.cs: pass the skin file's
914 virtual path to the skin file parser as its first paramenter, and
917 2007-05-28 Marek Habersack <mhabersack@novell.com>
919 * ResourceExpressionBuilder.cs: properly cast
920 GetGlobalResourceObject calls to the type of the property being
923 2007-05-25 Marek Habersack <mhabersack@novell.com>
925 * TemplateControlCompiler.cs: Changed a few incorrect
926 ObjectCreationExpression to the correct DelegateCreationExpression.
929 2007-05-24 Marek Habersack <mhabersack@novell.com>
931 * PageCompiler.cs: added support for the PreviousPageType directive.
933 * Directive.cs: as above.
935 2007-05-22 Marek Habersack <mhabersack@novell.com>
937 * UserControlCompiler.cs: the Profile property should be present
938 also in user controls.
940 2007-05-15 Marek Habersack <mhabersack@novell.com>
942 * ResourceExpressionBuilder.cs: added a static method to generate
943 a GetLocalResourceObject call which properly handles types which
944 cannot be converted from strings.
946 * TemplateControlCompiler.cs: use code described above to generate
947 code for properties assigned from resources.
949 * WsdlBuildProvider.cs: make the code actually work - get the
950 physical path of VirtualPath instead of converting it to absolute
952 Do not generate source, add the code unit to assembly builder
955 * XsdBuildProvider.cs: added
957 2007-05-08 Marek Habersack <mhabersack@novell.com>
959 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
960 so use a delegate create expression - it may make difference for
961 languages other than C# (e.g. VisualBasic).
963 2007-05-07 Marek Habersack <mhabersack@novell.com>
965 * AspGenerator.cs: if the parser's language is implicit (i.e. set
966 from the default configuration), the first script with the
967 language attribute present sets the language of the parser.
969 2007-05-04 Marek Habersack <mhabersack@novell.com>
971 * TemplateControlCompiler.cs: do not query the parent for
972 TemplateSourceDirectory if we are generating code for a Master
975 2007-04-30 Marek Habersack <mhabersack@novell.com>
977 * ConnectionStringsExpressionBuilder.cs: support expressions with
978 suffixes .ProviderName and .ConnectionString (case-insensitie) and
979 generate a call to GetConnectionStringProviderName in the former
980 case. Fixes bug #81490
982 * AppCodeCompiler.cs: support for cases when there exists a custom
983 profile class but there is no App_Code directory or it's
984 empty. Fixes bug #81489.
986 * TemplateControlCompiler.cs: fix generation of code for
987 declarative attribute assignments of the form Font-Size="small"
988 (i.e. when a font size is assigned a symbolic, relative size
989 value). This fixes for example rendering of the 0th level of
992 2007-04-27 Marek Habersack <mhabersack@novell.com>
994 * AppCodeCompiler.cs: do not look at the number of errors, check
995 the compiler return code instead.
996 Resolve assembly names from the global web.config to their
997 locations before passing them to the compiler provider.
999 * AssemblyBuilder.cs: as above
1001 * AppResourcesCompiler.cs: as above
1003 * AspComponentFoundry.cs: formatting changes.
1004 AssemblyFoundry looks for the specified namespace+type in the
1005 top-level assemblies if necessary.
1007 2007-04-26 Marek Habersack <mhabersack@novell.com>
1009 * AssemblyBuilder.cs: handle compilation failures in a better
1012 * PageCompiler.cs: the Master property must be in the partial
1013 class if present. Fixes bug #81442
1015 2007-04-20 Marek Habersack <mhabersack@novell.com>
1017 * AppCodeCompiler.cs: fix App_Code build when the directory
1018 contains both known and unknown files.
1020 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1022 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1025 2007-04-19 Marek Habersack <mhabersack@novell.com>
1027 * AppCodeCompiler.cs: yet another method of detecting if we have a
1030 * BaseCompiler.cs: as above
1032 * AspComponentFoundry.cs: implemented delayed loading of control
1033 assemblies. Fixes bug #81058.
1035 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1037 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
1038 then use it instead of the default ASP namespace. Fixes part of bug
1041 2007-04-19 Marek Habersack <mhabersack@novell.com>
1043 * BaseCompiler.cs: don't look at the number of profile properties
1044 when deciding if we have a custom profile. It is possible to have
1045 a profile that just inherits from a base class and does not list
1046 any custom properties. Fixes bug #81396.
1048 * AppCodeCompiler.cs: as above
1050 2007-04-15 Marek Habersack <mhabersack@novell.com>
1052 * AppCodeCompiler.cs: properly convert physical file path to
1053 virtual path for build providers.
1054 Make sure there's actually anything to compile.
1056 2007-04-11 Marek Habersack <mhabersack@novell.com>
1058 * AppCodeCompiler.cs: move custom profile type check till after
1059 the App_Code compilation is done. That way we can have custom
1060 profile providers in there. Fixes bug #81307.
1062 2007-04-10 Marek Habersack <mhabersack@novell.com>
1064 * AppResourceFilesCollection.cs: watch App_LocalResources for
1067 2007-04-06 Marek Habersack <mhabersack@novell.com>
1069 * BaseCompiler.cs: display the source of the file in which the
1070 error actually happened if the file exists, or the unit
1073 2007-04-03 Marek Habersack <mhabersack@novell.com>
1075 * AppResourcesCompiler.cs: global resources are put in the
1076 "Resources." namespace while local ones are not. Fixes bug #81174
1077 which was reopened after r75261.
1079 2007-03-26 Marek Habersack <mhabersack@novell.com>
1081 * TemplateControlCompiler.cs: refactor assining properties from
1082 resources a bit to support pages and user controls. Fixes bug
1084 Process meta:resourcekey after all the field/attribute assignments
1085 are done. Fixes bug #80809.
1086 Clean the code up a bit.
1087 Use GetExpressionFromString to generate a correct expression for
1088 custom page/control attributes. Fixes bug #81132.
1090 2007-03-21 Marek Habersack <mhabersack@novell.com>
1092 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1093 AssignAppRelativeVirtualPath if the attribute was defined.
1095 * TemplateControlCompiler.cs: added support for setting custom
1096 attributes of a base class from the Page or Control directive
1099 2007-03-20 Marek Habersack <mhabersack@novell.com>
1101 * ResourceExpressionBuilder.cs: if the resource class key is null
1102 or empty, call GetLocalResourceObject, if not,
1103 GetGlobalResourceObject. Fixes bug #81174.
1105 2007-03-16 Marek Habersack <mhabersack@novell.com>
1107 * AppCodeCompiler.cs: produce message that makes more sense.
1109 2007-03-15 Marek Habersack <mhabersack@novell.com>
1111 * AppResourcesCompiler.cs: handle global resource keys with dots
1112 the way MS.NET does. All the dots are replaced with underscores
1113 when generating the stronly-typed property.
1115 2007-03-14 Marek Habersack <mhabersack@novell.com>
1117 * AppResourcesCompiler.cs: Fix a bug with global resources file
1118 grouping where no translated resources were processed due to base
1121 * TemplateControlCompiler.cs: hadle situations when there exist a
1122 control in the page with id matching the name of a field/property
1123 in the parent class. In this case we use 'protected new' to
1124 override the parent.
1126 2007-03-13 Marek Habersack <mhabersack@novell.com>
1128 * AspParser.cs: fix an off-by-one parsing bug with server-side
1131 * PageThemeCompiler.cs: let property builders through, stop the
1132 builders that have no control type. Fixes bug #81092
1134 * PageCompiler.cs: interfaces are to be implemented by the parent
1135 partial class, not the generated one.
1137 * AppResourceFilesCollection.cs: added separate constructor for
1138 local resources handling.
1140 * TemplateControlCompiler.cs: request the local resource object
1141 with proper virtual path.
1142 Put field declarations for controls in the partial class.
1143 Make sure builders are in valid state before trying to use them.
1145 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1146 property in the page/control constructor.
1147 Change the generated code model for pages/controls to comply with
1148 the way MS.NET does (partial class contains only two properties
1149 plus declarations of all the controls, the actual control/page
1150 class inherits from the partial class). Fixes bug #81001.
1152 * AppResourcesCompiler.cs: does not require specifying manually
1153 whether it's a global or local resource compiler anymore. New
1154 constructors take care of that.
1155 Changed to compile local resources on demand, when a control/page
1158 2007-03-12 Marek Habersack <mhabersack@novell.com>
1160 * AspParser.cs: revert r73587 as it breaks more than it fixes.
1162 * AspComponentFoundry.cs: try to register foundries from App_Code
1163 assemblies if tag prefix and its namespace are defined. Fixes bug
1166 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1167 of Assembly instances, not strings.
1169 * CachingCompiler.cs: make sure items in the CodeAssemblies and
1170 TopLevelAssemblies are really instances of the Assembly class
1171 before trying to use them.
1172 CodeAssemblies is a collection of Assembly instances, not
1175 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1176 assemblies, not paths to assemblies.
1178 2007-03-10 Marek Habersack <mhabersack@novell.com>
1180 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1181 CreateProfileProperty and InternalCreatePageProperty to
1182 BaseCompiler from PageCompiler.
1184 * GlobalAsaxCompiler.cs: generate the Profile property for the
1187 2007-03-09 Marek Habersack <mhabersack@novell.com>
1189 * AppCodeCompiler.cs: Add the GetProfile method to the
1190 ProfileCommon auto-generated class.
1192 * AppResourcesCompiler.cs: attempt to load the resource file
1193 earlier in the process, to gracefully handle empty files.
1195 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1196 .skin and .css files composing the theme.
1198 2007-03-05 Marek Habersack <mhabersack@novell.com>
1200 * PageThemeCompiler.cs: Use correct theme path for
1201 AppRelativeTemplateSourceDirectory.
1202 Do not process builders of type CodeRenderBuilder.
1203 Make sure builder.ControlType is not null before depending on it.
1205 * ThemeDirectoryCompiler.cs: theme parser should be passed the
1206 virtual directory of the theme.
1208 2007-03-03 Marek Habersack <mhabersack@novell.com>
1210 * PageCompiler.cs: Added support for setting the
1211 MaintainScrollPositionOnPostBack property if the corresponding
1212 page directive attribute is found.
1214 * Directive.cs: added the MaintainScrollPositionOnPostBack and
1215 LinePragmas directives.
1217 2007-03-02 Marek Habersack <grendello@gmail.com>
1219 * AppCodeCompiler.cs: Correctly process App_Code directories which
1220 have no compilable files in the top-level directory. Fixes bug
1222 Write preservation files for the App_Code assemblies.
1224 2007-03-01 Marek Habersack <grendello@gmail.com>
1226 * AspParser.cs: fix GetVerbatim for cases when the end is
1227 e.g. --> or --%> and the string matched is ---> or ---%>
1228 respectively. The new code always backs out to make sure the end is
1231 2007-02-27 Marek Habersack <grendello@gmail.com>
1233 * TemplateControlCompiler.cs: ParseExpression returns an object,
1234 don't assume any concrete type.
1235 Use the current culture when converting the expression to a
1238 * ConnectionStringsExpressionBuilder.cs: Implement support for
1239 expressions of the <%$ ConnectionStrings:StringName %> form
1241 2007-02-19 Marek Habersack <grendello@gmail.com>
1243 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1245 2007-02-16 Marek Habersack <grendello@gmail.com>
1247 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1248 is referenced twice by the compiler(s).
1250 * TemplateControlCompiler.cs: Fix the problem with cultures which
1251 have a comma as their decimal separator and font/whatever
1252 units. New code does not reparse the text representation of the
1253 unit on the runtime (e.g. 0.9em) but instead it constructs the
1254 property using the FontUnit/Unit constructors which take,
1255 respectively, Unit and double/unittype parameters. This avoids
1256 culture-specific parsing.
1257 Also fix converting from invariant strings in a culture-aware
1258 environment (e.g. in a page that uses Culture="auto") during the
1261 2007-02-12 Marek Habersack <grendello@gmail.com>
1263 * PreservationFile.cs: Support preservation (assembly mapping)
1264 files (the ones with .compiled extension in the ASP.NET temporary
1265 directory). This one implements a loader/saver class.
1267 * AppResourcesCompiler.cs: support for assembly name mapping.
1269 * AppCodeCompiler.cs: support for assembly name mapping.
1271 2007-02-08 Marek Habersack <grendello@gmail.com>
1273 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1275 * AspComponentFoundry.cs: Avoid duplicate control registration
1278 * ResourceExpressionBuilder.cs: Make sure all the global resources
1279 are looked up using the "Resources." prefix.
1281 * AppResourcesCompiler.cs: Make sure all the global resources are
1282 embedded with the "Resources." prefix.
1284 2007-02-02 Marek Habersack <grendello@gmail.com>
1286 * AspGenerator.cs: Move the cache insert code to a separate method, for
1287 use from other places.
1289 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1290 defer their compilation to the moment when they are actually requested.
1292 2007-01-22 Marek Habersack <grendello@gmail.com>
1294 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1296 2007-01-20 Miguel de Icaza <miguel@novell.com>
1298 * ClientBuildManager.cs: Remove unused variable (this could be a
1299 real problem, we never use the appPhysicalTargetDir)
1301 * AssemblyBuilder.cs: Remove unused field.
1303 * AppResourceFilesCollection.cs: Remove unused field.
1305 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1308 * AppResourcesCompiler.cs: Remove unused variable.
1310 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1313 * PageCompiler.cs: Put InternalCreatePageProperty inside the
1314 NET_2_0 block to eliminate warnings.
1316 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
1318 * BaseCompiler.cs: Fixed build on 1.0 profile.
1320 2007-01-20 Marek Habersack <grendello@gmail.com>
1322 * BaseCompiler.cs: If the control base type is in the root
1323 namespace, make sure global:: is prepended to it.
1325 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1326 mark it as such in the generated code as well.
1328 * AppCodeCompiler.cs: Include debug information if configured in
1329 web.config. Fixes bug #80096.
1331 2007-01-17 Marek Habersack <grendello@gmail.com>
1333 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1334 App_GlobalResources) when compiling App_Code sources.
1336 * CachingCompiler.cs: Reference toplevel assemblies when compiling
1339 * AppResourcesCompiler.cs: Close the streams properly.
1341 * AspGenerator.cs: Don't ignore thead/tbody anymore.
1343 2007-01-15 Marek Habersack <grendello@gmail.com>
1345 * WsdlBuildProvider.cs: New build provider for WSDL files.
1346 Compile only when System.Web.Services are present.
1348 * TemplateControlCompiler.cs: Forgotten in the previous commit -
1349 don't pass the current culture to GetLocalResourceObject, let the
1350 method figure it out on its own.
1352 2007-01-05 Marek Habersack <grendello@gmail.com>
1354 * AppResourceFilesCollection.cs: new class to keep and manage
1355 collection of resource files for the App_{Global,Local}Resources
1358 * TemplateControlCompiler.cs: rely on
1359 HttpContext.GetLocalResourceObject to select the correct culture.
1361 * AppResourceFileInfo.cs: new class for keeping resource files
1364 * AppResourcesCompiler.cs: new implementation.
1366 2006-12-20 Marek Habersack <grendello@gmail.com>
1368 * AssemblyBuilder.cs: add an internal version of the
1369 AddCodeCompileUnit method.
1371 * AppCodeCompiler.cs: implement support for ProfileCommon
1372 generation from properties named in the <profile> element in
1375 * PageCompiler.cs: create the Profile property in 2.0 code.
1377 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
1379 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1381 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1383 * ThemeDirectoryCompiler.cs: refactoring.
1385 2006-11-28 Marek Habersack <grendello@gmail.com>
1387 * BuildManager.cs: Add an internal property to signal whether or
1388 not we have any resources from App_{Global,Local}Resources
1390 * AspGenerator.cs: Register controls from
1391 system.web/pages/controls collection before parsing.
1393 * AppResourcesCompiler.cs: Let the build process know if we have
1394 compiled any resources from App_{Global,Local}Resources
1396 2006-11-27 Marek Habersack <grendello@gmail.com>
1398 * CachingCompiler.cs: Automatically reference App_Code
1401 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1404 2006-11-25 Marek Habersack <grendello@gmail.com>
1406 * AppResourcesCompiler.cs: small optimizations.
1408 * AppResourceFilesCompiler.cs: small optimizations.
1410 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1412 * WebServiceCompiler.cs: add the type to the cache after getting it
1413 from the compiled assembly.
1415 2006-11-20 Marek Habersack <grendello@gmail.com>
1417 * AppCodeCompiler.cs: Reference assemblies listed in
1418 system.web/compilation/assemblies.
1419 Don't create empty assemblies.
1421 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1423 * TemplateControlCompiler.cs: fixed:
1424 When <%# Bind(...) %>-expression is used more then once for same control
1425 The variable associated with this control is declared only once.
1427 2006-11-18 Marek Habersack <grendello@gmail.com>
1429 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
1430 files with names like File.resources or File.resx are found in the
1431 resource directories.
1433 2006-11-16 Marek Habersack <grendello@gmail.com>
1435 * ForceCopyBuildProvider.cs: Added the build provider for
1438 * MasterPageBuildProvider.cs: Added the build provider for Master
1441 * IgnoreFileBuildProvider.cs: Make the class sealed.
1443 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
1444 correctly uses the BuildProviderCollection to retrieve the
1445 appropriate builder and maps the physical input file path into
1446 application relative path when setting the virtual path of the
1449 2006-11-13 Marek Habersack <grendello@gmail.com>
1451 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
1452 constructor with just the CodeDomProvider argument. CreateCodeFile
1453 now uses the code provider's file extension. Added internal method
1454 to add pre-generated source code files. Added a BuildAssembly
1455 overload that takes no virtual path as the
1456 parameter. BuildAssembly now uses an array of source files instead
1457 of compile units and also handles embedded resources and
1458 referenced assemblies. BuildAssembly deletes the temporary files
1459 if MONO_ASPNET_NODELET isn't set in the environment.
1461 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
1462 creation. Use the build providers collection to build unknown
1463 files in App_Code. Use AssemblyBuilder to compile the assembly.
1465 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1466 temporary file creation.
1468 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1471 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1474 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1477 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1480 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1483 2006-11-08 Marek Habersack <grendello@gmail.com>
1485 * BuildProvider.cs: Implemented the GetCustomString
1486 method. Removed the necessity to retrieve the CompilationSection
1487 twice when GetDefaultCompilerType is called.
1489 * AppResourcesCompiler.cs: Added resource compiler results
1492 * AppCodeCompiler.cs: The App_Code compiler classes
1494 * BuildManager.cs: Implement the CodeAssemblies property.
1495 Added an internal TopLevelTypes property to be used in the custom
1496 GetType methods. Implemented the GetCompiledCustomString method.
1497 Implemented the GetType method overloads. Implemented the
1498 GetVirtualPathDependencies method.
1500 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1502 2006-10-18 Marek Habersack <grendello@gmail.com>
1504 * TemplateControlCompiler.cs: add support for resource
1505 expressions in tag attributes.
1507 * ResourceExpressionBuilder.cs: add support for resource
1508 expressions in tag attributes.
1510 * BaseCompiler.cs: add global/local resource assemblies to
1511 compilation references, if present.
1513 * AppResourcesCompiler.cs: global/local resources compiler.
1515 * AppResourceFilesCompiler.cs: compiler of resource files.
1517 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1519 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1520 At run time, the Bind method calls the Eval method, if there is DataItem
1522 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
1523 method don't raise exception and works properly to extract data from
1524 bounded controls on postback.
1526 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1528 * AspGenerator.cs: if we are tracking non-server tags for
1529 well-formedness, handle tags that do not need to be closed (br, img,...)
1532 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1534 * PageCompiler.cs: support the EnableEventValidation attribute.
1536 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1538 * AspGenerator.cs: after parsing an include file, don't error out if we
1539 still have opened tags unless this was the last file to parse. Fixes
1542 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
1544 * ParseException.cs: Ensure the source file stream is closed.
1546 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1548 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1549 * ConnectionStringsExpressionBuilder.cs: Use name reference
1551 * ResourceExpressionBuilder.cs: Use assembly name constants.
1553 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1555 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1557 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1559 * ClientBuildManager.cs: handle domain shutdown and unload.
1560 Implemented some properties. Commented.
1562 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
1564 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
1566 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1568 * added ThemeDirectoryCompiler.jvm.cs
1570 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1572 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
1573 the property Items does not exist. Patch by Marek Habersack that fixes
1576 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1578 * TemplateControlCompiler.cs: support assigning nullable types.
1579 Patch by Marek Habersack that fixes bug #78970.
1581 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1583 * TemplateControlCompiler.cs: make password work again.
1585 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
1587 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1588 MS.NET handles nested quotes differently for server controls and
1589 for "normal" controls. Add a property "AlternatingQuotes" to the
1590 tokenizer and let the parser decide whether it is well-formed or not.
1592 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
1594 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
1595 UrlPropertyAttribute.
1597 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
1599 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
1600 generating code for assignment statement and DataBind event.
1602 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
1604 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1605 Don't allow an attribute value to contain the same quote characters
1606 as the ones used for delimiting the value itself. Add a token
1607 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
1609 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
1611 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
1613 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
1615 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
1617 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
1619 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
1620 array of style sheets from the parser
1621 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
1622 put them in LinkedStyleSheets of PageThemeParser
1624 2006-04-20 Chris Toshok <toshok@ximian.com>
1626 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
1627 names in the case where you use "NS.ClassName" in the Inherits
1628 attribute. Fixes bug #78135.
1630 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1632 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
1633 already acquired the lock even when we might have not created the 'key'
1634 to the compilation ticket.
1636 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
1638 * ThemeDirectoryCompiler.cs: add to the directory parser all the
1639 assemblies found by PageThemeFileParsers
1641 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
1643 * TemplateControlCompiler.cs: Properly read all content of
1646 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1648 * TemplateControlCompiler.cs : fix for partial parsers
1650 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1652 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
1655 2006-04-08 Miguel de Icaza <miguel@novell.com>
1657 * TemplateControlCompiler.cs: An attempt to fix the regression
1658 introduced in r58505 (a bug fix for 77762). This was reported in
1659 the mailing list with a batch of new 2.0 failures.
1661 We really need a test suite in NUnit to check on ASP.NET aspx
1664 2006-03-27 Robert Jordan <robertj@gmx.net>
1666 * CachingCompiler.cs: change the compilation locking scheme
1667 from "one mcs per process" to "one mcs per file".
1669 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1671 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
1672 StringPropertyBuilder.
1674 2006-03-24 Chris Toshok <toshok@ximian.com>
1676 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
1677 if system.web/compilation doesn't list a compiler for our
1680 2006-03-13 Chris Toshok <toshok@ximian.com>
1682 * TemplateControlCompiler.cs (InitMethod): when generating the
1683 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
1684 argument to it. Only do that if the class we're compiling is
1685 actually a subclass of Page. If it's not, pass this.Page.
1687 2006-03-07 Chris Toshok <toshok@ximian.com>
1689 * AspGenerator.cs: refactor the parsing code so that we can
1690 initiate parsing from outside this class.
1692 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
1693 method, add our StyleSheetTheme assignment here.
1694 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
1697 * TemplateControlCompiler.cs (EnsureID): make protected.
1698 (CreateAssignStatementsFromAttributes): same
1699 (AddChildCall): same.
1700 (CreateControlTree): same.
1701 (CreateFrameworkInitializeMethod): change
1702 "AddStatementsToFrameworkInitialize" to
1703 "AppendStatementsToFrameworkInitialize", and add call to
1704 "PrependStatementsToFrameworkInitialize" before the generation of
1705 "base.FrameworkInitialize()."
1707 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
1709 2006-03-07 Chris Toshok <toshok@ximian.com>
1711 * ThemeDirectoryCompiler.cs: new file.
1713 * PageThemeCompiler.cs: new file.
1715 2006-03-07 Chris Toshok <toshok@ximian.com>
1717 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
1718 (Init): move the CreateMethods call here.
1720 2006-03-02 Chris Toshok <toshok@ximian.com>
1722 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
1723 SkinID just after the creation of our object, and right after that
1724 call "_ctrl.ApplyStyleSheetSkin (page)".
1725 (CreateAssignStatementsFromAttributes): split out the majority of
1726 this code to CreateAssignStatementFromAttribute, and change this
1727 method to simply a loop over the attribute keys. In the 2.0 case,
1728 skip the SkinID property, since that's handled explicitly in
1731 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
1732 for Theme and StyleSheetTheme.
1734 2006-02-23 Chris Toshok <toshok@ximian.com>
1736 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
1737 change from ContentControlBuilderInternal to
1738 ContentBuilderInternal.
1739 (AddCodeRender): same.
1741 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1743 * AssemblyBuilder.cs:
1744 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
1745 GetGeneratedType() on the BuildProvider instead of loading the assembly
1746 and trying a wild guess at the type name.
1748 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1750 * GlobalAsaxCompiler.cs:
1752 * TemplateControlCompiler.cs: CreateMethods is now internal.
1754 * WebServiceBuildProvider.cs:
1755 * PageBuildProvider.cs:
1756 * UserControlBuildProvider.cs:
1757 * WebHandlerBuildProvider.cs: new build providers.
1759 * BuildProvider.cs: add assemblies.
1761 * BaseCompiler.cs: expose the provider and the compile unit through
1764 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1766 * CompilerType.cs: implemented.
1768 * AssemblyBuilder.cs: implemented most of it.
1770 * WebServiceCompiler.cs:
1771 * CachingCompiler.cs: update 2.0 compiler instance creation code.
1773 * ClientBuildManager.cs: implemented some of its methods. Not yet
1776 * BuildManager.cs: the more interesting methods are implemented now.
1778 * BaseCompiler.cs: delete the temporary files in case of error.
1780 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
1782 2006-02-07 Chris Toshok <toshok@ximian.com>
1784 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
1785 calls to AddParsedSubObject to a special statement collection --
1786 builder.flushOutputStatements -- not to builder.method.Statements.
1787 (InitMethod): initially, set flushOutputStatements to
1788 method.Statements. If we're dealing with a ContentPlaceHolder,
1789 set flushOutputStatements to be the else block of a conditional we
1790 create. This causes the compiled control to fall back to the
1791 ContentPlaceHolder's child controls in case there's no
1792 corresponding Content template.
1793 (AddChildCall): use methodStatements instead of method.Statements.
1794 (CreateControlTree): same.
1796 * PageCompiler.cs (CreatePropertyAssign): factor out the
1797 string,string implementation and add one that also takes a
1798 CodeExpression; make the string,string implementation call the
1799 three arg one with thisRef.
1800 (AddStatementsToInitMethod): make use of the 3-arg form of
1801 CreatePropertyAssign to reduce code. Also, add support for
1802 setting the page's Title from the parser's Title.
1804 2006-02-07 Chris Toshok <toshok@ximian.com>
1806 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
1807 assign __ctrl.MasterPageFile to our master page, if we have one.
1809 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
1810 assignment from here.
1811 (AddStatementsToInitMethod): and move it here.
1813 * TemplateControlCompiler.cs (InitMethod): in the case where
1814 builder is a RootBuilder (we're building the __BuildControlTree
1815 method), call a virtual method so that subclasses can add their
1816 own statements to the method (used by both Page and MasterPage);
1817 Also, in the RootBuilder case, the argument should be the
1818 parser.ClassName type (the class we're building); lastly, expand
1819 the ContentPlaceHolder logic to include all the
1820 ContentTemplates/InstantiateIn magic.
1821 (AddStatementsToInitMethod): empty virtual method.
1822 (AddContentTemplateInvocation): ContentControlBuilder ->
1823 ContentControlBuilderInternal.
1824 (CreateControlTree): same.
1825 (CallBaseFrameworkInitialize): new function, create call to
1826 base.FrameworkInitialize.
1827 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
1829 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1831 * IgnoreFileBuildProvider.cs: it's not public.
1832 * BuildProvider.cs: mostly implemented.
1834 2006-02-01 Chris Toshok <toshok@ximian.com>
1836 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
1837 GetSection instead of GetWebApplicationSection.
1839 * CachingCompiler.cs: same.
1841 * AspGenerator.cs: same.
1843 * BaseCompiler.cs: same.
1845 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1847 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
1849 2006-01-22 Chris Toshok <toshok@ximian.com>
1851 * IgnoreFileBuildProvider.cs: build provider which does nothing.
1853 2006-01-22 Chris Toshok <toshok@ximian.com>
1855 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
1856 Hashtable ctor to silence a couple of warning.
1857 (CompoundFoundry.ctor): same
1859 * Directive.cs (InitHash): use a 2.0 friendly form of the
1860 Hashtable ctor to silence a couple of warning.
1862 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
1863 Hashtable ctor to silence a warning.
1864 (GetDictionary): same.
1866 2006-01-22 Chris Toshok <toshok@ximian.com>
1868 * AppSettingsExpressionBuilder.cs: implement this, patterning it
1869 after an example on msdn. Also, enable the ExpressionEditor
1870 attribute, but use the string rather than the Type overload so we
1871 won't have yet another circular dep.
1873 * ConnectionStringsExpressionBuilder.cs: partial implementation.
1874 Same deal with the ExpressionEditor attribute.
1876 * ResourceExpressionBuilder.cs: same deal with the
1877 ExpressionEditor attribute.
1879 2006-01-20 Chris Toshok <toshok@ximian.com>
1881 * ResourceExpressionBuilder.cs (ParseExpression): implement.
1883 * ResourceExpressionFields.cs: implement.
1885 2006-01-20 Chris Toshok <toshok@ximian.com>
1887 * ClientBuildManagerParameter.cs: implement.
1889 * ClientBuildManagerCallback.cs: this class contains an empty
1890 default implementation.
1892 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1894 * AspGenerator.cs: add support for 'src' in <script runat="server">.
1897 2006-01-04 Chris Toshok <toshok@ximian.com>
1899 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
1902 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
1904 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1906 * AspGenerator.cs: fix yesterday's fix.
1908 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1910 * AspGenerator.cs: only do special processing for <script> if it has
1911 the runat="server" attribute. Fixes bug #76918.
1913 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1915 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
1918 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1920 * TemplateControlCompiler.cs: handle data bound attributes for html
1921 controls. Fixes bug #76785.
1923 2005-11-28 Chris Toshok <toshok@ximian.com>
1925 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
1927 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
1929 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1931 * WebServiceCompiler.cs: fixed caching for web handlers.
1933 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1935 * AspParser.cs: don't change case for verbatim IDs.
1938 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1940 * AspParser.cs: when processing verbatim input, throw if we reach EOF
1941 before the expected end of the data.
1943 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1945 * CachingCompiler.cs:
1946 * WebServiceCompiler.cs: when caching a type loaded from an assembly
1947 that we didn't compile, make it depend on the file itself, not on a
1948 non-existing cache key. This problem affected performance of web
1949 services and .ashx, making unnecessary extra calls to LoadFrom every
1950 time the cache was cleared.
1952 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1954 * BaseCompiler.cs: set the domain's DynamicBase property instead of
1955 guessing it in BaseCompiler.
1957 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1959 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
1960 75146 for pages/controls.
1962 2005-08-09 Miguel de Icaza <miguel@novell.com>
1964 * WebServiceCompiler.cs: Use the new DynamicDir method.
1966 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
1967 since this value is null most of the time, compute the real value.
1969 Added Bonus: if the directory has some kind of permission problem,
1970 try a different directory name.
1972 2005-07-13 Miguel de Icaza <miguel@novell.com>
1974 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
1975 BaseParser.Context for the context.
1977 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1981 * TemplateControlCompiler.cs: use invariant culture versions of starts/
1984 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1986 * TemplateControlCompiler.cs: comparison between member name and the
1987 first part of the id provided by the user should also be
1988 case-insensitive. Fixes bug #75379.
1990 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1992 * CachingCompiler.cs: use cache.InsertPrivate.
1993 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
1996 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1998 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
1999 as all the others, when compiling an assembly from a Src file. Fixes
2002 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2004 * TemplateControlCompiler.cs: if the property is not found, don't forget
2005 about trying the field.
2007 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
2009 * Directive.cs: Register the MasterType directive.
2010 * PageCompiler.cs: If a MasterType is specified, add a type specific
2011 Master property. All this fixes bug #75192.
2013 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2015 * TemplateControlCompiler.cs: when mapping an attribute name to a field
2016 or property name, there's no need to try with every property and field,
2017 but just the one found when searching by name (no case). There was one
2018 call to ProcessPropertiesAndFields per property or field until found,
2019 now only one if the property/field is found, none otherwise.
2021 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2023 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2024 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2027 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2029 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
2030 the assembly file there and be able to load it. Thanks to Rogerio and
2033 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2035 * AspParser.cs: InvariantCulture love.
2037 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2039 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2040 as the one in Master is protected. Fixes bug #75157.
2042 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2044 * AspComponentFoundry.cs: tagnames have precedence over types in
2045 assemblies when they use the same prefix. Fixes bug #71855.
2047 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
2049 * WebServiceCompiler.cs: Create the temp directory before
2050 creating the web service source code file.
2052 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2054 * AspGenerator.cs: when checking languages, try to match other aliases
2055 too (ie, 'cs' == 'c#').
2057 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2059 * BaseCompiler.cs: check that DynamicBase directory exists before
2060 creating the TempFileCollection.
2062 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2064 * AspGenerator.cs: use a stack for non-server tags even before getting
2065 to a form. Fixes bug #70274.
2067 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2069 * AspParser.cs: don't error out on ill formed tags if it's not a server
2070 tag (ie, allow something like '<table align="left cellpadding="0">' to
2071 work, as MS does. Fixes bug #67909.
2073 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
2074 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
2075 @Page/@Control directives to CodeDOM (VB.NET support)
2077 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
2079 * AspParser.cs: Fixed parsing of data binding tags in server
2080 tag attributes. Allow <%...%> blocks not assigned to
2081 attributes in client tags.
2082 * TagAttributes.cs: Make sure that data binding blocks in server
2083 tags are always assigned to attributes.
2085 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
2087 * TemplateControlCompiler.cs: Implemented support for two-way
2090 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
2092 * TemplateControlCompiler.cs: Use the new BindingContainerType
2093 property to find the type of the binding container.
2095 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
2097 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
2098 for primitive types. Parse an empty color string as Color.Empty.
2099 Get the converter for a property using its PropertyDescriptor.
2101 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
2103 * TemplateControlCompiler.cs: Don't autogenerate IDs for
2104 controls inside Content template.
2106 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2108 * TemplateControlCompiler.cs: make typedesc.aspx work again.
2110 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2112 * ExpressionBuilderContext.cs:
2113 * ExpressionBuilder.cs: implemented.
2115 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2117 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2119 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
2121 * TemplateControlCompiler.cs: When generating a property value,
2122 check for TypeConverterAttribute in the PropertyInfo, not only in the
2124 Implemented code generation using InstanceDescriptor, when the type
2125 converter supports conversion to that type.
2127 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
2129 * Directive.cs: Added MASTER directive.
2130 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2131 * PageCompiler.cs: Set the master file name when generating the page.
2132 * TemplateControlCompiler.cs: When generating the method for a
2133 content holder, register the content holder in the base MasterPage.
2134 Added method for registering a Content control for a MasterPage.
2135 Generate code for Content controls.
2137 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
2139 * TemplateControlCompiler.cs: Get the container type from the
2140 template (if it was defined using TemplateContainerAttribute.
2142 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2144 * AspGenerator.cs: correctly process script tags that self-closing.
2147 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149 * CachingCompiler.cs: when compiling a single .cs file, add the file
2150 itself to dependencies. Fixes bug #68788.
2152 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154 * ControlBuilder.cs: don't close server tags when we get to a closing
2155 tag that is not applied to a server control. Fixes bug #60323.
2157 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159 * WebServiceCompiler.cs: fix buglet in my last commit.
2161 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2164 * CachingCompiler.cs:
2165 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2166 for ashx/asmx. Otherwise we need to open the file and check for the
2167 class name in there. Thanks to Ben for pointing this out.
2169 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2172 * AspTokenizer.cs: prevent quotes from being swallowed when we're
2173 inside a server tag and they are the next non-whitespace character.
2176 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2178 * CachingCompiler.cs: don't try to watch for changes in system
2179 assemblies. Fixes bug #64871.
2181 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2183 * AspGenerator.cs: handle builders that need to process inner text
2186 * Location.cs: added setters for the properties.
2188 2004-08-02 Duncan Mak <duncan@ximian.com>
2190 * BuildProviderResultFlags.cs:
2191 * IImplicitResourceProvider.cs:
2192 * ImplicitResourceKey.cs:
2193 * IResourceReader.cs: Added.
2195 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2197 * AspGenerator.cs: the path for file was treated as virtual, but it's
2198 physical. Fixes bug #61524.
2200 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2202 * AspParser.cs: fixed case-sensitivity issues with #include and its
2203 attributes. Closes #61429.
2205 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2208 * WebServiceCompiler.cs: really create the dlls under DynamicBase
2210 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2212 * TemplateControlCompiler.cs: for system colors, use SystemColors class
2213 instead of Color. Fixes bug #60249.
2215 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 * BaseCompiler.cs: try getting the Type from the cache before doing the
2218 real work. Remove temporary files right after successful compilation.
2220 * CachingCompiler.cs: added GetTypeFromCache.
2222 * UserControlCompiler.cs: nothing interesting.
2224 * WebServiceCompiler.cs: try getting the Type from the cache before
2225 doing anything else. Remove temp files on sucessful compilation.
2227 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2230 * CachingCompiler.cs: use a different prefix when caching compiler
2233 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2235 * BaseCompiler.cs: dynamicBase is now protected. Check
2236 MONO_ASPNET_NODELETE here.
2238 * TemplateControlCompiler.cs: if the type is not known but has a
2239 TypeConverter, invoke ConvertFromString in the generated code.
2241 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2242 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2244 * CachingCompiler.cs: updated compilation of web services and simple
2247 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2249 * CSCompiler.cs: removed.
2251 * CachingCompiler.cs: language independent compilation for single files.
2253 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2256 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2257 * CachingCompiler.cs: use HttpRuntime.Cache.
2259 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2261 * PageCompiler.cs: fixed Trace and add support for Buffer.
2263 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2265 * PageCompiler.cs: override CreateConstructor to add assignment for
2268 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2270 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2271 of CodeObjectCreateExpression for the render method delegate. Thanks
2274 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276 * BaseCompiler.cs: use DynamicBase for the output assemblies.
2278 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2280 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2282 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2284 * AspParser.cs: indent a few lines.
2285 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2286 attribute value. This way we can simulate reading 2 characters ahead
2287 (one in ungetc and the other in Peek) and work with values like
2288 text/javascript. Fixes bug #57302.
2290 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2292 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2294 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
2296 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2298 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2300 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2302 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2304 * AspGenerator.cs: error out when <object> server tag is not closed.
2305 Ignore any content inside it.
2307 2004-02-10 Jackson Harper <jackson@ximian.com>
2309 * AspTokenizer.cs: Collect discarded characters that might be used
2310 in client side scripts. Patch by Liyu Liu.
2311 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2313 2004-02-10 Jackson Harper <jackson@ximian.com>
2315 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2318 2004-01-30 Jackson Harper <jackson@ximian.com>
2320 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2321 the build method takes strings not ints.
2323 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325 * AspGenerator.cs: handle more possible errors in global.asax file.
2327 * BaseCompiler.cs: added utility methods for creating <object> related
2328 properties and fields.
2330 * GlobalAsaxCompiler.cs: keep around applications and session scope
2331 objects builders. Also a list of imports and assemblies added in
2334 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2336 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2338 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2339 pages more than once. Thanks to Eric Lindvall for pointing this out.
2341 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2343 * TemplateControlCompiler.cs: allow handling subproperties for other
2344 types than Style and Font. Fixes bug #53217.
2346 2004-01-16 Jackson Harper <jackson@ximian.com>
2348 * TagAttribute.cs: attributes can be stored as encoded html so we
2351 2004-01-14 Jackson Harper <jackson@ximian.com>
2353 * TemplateControlCompiler.cs: Is a user control is cached and
2354 shared use the controls type hashcode for the GUID so it will be
2355 the same across instances.
2357 2004-01-13 Jackson Harper <jackson@ximian.com>
2359 * TemplateControlCompiler.cs: If an item has the partial caching
2360 attribute build a PartialCachingControl in the parents __Build method.
2361 * BaseCompiler.cs: Add a method for adding class attributes to the
2363 * UserControlCompiler.cs: If caching is enabled on a user control
2364 add the PartialCachingAttribute to it.
2366 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2368 * PageCompiler.cs: invoke Request.ValidateInput if required.
2370 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2372 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2373 #52521. Patch by liyul@hotmail.com.
2375 2003-12-25 Jackson Harper <jackson@ximian.com>
2377 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2380 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2382 * PageCompiler.cs: assign the ErrorPage property if provided.
2384 2003-12-15 Jackson Harper <jackson@ximian.com>
2386 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2387 method if they are set.
2389 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
2392 fail when runat="server" is applied to <tbody> with a parse error
2393 instead of waiting for a compilation error. Fixes bug #52157.
2395 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2397 * AspGenerator.cs: basic checking of ID validity. Throw a
2398 ParseException when mixing languages.
2400 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2402 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2403 FrameworInitialize() if provided in @Page.
2407 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2409 * TemplateControlCompiler.cs: support for expressions of
2410 System.Drawing.Size type. Allow getting Color from comma separated
2411 numbers, which is not allowed by ColorConverter.
2413 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2415 2003-11-13 Jackson Harper <jackson@ximian.com>
2417 * PageCompiler.cs: Call InitOutputCache when the OutputCache
2420 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2422 * AspGenerator.cs: use fileEncoding from configuration files.
2424 * PageCompiler.cs: add assign statements for ContentType,
2425 ResponseEncoding and CodePage if supplied.
2427 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2429 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2430 a return statement for user controls with 'void' return type.
2432 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2434 * AspParser.cs: fixed bug #49627.
2436 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2438 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2440 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442 * Directive.cs: new attribute for @Page directive in 1.1.
2444 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2447 * TagAttributes.cs: allow duplicated runat=server attributes and display
2448 error page when duplicated attributes and runat is specified.
2450 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2452 * AspTokenizer.cs: moved token numbers above unicode.
2454 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2456 * AspGenerator.cs: don't process code render tags inside scripts. Check
2457 the language of the script and treat javascript as verbatim input.
2460 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2462 * TemplateControlCompiler.cs: fixed bug #48212.
2464 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2466 * WebServiceCompiler.cs: remove the temporary files here too.
2468 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470 * AspGenerator.cs: fixed bug #46429.
2472 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2474 * Directive.cs: support @WebHandler.
2476 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2478 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2480 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2482 * BaseCompiler.cs: first look for cached items, then generate the tree.
2483 This should speed things up.
2485 * CachingCompiler.cs: when compiling web services, use the full path of
2486 the .asmx file as key when caching.
2488 * WebServiceCompiler.cs: first look for cached items, then generate
2491 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2493 * AspParser.cs: more useful error information,
2496 * CachingCompiler.cs: honor the debug="true" option.
2498 * TemplateControlCompiler.cs: small fixes for templates.
2500 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2502 * BaseCompiler.cs: made Compiler property virtual.
2504 * CachingCompiler.cs: added support for compiling web services.
2506 * WebServiceCompiler.cs: implemented.
2508 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2510 * CachingCompiler.cs: fixed bug #43477.
2512 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2515 * AspTokenizer.cs: fixed bugs #43206 and #43371.
2517 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2519 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2520 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2523 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2525 * CompilationException.cs: don't add duplicated lines in the case that
2526 mcs reports several errors for the same one.
2528 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2530 * AspGenerator.cs: fully support including files, ie., treat them just
2531 as C treats #includes.
2533 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2537 * TagType.cs: Added support for server side includes.
2539 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2541 * CSCompiler.cs: actually add the list of referenced assemblies to the
2542 compiler options. Throw a CompilationException if there's an error.
2544 * CachingCompiler.cs: added a method to compile directly from a source
2547 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2549 * AspGenerator.cs: copy the location before setting the value for the
2552 * BaseCompiler.cs: changed parameters for CompilationException.
2554 * CompilationException.cs: it takes now line numbers and error
2555 descriptions from the CompilerErrorCollection.
2557 * Location.cs: used when a copy of an ILocation is needed.
2559 * ParseException.cs: implemented new methods to provide line numbers
2562 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
2564 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2566 * AspGenerator.cs: also support data bind syntax inside tags not
2567 processed as controls. Added debugging method.
2569 * TemplateControlCompiler.cs: reset the number of data binding handlers
2570 in the proper place. Small fix when getting the container type.
2572 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2574 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
2577 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2579 * AspGenerator.cs: handle code render syntax in tag attributes.
2581 * AspParser.cs: the constructor now takes a TextReader.
2583 * TemplateControlCompiler.cs: removed comment.
2585 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2587 * TemplateControlCompiler.cs: added support for data bound properties.
2589 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2591 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
2592 instead of their names.
2594 * AspElements.cs: removed. No longer needed.
2596 * AspGenerator.cs: this file is now in charge of interfacing between
2597 the parser and the compiler. It manages the creation of the
2598 ControlBuilder tree and the compilation of the CodeDOM tree.
2600 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
2601 of different Types, tags are just and id and a set of attributes.
2602 Implement ILocation interface.
2604 * AspTokenizer.cs: added a few methods to help the parser implementing
2607 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
2608 common to appliaction, page and user control, including the actual
2609 compilation and error handling.
2611 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
2613 * CachingCompiler.cs: simplified to use the new interfaces.
2615 * CompilationException.cs: it's now using CompilationResult to report
2618 * CompilationResult.cs: Removed file.
2620 * Directive.cs: to check for the validity of a directive.
2622 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
2625 * ILocation.cs: interface used to now the exact place where a parse
2628 * PageCompiler.cs: generates a couple of methods that are only used in
2631 * ParseException.cs: use the ILocation interface.
2633 * TagAttributes.cs: handles the attributes of the tags parsed.
2635 * TagType.cs: an enum for the different kinds of tags.
2637 * TemplateControlCompiler.cs: this is the one that does most of the
2638 conversion from teh ControlBuilder tree into a CodeDOM tree.
2640 * UserControlCompiler.cs: simplified as most of the work is done in
2643 * WebServiceCompiler.cs: dummy.
2645 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2647 * AspComponentFoundry.cs: added GetComponentType method.
2649 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2651 * AspTokenizer.cs: allow quotes inside server tags that are part of
2654 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
2657 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2659 * AspGenerator.cs: generate correct appbase path. It was working with
2660 mcs but not with csc.
2662 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
2664 * CachingCompiler.cs: quote source file.
2666 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668 * AspGenerator.cs: now the Inherits attribute works as expected for
2671 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2673 * CompilationException.cs:
2674 * ParseException.cs: display the correct line number in error messages.
2676 * AspElements.cs: added TargetSchema attribute for control. It's
2679 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2681 * BaseCompiler.cs: fixed the hack to work under windows.
2682 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
2684 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2686 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
2688 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
2690 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
2691 app's private bin path
2693 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2697 * CachingCompiler.cs:
2698 * CompilationResult.cs:
2699 * GlobalAsaxCompiler.cs:
2701 * UserControlCompiler.cs: recompile the page if dependencies change.
2703 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2705 * AspGenerator.cs: corrected typo and wrong fix.
2707 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2709 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
2710 when used explicitly.
2712 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2714 * AspElements.cs: get the property Type for controls that use
2715 ParseChildren with a property name.
2717 * AspGenerator.cs: generate correct signature for the method that
2718 adds controls to the default property in ParseChildren.
2720 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2722 * AspGenerator.cs: rethrow exceptions that may come from parsing or
2723 compilation if a user control.
2725 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2727 * AspGenerator.cs: throw ParseException on parse
2730 * AspParser.cs: added Line and Column props.
2732 * CompilationException.cs: derives now from HtmlizedException.
2734 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
2736 * GlobalAsaxCompiler.cs:
2738 * UserControlCompiler.cs: pass the file name in the CompilationResult.
2740 * ParseException.cs: new exception.
2743 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2745 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
2748 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2750 * AspParser.cs: the parser fires events when it parses an element.
2752 * GlobalAsaxCompiler.cs:
2754 * UserControlCompiler.cs:
2755 * AspElements.cs: modified to use the new parser interface.
2757 * AspGenerator.cs: modified to use the new parser. Merge multiple text
2758 strings into one single LiteralControl.
2760 * AspTokenizer.cs: added Line and Column properties.
2762 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2764 * AspParser.cs: fixed bug #36929.
2766 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
2770 * CachingCompiler.cs: changes to work around spaces and
2771 directory-separators in the local filesystem.
2773 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2775 * AspGenerator.cs: make the generated file compile with csc after last
2778 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2780 * AspGenerator.cs: removed unused variable. Added support for
2781 properties/fields of type string [].
2783 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2785 * AspGenerator.cs: modified loading of the parent type now that
2786 Type.GetType is fixed.
2788 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2790 * AspGenerator.cs: cast to Control if the container does not implement
2793 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2795 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
2797 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2799 * AspElements.cs: attributes without value lacked a space afterwards.
2801 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2803 * AspGenerator.cs: functions for columns don't return anything. Fixed
2806 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2808 * AspGenerator.cs: add data bound controls to code render function.
2810 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2812 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
2813 controls. You can register 1 assembly plus any number of user controls
2814 under the same prefix.
2816 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
2817 Hack to allow @Register access to assemblies in other places than bin
2820 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2822 * AspElements.cs: added 'codebehind' attribute for page, control and
2823 application. It's ignored by MS, but allowed. Fixed typo.
2825 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2827 * AspGenerator.cs: fixed EnableSesssionState handling.
2829 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2831 * AspGenerator.cs: don't generate instance fields for pages/controls
2832 when the base class specified in the Inherits attribute already has
2833 them. Closes bug #36262.
2835 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2837 * AspGenerator.cs: generate code like 'control.XXX = value' also for
2838 public fields (properties were being handled in that way too).
2840 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2842 * AspGenerator.cs: now it uses the current HttpContext when creating
2843 user controls. TemplateSourceDirectory is no longer a dummy value.
2845 * GlobalAsaxCompiler.cs:
2847 * UserControlCompiler.cs: set the context which will be used to locate
2850 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2852 * AspGenerator.cs: added support for AutoEventWireup attribute in
2855 * CompilationResult.cs:
2856 * GlobalAsaxCompiler.cs:
2858 * UserControlCompiler.cs: store the options.
2860 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2862 * AspElements.cs: new method Tag.GetElements
2863 used to parse the inner contents of a tag looking for data binding or
2866 New property HtmlControlTag.ParseChildren allows
2867 differentiation of a couple of HtmlControls that has children as
2868 properties (namely HtmlTable and HtmlTableRow).
2870 * AspGenerator.cs: fixed container semantics to
2871 match BindingContainer one. Implemented Inherits attribute for page and
2874 Support HtmlControls that has ChildrenAsProperties.
2876 Generate code for data binding functions that matches the semantic of
2879 Handle data bound and code render attribute values.
2881 Set proper value return for TemplateSourceDirectory. Should be relative
2884 * BaseCompiler.cs: moved CompilerOptions and
2885 References handling here.
2887 * CachingCompiler.cs: copy result of compilation.
2889 * CompilationException.cs: simple ToString () implementation.
2891 * CompilationResult.cs: implemented CopyFrom and ToString.
2893 * GlobalAsaxCompiler.cs:
2895 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
2896 in the base class. Get all the types in the generated assembly and
2897 look for one that derives from the correct Type.
2899 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2901 * AspElements.cs: added @Application directive.
2903 * AspGenerator.cs: make it work also with application files. We
2904 currently generate an extra private function.
2906 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2908 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
2909 exists, it will be compiled into an HttpApplication derived class
2910 (directly or through a user-provided class).
2912 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2914 * AspGenerator.cs: fixed target file name and generated class name.
2915 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
2917 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2919 * AspGenerator.cs: reworked user control
2920 compilation. Provide the options as a Hashtable for use in compilation.
2921 Create the user controls in the private bin path of the domain.
2923 * BaseCompiler.cs: base class for the various compiler types.
2925 * CachingCompiler.cs: actually executes mcs and do some poor caching
2926 (it will use Cache when finished).
2928 * CompilationException.cs: this exception has enough information to
2929 generate a nice error page.
2930 * CompilationResult.cs: used in caching.
2932 * PageCompiler.cs: now derives from BaseCompiler
2934 * TemplateFactory.cs: no longer needed.
2936 * UserControlCompiler.cs: new class used when compiling user controls.
2937 * WebServiceCompiler.cs: derives from BaseCompiler.
2939 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2941 * AspElements.cs: added ServerComment class.
2942 * AspParser.cs: ignore ServerComments tags. Remove server comments when
2947 * PageCompiler.cs: check if the type is already cached before generating
2949 * TemplateFactory.cs: if csFile parameter is null, only checks if we
2950 already have the page compiled.
2952 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2954 * AspGenerator.cs: undo one-liner change.
2956 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958 * AspGenerator.cs: removed a few hacks no longer needed.
2960 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2962 * PageCompiler.cs: tracing.
2963 * TemplateFactory.cs: cache compiled types and tracing.
2964 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
2966 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2968 * AspComponentFoundry.cs: fixed typo.
2969 * TemplateFactory.cs: use csc style options.
2970 * AspGenerator.cs: don't use FileDependencies property of base class.
2972 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2974 * System.Web.Compilation/AspElements.cs:
2975 * System.Web.Compilation/AspGenerator.cs:
2976 * System.Web.Compilation/AspParser.cs:
2977 * System.Web.Compilation/PageCompiler.cs:
2978 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
2979 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
2981 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2983 * AspElements.cs: added WebService directive.
2984 * WebServiceCompiler.cs: New file.
2986 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2988 * PageCompiler.cs: fixed compilation.
2990 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2992 * PageCompiler.cs: generate C# file using AspGenerator.
2994 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2996 * AspComponentFoundry.cs: LookupFoundry now returns bool.
2997 * AspGenerator.cs: New file.
2999 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3001 * AspComponentFoundry.cs: New file.
3002 * AspElements.cs: renamed Component to Aspcomponent.
3004 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3011 * TemplateFactory.cs: first steps to move xsp into System.Web.