1 2009-01-26 Marek Habersack <mhabersack@novell.com>
3 * BuildManagerDirectoryBuilder.cs: added support for fake virtual
6 * CompilationException.cs: added a Message override to make error
9 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
11 * AspComponentFoundry.cs: no need to throw. Caller handles a null
14 2009-01-23 Marek Habersack <mhabersack@novell.com>
16 * BuildManager.cs: use -1 for infinite wait in calls to
17 Acquire{Reader,Writer}Lock ().
19 2009-01-22 Marek Habersack <mhabersack@novell.com>
21 * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
24 * BuildProvider.cs: added new internal virtual method,
25 ExtractDependencies() whose purpose is to extract virtual path
26 dependencies without compiling the code, if possible.
28 * TemplateBuildProvider.cs: implemented the new
29 ExtractDependencies () method which uses regular expressions to
30 extract file dependencies from the source without having to
33 * CompilationException.cs: added a new public property, Results,
34 which returns the compilation results.
36 * BuildProviderGroup.cs: added. A simple class descending from
37 List <BuildProvider> which is used to hold a compilation batch -
38 that is a collection of BuildProvider instances.
40 * BuildManagerDirectoryBuilder.cs: new class which takes care of
41 generating compilation batches for the requested virtual path. A
42 set of batches is generated from files found in the same virtual
43 directory as the requested virtual path and all of the
44 dependencies of those files. All files are grouped in batches
45 within which no file depends upon its siblings. An attempt is made
46 to sort the batches from the "least dependent" to the "most
47 dependent" batches - i.e. the batches which do not depend on other
48 batches go to the top.
49 Code generating the batches now correctly detects dependency loops
50 and throws an exception when one is encountered.
51 Batches are represented as instances of a new class -
54 * BuildManagerCacheItem.cs: added. Contains all the compilation
55 result information needed by BuildManager. See below.
57 * BuildManager.cs: complete batch building rewrite:
58 - only one build lock is held instead of a set of compilation
59 tickets. Only one thread can compile anything at one given
61 - retrieving types from the build cache now uses a slim rw lock,
62 so that readers aren't blocked while compilation is in
63 progress. Writer lock is acquired only when adding a newly
64 compiled type to the build cache and when removing it after its
65 dependencies made it invalid.
66 - assembly references for each compilation are now collected
67 dynamically as the source is being compiled, this removed a lot
68 of complexity in dealing with assembles containing conflicting
69 types. As a consequence right now there may exist several
70 loaded assemblies containing the same type, but only the latest
71 of them will be used in new compiles.
72 - the thread compiling code can recurse into the Build method
73 which causes the recursively referenced code to be compiled
74 into a separate, uniquely named, assembly. This deals with all
75 recursion loops and dependency problems.
76 - automatic app domain restart after a certain number of compiles
78 - improved compilation error handling. If a compilation error
79 occurs, the code attempts to recompile the assembly up to 3
80 times, each time removing from the batch the files/virtual
81 paths which failed parsing/compilation. If the attempts failed,
82 another one is made to compile only the virtual path requested
83 by the calling code. Only should that fail a compilation
84 exception is thrown. All the compilation errors are written to
85 stdout if the application is in the debug mode.
86 - changed assembly naming. It now generates assembly names based
87 on whether the compilation is recursive and whether the batch
88 being compiled contains more than one code unit or
90 - compilation results are now stored in the cache as instances of
91 the new BuildManagerCacheItem class, which contains all the
92 information required by BuildManager to return types,
93 assemblies, dependencies etc.
94 - GetReferencedAssemblies now correctly returns only the
95 assemblies defined in the .config files.
96 - GetVirtualPathDependencies does not need to compile code
97 anymore in order to extract virtual path dependencies. New code
98 in BuildProvider.ExtractDependencies () takes care of that.
99 - a BuildManagerDirectoryBuilder class instance is used to
100 generate compilation batches.
101 - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
104 * AssemblyBuilder.cs: added support for keeping track of which
105 code unit was generated by which BuildProvider andr which
106 BuildProvider produced a given source file. Both changes serve the
107 purpose of dealing with compilation errors in BuildManager.
109 * ApplicationFileBuildProvider.cs: added missing
110 BuildProviderAppliesTo attribute
112 2009-01-14 Marek Habersack <mhabersack@novell.com>
114 * AspGenerator.cs: implemented a work around which allows the
115 server controls embedded in client tag attributes to be parsed and
118 2009-01-13 Marek Habersack <mhabersack@novell.com>
120 * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
121 GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
122 ControlBuilder cleanup.
124 2009-01-12 Marek Habersack <mhabersack@novell.com>
126 * TemplateControlCompiler.cs: do not generate #line pragmas for
127 plain strings. Fixes bug #461214
129 2008-12-11 Marek Habersack <mhabersack@novell.com>
131 * BaseCompiler.cs: added a new method, InitializeType, to be
132 overriden in child classes when any class initialization needs to
133 be performed before methods, constructors and fields are created.
135 * TemplateControlCompiler.cs: if the parser has any custom
136 controls registered, compile them here - in the InitializeType
139 2008-12-10 Marek Habersack <mhabersack@novell.com>
141 * ParseException.cs: made serializable.
143 * PageCompiler.cs: CreateStronglyTypedProperty calls
144 AddReferencedAssembly to add type's assembly to the unit's
145 references after the typed property has been created.
147 * BaseCompiler.cs: added a new helper method,
148 AddReferencedAssembly to be used whenever an assembly location
149 needs to be added to the compilation unit's list after the parsing
150 is done (e.g. when processing PreviousPageType or MasterPageType
151 properties in PageParser)
153 2008-12-08 Marek Habersack <mhabersack@novell.com>
155 * TemplateControlCompiler.cs: use the correct regex match group
156 index in SanitizeBindCall (), fixes bug #457011
158 2008-12-05 Marek Habersack <mhabersack@novell.com>
160 * BuildManager.cs: attempt to enter the compilation critical
161 section with a timeout up to 3 times before giving up. This avoids
162 deadlocks in situations where there are two virtual directores
163 each containing user controls referencing user controls from the
166 2008-12-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
168 * AspParser.cs: reset to the next character in a partial match in case
169 of failure. Fixes bug #314688.
171 2008-12-01 Marek Habersack <mhabersack@novell.com>
173 * TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
174 instances to the ContentPlaceHolders collection when the
175 placeholder is instantiated in the control build method, collect
176 the ids and store them in ContentPlaceHolders inside the
177 constructor. Fixes bug #449970
178 For each content placeholder generate a public virtual property
179 named "Template_PLACEHOLDERID", this is compatible with what .NET
182 * BaseCompiler.cs: added new virtual method,
183 AddStatementsToConstructor, which is called just before
184 CreateConstructor returns.
186 2008-11-25 Marek Habersack <mhabersack@novell.com>
188 * AspComponentFoundry.cs: GetComponentType methods replaced with
189 GetComponent returning an instance of AspComponent which fully
190 describes the registered item. Components are cached, indexed by
193 * AspComponent.cs: added
195 2008-11-21 Marek Habersack <mhabersack@novell.com>
197 * CompilationException.cs: made serializable.
199 * TemplateControlCompiler.cs: make the Bind regex stricter.
200 When creating Eval expression from Bind, replace single quotes
201 with double quotes. Fixes bug #447597
202 When processing Bind expressions and the regex doesn't match,
205 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
207 * AspTokenizer.cs: if there's a newline between the opening server tag
208 and any other special character, treat the block as a code-render
212 2008-11-14 Marek Habersack <mhabersack@novell.com>
214 * TemplateControlCompiler.cs: treat Eval and Bind expressions as
215 verbatim code. The only difference between the two is that in the
216 latter case Bind is replaced with Eval in the output code. Fixes
218 If BindingDirection of the parent template builder is OneWay in
219 RegisterBindingInfo, do not throw an exception but simply do not
220 register the binding.
222 2008-10-29 Marek Habersack <mhabersack@novell.com>
224 * BuildManager.cs: seal the internal classes.
225 Remove unused BuildCacheItem.ValidBuild property.
227 2008-10-16 Marek Habersack <mhabersack@novell.com>
229 * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
230 use PropertyInfo.CanWrite to check whether the property is
231 writable anymore, it calls GetSetMethod (false) instead.
233 2008-10-10 Marek Habersack <mhabersack@novell.com>
235 * TemplateControlCompiler.cs: allow whitespace around parentheses
236 in the Bind and Eval expressions.
238 2008-10-09 Marek Habersack <mhabersack@novell.com>
240 * BuildManager.cs: if monoSettings section is found in the
241 system.web section in web.config, use its contents to augment
242 compiler configuration. Used to work around the issue reported in
245 2008-10-08 Marek Habersack <mhabersack@novell.com>
247 * TemplateControlCompiler.cs: templates must be instantiated even
248 for builders which process children as properties.
250 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
252 * AssemblyBuilder.cs: use CodeBase to get to the original assembly
253 path because Location might point the the shadow copy. Bug #409646
256 2008-10-03 Marek Habersack <mhabersack@novell.com>
258 * BuildManager.cs: if an assembly fails to build out of a batch of
259 files, extract the virtual path that was requested by the client
260 and attempt to compile it alone.
262 2008-09-29 Marek Habersack <mhabersack@novell.com>
264 * BuildManagerRemoveEntryEventHandler.cs: added
266 * BuildManager.cs: added a static event to notify interested
267 parties when an entry is removed from the buildCache. Fixes bug
270 2008-09-26 Marek Habersack <mhabersack@novell.com>
272 * BuildManager.cs: when creating a cache entry for a virtual path,
273 make it depend on a list of files built recursively from all the
274 virtual path's dependencies. Fixes bug #430114
276 2008-09-24 Andreia Gaita <avidigal@novell.com>
278 * AspParser.cs: When parsing text which contain xml tags that resemble
279 the end string, append the original text instead of the end string,
280 because the casing might not match between the two. Fixes #320445
282 2008-09-23 Marek Habersack <mhabersack@novell.com>
284 * AspGenerator.cs: ignore whitespace only if it's between
285 CodeRender blocks, not between DataBinding and
286 CodeRenderExpression.
288 2008-09-01 Marek Habersack <mhabersack@novell.com>
290 * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
291 null/empty parser.InputFile now.
293 * AspGenerator.cs: AddTypeToCache works checks whether inputFile
294 is null or empty and does not assume the dependencies ArrayList is
296 CloseControl uses ControlBuilder's OriginalTagName property,
297 should the property/tag name be prefixed with 'prefix:'
299 * CachingCompiler.cs: expect the dependencies ArrayList to be null
302 2008-08-31 Marek Habersack <mhabersack@novell.com>
304 * TemplateControlCompiler.cs: trust builder.BindingContainerType
305 in the 2.0+ profile - do not use container properties to detect
307 Added a helper method, compiled only when DEBUG is defined, to
308 generate Console.WriteLine CodeDOM calls.
309 Templates are processed before anything else, so that children
310 which may depend on parent's templates can get access to them.
312 * BaseCompiler.cs: add line pragmas only if enabled for the
315 2008-08-29 Marek Habersack <mhabersack@novell.com>
317 * AppCodeCompiler.cs: properly handle profile base class
318 specifications which refer to full type names.
320 2008-08-26 Marek Habersack <mhabersack@novell.com>
322 * BuildManager.cs: use VirtualPathUtility.Combine in
323 GetAbsoluteVirtualPath for non-rooted paths.
325 2008-08-19 Marek Habersack <mhabersack@novell.com>
327 * ThemeDirectoryBuildProvider.cs: theme directory dependencies
328 should use only virtual paths for CSS files. Fixes bug #397187
330 2008-08-18 Marek Habersack <mhabersack@novell.com>
332 * TemplateControlCompiler.cs: process expression when they are
333 used used in values of attributes without associated
334 properties. Fixes bug #417883
336 * ResourceExpressionBuilder.cs: added two overloads of
337 CreateGetLocalResourceObject to encompass cases when the generated
338 expression is not assigned to a property but rather used as a
339 parameter to the SetAttribute method. Fixes bug #417883
341 2008-08-14 Marek Habersack <mhabersack@novell.com>
343 * AspGenerator.cs: do not ignore directives inside HTML comments.
345 * TemplateControlCompiler.cs: .NET allows for whitespace between
346 the directive start (<%) and the directive type character. Added
347 code which copes with such situations correctly.
349 2008-08-13 Marek Habersack <mhabersack@novell.com>
351 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
352 to allow for single quotes and an optional second parameter to the
354 Added an Eval regular expression.
355 Both Bind and Eval calls in data expressions are now converted
356 into a CodeDOM method invocations, to allow support for possible
357 languages which use a different call format (previously code
359 Added a method to construct the Eval invoke expression which
360 simplifies code in other areas.
363 2008-08-06 Marek Habersack <mhabersack@novell.com>
365 * TemplateControlCompiler.cs: handle situation when a property of
366 a control for which we're generating the code is of type
367 'Type'. In such case, variable.GetType() will return
368 System.MonoType, which must not be output to the generated
369 source. Thanks to Robert Jordan for giving the idea for the hack!
371 2008-06-30 Marek Habersack <mhabersack@novell.com>
373 * AspGenerator.cs: hush the warnings and fix invalid type
376 * AssemblyBuilder.cs: hush the warnings and add some debugging
379 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
380 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
381 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
383 2008-06-18 Marek Habersack <mhabersack@novell.com>
385 * TemplateControlCompiler.cs: AddChildCall properly processes the
386 PartialCachingAttribute now.
388 2008-06-11 Marek Habersack <mhabersack@novell.com>
390 * BuildManager.cs: if an error occurs while assigning the
391 requested path to an assembly builder inside BuildAssembly, throw
394 * BaseCompiler.cs: do not generate #line pragma for code which
395 exists only in memory.
397 2008-05-30 Marek Habersack <mhabersack@novell.com>
399 * ClientBuildManager.cs: do not use synthetized event accessors
402 2008-05-28 Marek Habersack <mhabersack@novell.com>
404 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
407 2008-05-19 Marek Habersack <mhabersack@novell.com>
409 * AspGenerator.cs: if the last tag parsed was a code directive,
410 ignore any accumulated text if it's 100% whitespace.
411 Do not parse code render directives inside comments.
413 2008-05-15 Marek Habersack <mhabersack@novell.com>
415 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
416 when adding a foundry to the array list. AssemblyFoundry instances
417 are stacked at the end of the array list in a LIFO manner. That
418 way TagNameFoundry takes precedence over AssemblyFoundry should
419 the two contain the same type.
421 2008-05-14 Marek Habersack <mhabersack@novell.com>
423 * ParseException.cs: location can be null in the FileText property
426 2008-05-07 Marek Habersack <mhabersack@novell.com>
428 * AspGenerator.cs: push the include file directory to the parser
429 include directory stack and pop it after parsing the include, so
430 that the relative file paths are resolved correctly. Fixes bug
433 2008-05-06 Marek Habersack <mhabersack@novell.com>
435 * TemplateControlCompiler.cs: compatibility - added the
436 __stringResource static field to the generated class and a call to
437 SetStringResourcePointer to the FrameworkInitialize method.
439 * PageCompiler.cs: __fileDependencies should also be defined in
441 Page properties assigned in the page directive should be set
442 inside BuildControlTree in the 2.0 profile.
444 2008-04-29 Marek Habersack <mhabersack@novell.com>
446 * WebServiceCompiler.cs: if compiling a body-less web service, try
447 to load the class type from the loaded assemblies before
448 attempting to find it in the assemblies on disk.
450 2008-04-28 Marek Habersack <mhabersack@novell.com>
452 * BuildManager.cs: ignore bad assemblies in the bin/
453 directory. Fixes bug #315816
455 2008-04-26 Marek Habersack <mhabersack@novell.com>
457 * GenericBuildProvider.cs: the Parse () method should reuse the
458 previously opened TextReader when calling generator.Parse (), to
459 avoid opening the input file multiple times. Fixes bug #383881
461 2008-04-25 Marek Habersack <mhabersack@novell.com>
463 * AspGenerator.cs: put some safeguards in, to make sure streams
464 are closed in any case.
466 2008-04-24 Marek Habersack <mhabersack@novell.com>
468 * AspComponentFoundry.cs: added a new GetComponentType overload
469 which returns component source and a boolean flag whether the
470 control was registered from web.config (2.0).
472 2008-04-22 Marek Habersack <mhabersack@novell.com>
474 * BuildManager.cs: ignore also arbitrary exceptions when
475 batch-building an assembly. Fixes bug #323556
477 2008-04-19 Marek Habersack <mhabersack@novell.com>
479 * BuildManager.cs: use absolute virtual path to query the
480 VirtualPathProvider for path existence.
481 When ASP.NET is self-hosted, force
482 non-batch compilation. Fixes bug #380985
484 * ILocation.cs: added a new property, FileText.
486 * Location.cs: added implementation of the ILocation.FileText
489 * ParseException.cs: use the new ILocation.FileText, if defined,
490 to get the file source.
492 * AspGenerator.cs: when TextReader is present, use it to read with
493 the VirtualPathProvider to read the file source. Fixes bug #381364
495 * AspParser.cs: added a new property FileText to provide the file
496 contents which was read in the constructor.
498 2008-04-18 Marek Habersack <mhabersack@novell.com>
500 * BuildManager.cs: when any parsing error occurs during batch
501 building, ignore the file which caused it. If the file with
502 parsing error is the one requested by user, throw the parsing
503 exception. Fixes bug #323742
505 2008-04-15 Marek Habersack <mhabersack@novell.com>
507 * CachingCompiler.cs: dispose of streams the way it should
510 2008-04-09 Marek Habersack <mhabersack@novell.com>
512 * BuildManager.cs: refactoring - the SetCommonParameters and
513 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
514 and made internal static.
515 Do not catch compilation exceptions and wrap them in
516 HttpException, let the CompilationException pass through. Fixes
519 * AppWebReferencesCompiler.cs: added - support for compiling of
520 wsdl files found in the App_WebResources directory. Fixes bug
523 * BuildProvider.cs: refactoring - moved the SetCommonParameters
524 and GetDefaultCompilerTypeForLanguage to BuildManager
526 * WsdlBuildProvider.cs: added the CodeCompilerType property
528 Namespace for the generated code is taken from the wsdl path,
529 relative to App_Code or App_WebReferences, if the wsdl in question
530 is under on of those directories.
531 GenerateCode uses OpenReader () so that VirtualPathProvider works
534 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
535 when generating source from code unit and use
536 WebEncoding.FileEncoding when adding code files to the unit. Fixes
538 Cope with virtualPath being null in BuildAssembly.
539 Reference assemblies specified in web.config when linking.
541 2008-04-08 Marek Habersack <mhabersack@novell.com>
543 * AspComponentFoundry.cs: add loaded assembly to the
544 BuildManager's list of referenced assemblies instead to
545 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
547 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
549 * BuildManager.cs: switched to VirtualPath instead of a string
550 path in several methods.
551 Batch compilation is turned off if we have a custom
552 VirtualPathProvider which implements only the VirtualFile and
553 falls back to DefaultVirtualDirectory implementation for directory
555 Added an internal method AddToReferencedAssemblies.
556 Remove invalidated entry from
557 WebConfigurationManager.ExtraAssemblies.
559 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
561 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
563 * AssemblyBuilder.cs: constructors use the new VirtualPath class
565 AddCodeFile can use the VirtualPathProvider if necessary now.
566 BuildAssembly overloads accept VirtualPath parameter instead of a
569 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
572 2008-03-31 Marek Habersack <mhabersack@novell.com>
574 * AppCodeCompiler.cs: implemented support for AppInitialize (a
575 static method in any class defined in the App_Code source files),
576 ran just after the App_Code assemblies are compiled in order to
577 perform any application initialization actions.
579 2008-03-27 Marek Habersack <mhabersack@novell.com>
581 * BuildManager.cs: AssertVirtualPathExists now queries the
582 VirtualPathProvider for path existence if physical path check
583 fails, before throwing the 404 exception.
585 2008-03-13 Marek Habersack <mhabersack@novell.com>
587 * BuildManager.cs: if we're running in a case-insensitive
588 environment, use case-insensitive comparer for the build caches.
590 2008-02-29 Marek Habersack <mhabersack@novell.com>
592 * BuildManager.cs: implement a mechanism to ignore certain virtual
593 paths when batch compiling. Helps applications which may have
594 .as?x files which won't work on mono for various reasons (one such
595 sample is mojoportal).
597 2008-02-28 Marek Habersack <mhabersack@novell.com>
599 * TemplateControlCompiler.cs: make sure that data-bound attribute
600 assignments properly convert the Bind expression to the Eval
601 one. Fixes bug #362039
603 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
604 controls can contain only them, whitespace and directives. Fixes
607 2008-02-27 Marek Habersack <mhabersack@novell.com>
609 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
610 LoadType method for the 2.0 profile.
612 * CompilationException.cs: use a different format of ErrorMessage
613 for the 2.0+ profile.
615 2008-02-26 Marek Habersack <mhabersack@novell.com>
617 * BuildManager.cs: known file types extensions are now matched
620 2008-02-25 Marek Habersack <mhabersack@novell.com>
622 * TemplateControlCompiler.cs: GetContainerType now checks whether
623 the binding container returned from the builder implements
624 IDataItemContainer (for 2.0+ profiles) and looks for one more
625 property, Rows, if no Items property is found.
627 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
629 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
630 "raw" appsetting value if targetType is null.
632 2008-02-07 Marek Habersack <mhabersack@novell.com>
634 * CompilationException.cs: added new constructor which takes
635 CompilerResults as one of the parameters.
636 Added CompilerOutput property.
638 * AssemblyBuilder.cs: use the new CompilationError constructor.
640 * BuildManager.cs: check for virtualPath existence before
641 attempting to compile the assemblies. Fixes bug #359465
643 2008-02-06 Marek Habersack <mhabersack@novell.com>
645 * GenericBuildProvider.cs: GetGeneratedType may return a type even
646 though the results are null.
648 * AssemblyBuilder.cs: if there are no units, no source files, no
649 resources and no embedded resources in the passed options then
650 do not attempt to compile the assembly. Fixes bug #359325
652 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
653 BuildAssembly may return null results.
655 * BuildManager.cs: protect non-page builds from endless recursion
656 if a non-page file recursively references/includes another file
657 from the same batch. If such case is detected, the recursively
658 referenced file is compiled into a separate assembly and removed
659 from the previous compilation batch. Fixes bug #358742.
660 If AssemblyBuilder returns no results from BuildAssembly, it might
661 mean we're dealing with a compilation of empty .as[hm]x files,
662 with no code and only code-behind in bin/. Do not report an error
663 in that case, only add the compiled types to the cache. Fixes bug
666 2008-02-05 Marek Habersack <mhabersack@novell.com>
668 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
669 non-rooted relative paths to absolute ones now. Fixes bug
672 * GenericBuildProvider.cs: introduced a new abstract method,
673 GetReferencedAssemblies, which is called on descendant builders to
674 get a list of assemblies referenced by the parsed file. Fixes bug
677 * AssemblyBuilder.cs: added a new overload of the
678 AddAssemblyReference method, to be used by build providers to
679 register assemblies collected by the corresponding parser.
681 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
682 overload of the new abstract method GetReferencedAssemblies.
684 * AspGenerator.cs: introduced a new overload for the Parse method
685 which accepts a bool indicating whether or not to initialize the
686 parser. The overload is used when parsing server-side
687 includes. Fixes bug #357498
689 2008-02-04 Marek Habersack <mhabersack@novell.com>
691 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
692 generating source code files. Fixes bug #357053.
694 * AspGenerator.cs: set isApplication before parsing. Fixes bug
697 2008-01-31 Jb Evain <jbevain@novell.com>
699 * AspGenerator.cs: correct typo. Fix #357547.
701 2008-01-27 Marek Habersack <mhabersack@novell.com>
703 * BuildManager.cs: GetReferencedAssemblies includes the extra
704 assemblies and the App_Code assemblies. Patch from Mike Morano
705 <mmorano@mikeandwan.us>, thanks!
707 2008-01-24 Marek Habersack <mhabersack@novell.com>
709 * WebHandlerBuildProvider.cs: derive from the new
710 SimpleBuildProvider class.
712 * BuildManager.cs: full implementation of the batch compilation
713 for the 2.0 profile. The implementation is most probably different
714 to MS.NET's but the effects are the same (or nearly the same -
715 there are some minor differences). There are missing bits and
716 pieces, but minor ones - to be added later.
718 * SimpleBuildProvider.cs: new build provider abstract class
719 deriving from the GenericBuildProvider that implements common code
720 for building web handlers and web services.
722 * GenericBuildProvider.cs: new generic abstract class used to
723 implement base builder code for all the build provider types and
726 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
727 class and implement all the necessary abstract members.
728 Handle "fake" virtual paths, to properly support generating of the
731 * BuildProvider.cs: SetVirtualPath now converts the passed path to
733 Added internal virtual method GenerateCode, used by derived
735 SetCommonParameters no longer sets the referenced assemblies, this
736 is done in BuildManager now.
737 Added an internal virtual property CodeUnit which returns the
738 build provider's compilation unit.
740 * PageCompiler.cs: fix assignment of base types for asynchronous
741 pages, to match MS.NET.
742 For asynchronous pages, add the necessary methods generation.
744 * BaseCompiler.cs: default namespace is now set using a constant.
745 Renamed the Init method into ConstructType, to better reflect its
746 purpose and made the method internal - it is used by the build
748 Added several CreateProvider overloads for easier and more unified
749 compilation provider creation.
750 Added an internal MainClassType property to enable class type name
751 retrieval from other parts of the class hierarchy.
753 * ApplicationFileBuildProvider.cs: new build provider deriving
754 from the TemplateBuildProvider class to compile the global.asax
757 * AspGenerator.cs: properly handle parsers which have no input
758 file path given, but use TextReader instead.
759 Dependencies are virtual paths now, convert them to physical ones
760 before creating cache dependency.
762 * CachingCompiler.cs: parser dependencies are virtual paths now,
763 convert them to physical ones before creating cache dependency.
765 * AssemblyBuilder.cs: full implementation of the documented
766 functionality as well as a lot of internal build code
767 added. Produces assemblies using the same style what MS.NET for
768 temporary and target file naming. Handles partial type squashing
769 if the same partial type is used by several code compile units
770 added to the same builder instance.
772 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
773 base class and add implementation of all the abstract methods
776 * ThemeDirectoryBuildProvider.cs: new build provider to compile
777 theme directories. Replaces the old ThemeDirectoryCompiler class.
779 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
780 base class and add implementation of all the abstract methods
783 * TemplateBuildProvider.cs: new internal abstract class which
784 implements the common tasks for all the template control build
787 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
788 type to implement building.
790 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
792 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
794 2008-01-08 Marek Habersack <mhabersack@novell.com>
796 * TemplateControlCompiler.cs: statements to assign
797 fields/properties from resources must be processed at the very end
798 of the control creation method. Some controls (like HyperLink) can
799 set their Text attribute using literal content. In such cases, in
800 order to properly localize the control, the value read from the
801 local page resources must be assigned after the literal value has
802 been added to the control. Fixes bug #323494
804 2008-01-07 Marek Habersack <mhabersack@novell.com>
806 * CachingCompiler.cs: added an overload to the Compile method
807 which accepts a flag whether or not to include debug information
808 in the generated assembly.
810 2008-01-02 Marek Habersack <mhabersack@novell.com>
812 * TemplateControlCompiler.cs: add line pragma wherever necessary.
814 * PageCompiler.cs: reorder the statements to match MS.NET output.
815 Output line pragma information for directive attributes.
817 * BaseCompiler.cs: add a set of AddLinePragma methods for various
819 Output line pragmas when adding server-side scripts to the CodeDOM
822 * AspGenerator.cs: use ServerSideScript to store script location
823 in the original file.
825 * UserControlCompiler.cs: output line pragmas for the init
828 2007-12-28 Marek Habersack <mhabersack@novell.com>
830 * PageCompiler.cs: MS.NET compatibility: added the
831 __fileDependencies object to the generated class.
832 Refactored the output to match MS.NET more closely.
833 IHttpHandler or IHttpAsyncHandler are now added to the generated
834 class list of implemented interfaces.
836 * BaseCompiler.cs: Main class field references are prefixed with
838 Refactored the output to match MS.NET more closely.
840 2007-12-27 Marek Habersack <mhabersack@novell.com>
842 * BaseCompiler.cs: check for base type globality in all the
845 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
847 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
850 2007-12-21 Marek Habersack <mhabersack@novell.com>
852 * BaseCompiler.cs: Refactoring. Move the provider creation code to
853 an internal static method, so that other piece of code which need
854 to create the provider can do it using the same code.
855 Added setters to several internal properties, so that they can be
856 shared with derivative classes.
858 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
861 * CachingCompiler.cs: adjust to the changes above. Also some
864 2007-12-15 Marek Habersack <mhabersack@novell.com>
866 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
868 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
869 profile, it's obsoleted. CachingCompiler will use the
870 CodeDomProvider methods directly in that case.
872 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
873 compiler information for the 2.0 profile from system.codeDom.
875 * CachingCompiler.cs: the Compile overloads do not use the
876 compiler instance, but call appropriate methods on the
877 CodeDomProvider instance directly.
878 Updated some Compile overloads to acquire compiler information for
879 the 2.0 profile from system.codeDom.
881 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
883 * TemplateControlCompiler.cs (AddExpressionAssign):
884 Make sure expression does not contain prefix.
886 * AppSettingsExpressionBuilder.cs: Pass type of property to
887 GetAppSetting, not type of declaring type.
889 2007-12-13 Marek Habersack <mhabersack@novell.com>
891 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
892 AssemblyBuilder.cs, AppResourcesCompiler.cs,
893 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
894 optimization - use String.Concat instead of String.Format in some
897 2007-11-22 Marek Habersack <mhabersack@novell.com>
899 * PageCompiler.cs: use
900 pageParser.OutputCacheVaryByContentEncodings when initializing the
901 output cache in the 2.0 profile.
903 2007-11-06 Marek Habersack <mhabersack@novell.com>
905 * BuildManager.cs: properly retrieve the BuildProviderCollection
906 from configuration files.
908 2007-11-03 Marek Habersack <mhabersack@novell.com>
910 * TemplateControlCompiler.cs: do not call converters specified in
911 the member custom attributes if 'str' is null in
912 GetExpressionFromString.
914 2007-10-23 Marek Habersack <mhabersack@novell.com>
916 * AppResourcesAssemblyBuilder.cs: do not output preservation files
917 for satellite assemblies, just for the main assembly. Also, don't
918 add the satellite assemblies to the list of top-level assemblies.
920 2007-10-17 Marek Habersack <mhabersack@novell.com>
922 * PageCompiler.cs: added code to set the AsyncMode and
923 AsyncTimeout Page properties.
925 2007-10-15 Marek Habersack <mhabersack@novell.com>
927 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
928 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
929 HttpApplication.LoadType instead of Type.GetType.
931 2007-10-10 Marek Habersack <mhabersack@novell.com>
933 * TemplateControlCompiler.cs: be careful when using type
934 converters taken from attributes attached to class members. They
935 may come from the System.Design namespace, which is mostly not
938 2007-10-01 Marek Habersack <mhabersack@novell.com>
940 * AppResourcesCompiler.cs: resources are no longer compiled into a
941 single assembly. Instead, the common assembly construction code
942 has been moved to AppResourcesAssemblyBuilder to use satellite
945 * AppResourcesAssemblyBuilder.cs: new resource assembly
946 construction code which takes care of outputting satellite
949 2007-09-27 Marek Habersack <mhabersack@novell.com>
951 * TemplateControlCompiler.cs: support nullable types in
952 GenerateExpressionFromString.
954 2007-09-21 Marek Habersack <mhabersack@novell.com>
956 * TemplateControlCompiler.cs: if we're running on a platform with
957 the directory separator character that's different to the Unix
958 style '/' one, convert the input file path to the virtual path
959 style string, with path parts separated by '/'. Patch from Robert
960 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
962 2007-09-20 Marek Habersack <mhabersack@novell.com>
964 * TemplateControlCompiler.cs: if a member passed to
965 GetExpressionFromString has a TypeConverter attribute set, try to
966 use the named type converter to convert the string value into the
967 target type. Fixes bug #325489.
969 2007-09-14 Marek Habersack <mhabersack@novell.com>
971 * AppResourcesCompiler.cs: use _culture and _resourceManager
972 instead of culture and resourceManger in the generated code, to
973 avoid case problems for languages that are case-insensitive.
975 2007-09-10 Marek Habersack <mhabersack@novell.com>
977 * TemplateControlCompiler.cs: cast the expression to the field
978 type whenever appropriate in GetExpressionFromString.
979 When generating an object instance and one of the parameters is
980 System.Type, return a typeof expression.
982 2007-09-07 Marek Habersack <mhabersack@novell.com>
984 * TemplateControlCompiler.cs: another modification to the way
985 TemplateInstance.Single templates are treated. The search for
986 parent with this attribute set stops as soon as the first
987 TemplateBuilder is encountered, no matter what the value of its
988 TemplateInstance attribute is.
990 2007-09-06 Marek Habersack <mhabersack@novell.com>
992 * TemplateControlCompiler.cs: ID must be assigned as soon as
993 possible, before any other attributes of the control are
994 accessed. The control code may rely on ID being set.
995 Extend the process of checking if a control is located within a
996 template with the TemplateInstance.Single attribute set, to all
997 the parents of the current builder.
999 2007-09-05 Marek Habersack <mhabersack@novell.com>
1001 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
1002 batch must share the same component foundry. Under MS.NET if any
1003 earlier .skin file registers a control prefix any later .skin
1004 files may use it without registering.
1006 2007-09-04 Marek Habersack <mhabersack@novell.com>
1008 * TemplateControlCompiler.cs: make sure that base class doesn't
1009 contain a field of the same name which is accessible from the
1010 current control if we're within a singleton template.
1011 When generating code for a property or field, use the name
1012 retrieved from the metadata by reflection instead of the one
1013 parsed from html. Fixes bug #82687. Patch from SunHo Kim
1014 <zsunno@gmail.com>, thanks!
1016 2007-08-29 Marek Habersack <mhabersack@novell.com>
1018 * CachingCompiler.cs: consider contents of the
1019 <compilation><assemblies> section when constructing a list of
1020 assemblies during compilation.
1022 * TemplateControlCompiler.cs: mark fields corresponding to the
1023 controls as global references.
1024 When control tree is constructed and the parent of the current
1025 builder is a TemplateBuilder marked with the TemplateInstance
1026 attribute set to Single, use the control's ID as the field
1027 name. This makes it possible to refer to controls inside templates
1028 by name instead of by using FindControl.
1030 2007-08-23 Marek Habersack <mhabersack@novell.com>
1032 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
1033 and HttpApplication.LoadTypeFromBin.
1035 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
1038 2007-08-21 Marek Habersack <mhabersack@novell.com>
1040 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
1041 to look up assemblies in the binary path(s).
1043 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
1045 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
1046 for scope case insensitive. Fixes bug #82479.
1048 2007-08-14 Marek Habersack <mhabersack@novell.com>
1050 * TemplateControlCompiler.cs: remove dead code.
1052 * AssemblyBuilder.cs: include actual exception information when
1053 reporting inability to load a compiled assembly.
1055 * AppCodeCompiler.cs: remove unused variables.
1057 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
1058 component collections, instead of the old Queue which implemented
1059 FIFO. Fixes situations when a control registered later for a
1060 certain prefix would not be used in preference to a previously
1061 registered one of the same name.
1063 2007-08-06 Marek Habersack <mhabersack@novell.com>
1065 * AspComponentFoundry.cs: properly add new foundry if the
1066 corresponding entry in the foundries collection is a Queue. Patch
1067 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
1069 2007-07-31 Marek Habersack <mhabersack@novell.com>
1071 * AspComponentFoundry.cs: do not overwrite previously registered
1072 foundries when a new one is registered with the same prefix. Fixes
1075 2007-07-18 Marek Habersack <mhabersack@novell.com>
1077 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
1078 does not look up the Item/Items properties to determine the
1079 container type, instead it just returns the type reported by the
1080 builder passed to this method. This change makes the generated
1081 code match MS.NET. Fixes bug #82119.
1083 2007-07-02 Marek Habersack <mhabersack@novell.com>
1085 * TemplateControlCompiler.cs: don't use StartWith to see if a
1086 variable's value is a bind expression, as it erroneously renames
1087 all calls to methods starting with the string Bind. Use a regular
1088 expression now instead. Fixes bug #81928.
1090 2007-06-20 Marek Habersack <mhabersack@novell.com>
1092 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
1094 * CachingCompiler.cs: as above
1095 * AspGenerator.cs: as above
1097 2007-06-13 Marek Habersack <mhabersack@novell.com>
1099 * TemplateControlCompiler.cs: make sure control has a writable
1100 TemplateControl property prior to assigning values to it.
1102 2007-06-09 Marek Habersack <mhabersack@novell.com>
1104 * TemplateControlCompiler.cs: TemplateControl is assigned for
1105 controls that are placed within ContentPlaceHolder and not for the
1106 ContentPlaceHolder itself.
1107 No longer add the overriden version of TemplateSourceDirectory to
1108 the generated source, all the work is now done in
1109 Control.TemplateSourceDirectory.
1111 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
1112 slash, for compatibility with MS.NET
1114 2007-06-05 Marek Habersack <mhabersack@novell.com>
1116 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
1117 profile uses the TemplateControl property instead of Parent. This
1118 allows to return the correct path.
1120 2007-06-01 Marek Habersack <mhabersack@novell.com>
1122 * TemplateControlCompiler.cs: be case-insensitive when looking for
1125 2007-05-29 Marek Habersack <mhabersack@novell.com>
1127 * ThemeDirectoryCompiler.cs: pass the skin file's
1128 virtual path to the skin file parser as its first paramenter, and
1129 not a physical path.
1131 2007-05-28 Marek Habersack <mhabersack@novell.com>
1133 * ResourceExpressionBuilder.cs: properly cast
1134 GetGlobalResourceObject calls to the type of the property being
1137 2007-05-25 Marek Habersack <mhabersack@novell.com>
1139 * TemplateControlCompiler.cs: Changed a few incorrect
1140 ObjectCreationExpression to the correct DelegateCreationExpression.
1143 2007-05-24 Marek Habersack <mhabersack@novell.com>
1145 * PageCompiler.cs: added support for the PreviousPageType directive.
1147 * Directive.cs: as above.
1149 2007-05-22 Marek Habersack <mhabersack@novell.com>
1151 * UserControlCompiler.cs: the Profile property should be present
1152 also in user controls.
1154 2007-05-15 Marek Habersack <mhabersack@novell.com>
1156 * ResourceExpressionBuilder.cs: added a static method to generate
1157 a GetLocalResourceObject call which properly handles types which
1158 cannot be converted from strings.
1160 * TemplateControlCompiler.cs: use code described above to generate
1161 code for properties assigned from resources.
1163 * WsdlBuildProvider.cs: make the code actually work - get the
1164 physical path of VirtualPath instead of converting it to absolute
1166 Do not generate source, add the code unit to assembly builder
1169 * XsdBuildProvider.cs: added
1171 2007-05-08 Marek Habersack <mhabersack@novell.com>
1173 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
1174 so use a delegate create expression - it may make difference for
1175 languages other than C# (e.g. VisualBasic).
1177 2007-05-07 Marek Habersack <mhabersack@novell.com>
1179 * AspGenerator.cs: if the parser's language is implicit (i.e. set
1180 from the default configuration), the first script with the
1181 language attribute present sets the language of the parser.
1183 2007-05-04 Marek Habersack <mhabersack@novell.com>
1185 * TemplateControlCompiler.cs: do not query the parent for
1186 TemplateSourceDirectory if we are generating code for a Master
1189 2007-04-30 Marek Habersack <mhabersack@novell.com>
1191 * ConnectionStringsExpressionBuilder.cs: support expressions with
1192 suffixes .ProviderName and .ConnectionString (case-insensitie) and
1193 generate a call to GetConnectionStringProviderName in the former
1194 case. Fixes bug #81490
1196 * AppCodeCompiler.cs: support for cases when there exists a custom
1197 profile class but there is no App_Code directory or it's
1198 empty. Fixes bug #81489.
1200 * TemplateControlCompiler.cs: fix generation of code for
1201 declarative attribute assignments of the form Font-Size="small"
1202 (i.e. when a font size is assigned a symbolic, relative size
1203 value). This fixes for example rendering of the 0th level of
1206 2007-04-27 Marek Habersack <mhabersack@novell.com>
1208 * AppCodeCompiler.cs: do not look at the number of errors, check
1209 the compiler return code instead.
1210 Resolve assembly names from the global web.config to their
1211 locations before passing them to the compiler provider.
1213 * AssemblyBuilder.cs: as above
1215 * AppResourcesCompiler.cs: as above
1217 * AspComponentFoundry.cs: formatting changes.
1218 AssemblyFoundry looks for the specified namespace+type in the
1219 top-level assemblies if necessary.
1221 2007-04-26 Marek Habersack <mhabersack@novell.com>
1223 * AssemblyBuilder.cs: handle compilation failures in a better
1226 * PageCompiler.cs: the Master property must be in the partial
1227 class if present. Fixes bug #81442
1229 2007-04-20 Marek Habersack <mhabersack@novell.com>
1231 * AppCodeCompiler.cs: fix App_Code build when the directory
1232 contains both known and unknown files.
1234 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1236 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1239 2007-04-19 Marek Habersack <mhabersack@novell.com>
1241 * AppCodeCompiler.cs: yet another method of detecting if we have a
1244 * BaseCompiler.cs: as above
1246 * AspComponentFoundry.cs: implemented delayed loading of control
1247 assemblies. Fixes bug #81058.
1249 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1251 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
1252 then use it instead of the default ASP namespace. Fixes part of bug
1255 2007-04-19 Marek Habersack <mhabersack@novell.com>
1257 * BaseCompiler.cs: don't look at the number of profile properties
1258 when deciding if we have a custom profile. It is possible to have
1259 a profile that just inherits from a base class and does not list
1260 any custom properties. Fixes bug #81396.
1262 * AppCodeCompiler.cs: as above
1264 2007-04-15 Marek Habersack <mhabersack@novell.com>
1266 * AppCodeCompiler.cs: properly convert physical file path to
1267 virtual path for build providers.
1268 Make sure there's actually anything to compile.
1270 2007-04-11 Marek Habersack <mhabersack@novell.com>
1272 * AppCodeCompiler.cs: move custom profile type check till after
1273 the App_Code compilation is done. That way we can have custom
1274 profile providers in there. Fixes bug #81307.
1276 2007-04-10 Marek Habersack <mhabersack@novell.com>
1278 * AppResourceFilesCollection.cs: watch App_LocalResources for
1281 2007-04-06 Marek Habersack <mhabersack@novell.com>
1283 * BaseCompiler.cs: display the source of the file in which the
1284 error actually happened if the file exists, or the unit
1287 2007-04-03 Marek Habersack <mhabersack@novell.com>
1289 * AppResourcesCompiler.cs: global resources are put in the
1290 "Resources." namespace while local ones are not. Fixes bug #81174
1291 which was reopened after r75261.
1293 2007-03-26 Marek Habersack <mhabersack@novell.com>
1295 * TemplateControlCompiler.cs: refactor assining properties from
1296 resources a bit to support pages and user controls. Fixes bug
1298 Process meta:resourcekey after all the field/attribute assignments
1299 are done. Fixes bug #80809.
1300 Clean the code up a bit.
1301 Use GetExpressionFromString to generate a correct expression for
1302 custom page/control attributes. Fixes bug #81132.
1304 2007-03-21 Marek Habersack <mhabersack@novell.com>
1306 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1307 AssignAppRelativeVirtualPath if the attribute was defined.
1309 * TemplateControlCompiler.cs: added support for setting custom
1310 attributes of a base class from the Page or Control directive
1313 2007-03-20 Marek Habersack <mhabersack@novell.com>
1315 * ResourceExpressionBuilder.cs: if the resource class key is null
1316 or empty, call GetLocalResourceObject, if not,
1317 GetGlobalResourceObject. Fixes bug #81174.
1319 2007-03-16 Marek Habersack <mhabersack@novell.com>
1321 * AppCodeCompiler.cs: produce message that makes more sense.
1323 2007-03-15 Marek Habersack <mhabersack@novell.com>
1325 * AppResourcesCompiler.cs: handle global resource keys with dots
1326 the way MS.NET does. All the dots are replaced with underscores
1327 when generating the stronly-typed property.
1329 2007-03-14 Marek Habersack <mhabersack@novell.com>
1331 * AppResourcesCompiler.cs: Fix a bug with global resources file
1332 grouping where no translated resources were processed due to base
1335 * TemplateControlCompiler.cs: hadle situations when there exist a
1336 control in the page with id matching the name of a field/property
1337 in the parent class. In this case we use 'protected new' to
1338 override the parent.
1340 2007-03-13 Marek Habersack <mhabersack@novell.com>
1342 * AspParser.cs: fix an off-by-one parsing bug with server-side
1345 * PageThemeCompiler.cs: let property builders through, stop the
1346 builders that have no control type. Fixes bug #81092
1348 * PageCompiler.cs: interfaces are to be implemented by the parent
1349 partial class, not the generated one.
1351 * AppResourceFilesCollection.cs: added separate constructor for
1352 local resources handling.
1354 * TemplateControlCompiler.cs: request the local resource object
1355 with proper virtual path.
1356 Put field declarations for controls in the partial class.
1357 Make sure builders are in valid state before trying to use them.
1359 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1360 property in the page/control constructor.
1361 Change the generated code model for pages/controls to comply with
1362 the way MS.NET does (partial class contains only two properties
1363 plus declarations of all the controls, the actual control/page
1364 class inherits from the partial class). Fixes bug #81001.
1366 * AppResourcesCompiler.cs: does not require specifying manually
1367 whether it's a global or local resource compiler anymore. New
1368 constructors take care of that.
1369 Changed to compile local resources on demand, when a control/page
1372 2007-03-12 Marek Habersack <mhabersack@novell.com>
1374 * AspParser.cs: revert r73587 as it breaks more than it fixes.
1376 * AspComponentFoundry.cs: try to register foundries from App_Code
1377 assemblies if tag prefix and its namespace are defined. Fixes bug
1380 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1381 of Assembly instances, not strings.
1383 * CachingCompiler.cs: make sure items in the CodeAssemblies and
1384 TopLevelAssemblies are really instances of the Assembly class
1385 before trying to use them.
1386 CodeAssemblies is a collection of Assembly instances, not
1389 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1390 assemblies, not paths to assemblies.
1392 2007-03-10 Marek Habersack <mhabersack@novell.com>
1394 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1395 CreateProfileProperty and InternalCreatePageProperty to
1396 BaseCompiler from PageCompiler.
1398 * GlobalAsaxCompiler.cs: generate the Profile property for the
1401 2007-03-09 Marek Habersack <mhabersack@novell.com>
1403 * AppCodeCompiler.cs: Add the GetProfile method to the
1404 ProfileCommon auto-generated class.
1406 * AppResourcesCompiler.cs: attempt to load the resource file
1407 earlier in the process, to gracefully handle empty files.
1409 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1410 .skin and .css files composing the theme.
1412 2007-03-05 Marek Habersack <mhabersack@novell.com>
1414 * PageThemeCompiler.cs: Use correct theme path for
1415 AppRelativeTemplateSourceDirectory.
1416 Do not process builders of type CodeRenderBuilder.
1417 Make sure builder.ControlType is not null before depending on it.
1419 * ThemeDirectoryCompiler.cs: theme parser should be passed the
1420 virtual directory of the theme.
1422 2007-03-03 Marek Habersack <mhabersack@novell.com>
1424 * PageCompiler.cs: Added support for setting the
1425 MaintainScrollPositionOnPostBack property if the corresponding
1426 page directive attribute is found.
1428 * Directive.cs: added the MaintainScrollPositionOnPostBack and
1429 LinePragmas directives.
1431 2007-03-02 Marek Habersack <grendello@gmail.com>
1433 * AppCodeCompiler.cs: Correctly process App_Code directories which
1434 have no compilable files in the top-level directory. Fixes bug
1436 Write preservation files for the App_Code assemblies.
1438 2007-03-01 Marek Habersack <grendello@gmail.com>
1440 * AspParser.cs: fix GetVerbatim for cases when the end is
1441 e.g. --> or --%> and the string matched is ---> or ---%>
1442 respectively. The new code always backs out to make sure the end is
1445 2007-02-27 Marek Habersack <grendello@gmail.com>
1447 * TemplateControlCompiler.cs: ParseExpression returns an object,
1448 don't assume any concrete type.
1449 Use the current culture when converting the expression to a
1452 * ConnectionStringsExpressionBuilder.cs: Implement support for
1453 expressions of the <%$ ConnectionStrings:StringName %> form
1455 2007-02-19 Marek Habersack <grendello@gmail.com>
1457 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1459 2007-02-16 Marek Habersack <grendello@gmail.com>
1461 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1462 is referenced twice by the compiler(s).
1464 * TemplateControlCompiler.cs: Fix the problem with cultures which
1465 have a comma as their decimal separator and font/whatever
1466 units. New code does not reparse the text representation of the
1467 unit on the runtime (e.g. 0.9em) but instead it constructs the
1468 property using the FontUnit/Unit constructors which take,
1469 respectively, Unit and double/unittype parameters. This avoids
1470 culture-specific parsing.
1471 Also fix converting from invariant strings in a culture-aware
1472 environment (e.g. in a page that uses Culture="auto") during the
1475 2007-02-12 Marek Habersack <grendello@gmail.com>
1477 * PreservationFile.cs: Support preservation (assembly mapping)
1478 files (the ones with .compiled extension in the ASP.NET temporary
1479 directory). This one implements a loader/saver class.
1481 * AppResourcesCompiler.cs: support for assembly name mapping.
1483 * AppCodeCompiler.cs: support for assembly name mapping.
1485 2007-02-08 Marek Habersack <grendello@gmail.com>
1487 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1489 * AspComponentFoundry.cs: Avoid duplicate control registration
1492 * ResourceExpressionBuilder.cs: Make sure all the global resources
1493 are looked up using the "Resources." prefix.
1495 * AppResourcesCompiler.cs: Make sure all the global resources are
1496 embedded with the "Resources." prefix.
1498 2007-02-02 Marek Habersack <grendello@gmail.com>
1500 * AspGenerator.cs: Move the cache insert code to a separate method, for
1501 use from other places.
1503 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1504 defer their compilation to the moment when they are actually requested.
1506 2007-01-22 Marek Habersack <grendello@gmail.com>
1508 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1510 2007-01-20 Miguel de Icaza <miguel@novell.com>
1512 * ClientBuildManager.cs: Remove unused variable (this could be a
1513 real problem, we never use the appPhysicalTargetDir)
1515 * AssemblyBuilder.cs: Remove unused field.
1517 * AppResourceFilesCollection.cs: Remove unused field.
1519 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1522 * AppResourcesCompiler.cs: Remove unused variable.
1524 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1527 * PageCompiler.cs: Put InternalCreatePageProperty inside the
1528 NET_2_0 block to eliminate warnings.
1530 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
1532 * BaseCompiler.cs: Fixed build on 1.0 profile.
1534 2007-01-20 Marek Habersack <grendello@gmail.com>
1536 * BaseCompiler.cs: If the control base type is in the root
1537 namespace, make sure global:: is prepended to it.
1539 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1540 mark it as such in the generated code as well.
1542 * AppCodeCompiler.cs: Include debug information if configured in
1543 web.config. Fixes bug #80096.
1545 2007-01-17 Marek Habersack <grendello@gmail.com>
1547 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1548 App_GlobalResources) when compiling App_Code sources.
1550 * CachingCompiler.cs: Reference toplevel assemblies when compiling
1553 * AppResourcesCompiler.cs: Close the streams properly.
1555 * AspGenerator.cs: Don't ignore thead/tbody anymore.
1557 2007-01-15 Marek Habersack <grendello@gmail.com>
1559 * WsdlBuildProvider.cs: New build provider for WSDL files.
1560 Compile only when System.Web.Services are present.
1562 * TemplateControlCompiler.cs: Forgotten in the previous commit -
1563 don't pass the current culture to GetLocalResourceObject, let the
1564 method figure it out on its own.
1566 2007-01-05 Marek Habersack <grendello@gmail.com>
1568 * AppResourceFilesCollection.cs: new class to keep and manage
1569 collection of resource files for the App_{Global,Local}Resources
1572 * TemplateControlCompiler.cs: rely on
1573 HttpContext.GetLocalResourceObject to select the correct culture.
1575 * AppResourceFileInfo.cs: new class for keeping resource files
1578 * AppResourcesCompiler.cs: new implementation.
1580 2006-12-20 Marek Habersack <grendello@gmail.com>
1582 * AssemblyBuilder.cs: add an internal version of the
1583 AddCodeCompileUnit method.
1585 * AppCodeCompiler.cs: implement support for ProfileCommon
1586 generation from properties named in the <profile> element in
1589 * PageCompiler.cs: create the Profile property in 2.0 code.
1591 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
1593 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1595 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1597 * ThemeDirectoryCompiler.cs: refactoring.
1599 2006-11-28 Marek Habersack <grendello@gmail.com>
1601 * BuildManager.cs: Add an internal property to signal whether or
1602 not we have any resources from App_{Global,Local}Resources
1604 * AspGenerator.cs: Register controls from
1605 system.web/pages/controls collection before parsing.
1607 * AppResourcesCompiler.cs: Let the build process know if we have
1608 compiled any resources from App_{Global,Local}Resources
1610 2006-11-27 Marek Habersack <grendello@gmail.com>
1612 * CachingCompiler.cs: Automatically reference App_Code
1615 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1618 2006-11-25 Marek Habersack <grendello@gmail.com>
1620 * AppResourcesCompiler.cs: small optimizations.
1622 * AppResourceFilesCompiler.cs: small optimizations.
1624 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1626 * WebServiceCompiler.cs: add the type to the cache after getting it
1627 from the compiled assembly.
1629 2006-11-20 Marek Habersack <grendello@gmail.com>
1631 * AppCodeCompiler.cs: Reference assemblies listed in
1632 system.web/compilation/assemblies.
1633 Don't create empty assemblies.
1635 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1637 * TemplateControlCompiler.cs: fixed:
1638 When <%# Bind(...) %>-expression is used more then once for same control
1639 The variable associated with this control is declared only once.
1641 2006-11-18 Marek Habersack <grendello@gmail.com>
1643 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
1644 files with names like File.resources or File.resx are found in the
1645 resource directories.
1647 2006-11-16 Marek Habersack <grendello@gmail.com>
1649 * ForceCopyBuildProvider.cs: Added the build provider for
1652 * MasterPageBuildProvider.cs: Added the build provider for Master
1655 * IgnoreFileBuildProvider.cs: Make the class sealed.
1657 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
1658 correctly uses the BuildProviderCollection to retrieve the
1659 appropriate builder and maps the physical input file path into
1660 application relative path when setting the virtual path of the
1663 2006-11-13 Marek Habersack <grendello@gmail.com>
1665 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
1666 constructor with just the CodeDomProvider argument. CreateCodeFile
1667 now uses the code provider's file extension. Added internal method
1668 to add pre-generated source code files. Added a BuildAssembly
1669 overload that takes no virtual path as the
1670 parameter. BuildAssembly now uses an array of source files instead
1671 of compile units and also handles embedded resources and
1672 referenced assemblies. BuildAssembly deletes the temporary files
1673 if MONO_ASPNET_NODELET isn't set in the environment.
1675 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
1676 creation. Use the build providers collection to build unknown
1677 files in App_Code. Use AssemblyBuilder to compile the assembly.
1679 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1680 temporary file creation.
1682 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1685 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1688 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1691 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1694 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1697 2006-11-08 Marek Habersack <grendello@gmail.com>
1699 * BuildProvider.cs: Implemented the GetCustomString
1700 method. Removed the necessity to retrieve the CompilationSection
1701 twice when GetDefaultCompilerType is called.
1703 * AppResourcesCompiler.cs: Added resource compiler results
1706 * AppCodeCompiler.cs: The App_Code compiler classes
1708 * BuildManager.cs: Implement the CodeAssemblies property.
1709 Added an internal TopLevelTypes property to be used in the custom
1710 GetType methods. Implemented the GetCompiledCustomString method.
1711 Implemented the GetType method overloads. Implemented the
1712 GetVirtualPathDependencies method.
1714 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1716 2006-10-18 Marek Habersack <grendello@gmail.com>
1718 * TemplateControlCompiler.cs: add support for resource
1719 expressions in tag attributes.
1721 * ResourceExpressionBuilder.cs: add support for resource
1722 expressions in tag attributes.
1724 * BaseCompiler.cs: add global/local resource assemblies to
1725 compilation references, if present.
1727 * AppResourcesCompiler.cs: global/local resources compiler.
1729 * AppResourceFilesCompiler.cs: compiler of resource files.
1731 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1733 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1734 At run time, the Bind method calls the Eval method, if there is DataItem
1736 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
1737 method don't raise exception and works properly to extract data from
1738 bounded controls on postback.
1740 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1742 * AspGenerator.cs: if we are tracking non-server tags for
1743 well-formedness, handle tags that do not need to be closed (br, img,...)
1746 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1748 * PageCompiler.cs: support the EnableEventValidation attribute.
1750 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1752 * AspGenerator.cs: after parsing an include file, don't error out if we
1753 still have opened tags unless this was the last file to parse. Fixes
1756 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
1758 * ParseException.cs: Ensure the source file stream is closed.
1760 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1762 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1763 * ConnectionStringsExpressionBuilder.cs: Use name reference
1765 * ResourceExpressionBuilder.cs: Use assembly name constants.
1767 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1769 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1771 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1773 * ClientBuildManager.cs: handle domain shutdown and unload.
1774 Implemented some properties. Commented.
1776 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
1778 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
1780 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1782 * added ThemeDirectoryCompiler.jvm.cs
1784 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1786 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
1787 the property Items does not exist. Patch by Marek Habersack that fixes
1790 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1792 * TemplateControlCompiler.cs: support assigning nullable types.
1793 Patch by Marek Habersack that fixes bug #78970.
1795 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1797 * TemplateControlCompiler.cs: make password work again.
1799 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
1801 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1802 MS.NET handles nested quotes differently for server controls and
1803 for "normal" controls. Add a property "AlternatingQuotes" to the
1804 tokenizer and let the parser decide whether it is well-formed or not.
1806 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
1808 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
1809 UrlPropertyAttribute.
1811 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
1813 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
1814 generating code for assignment statement and DataBind event.
1816 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
1818 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1819 Don't allow an attribute value to contain the same quote characters
1820 as the ones used for delimiting the value itself. Add a token
1821 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
1823 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
1825 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
1827 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
1829 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
1831 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
1833 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
1834 array of style sheets from the parser
1835 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
1836 put them in LinkedStyleSheets of PageThemeParser
1838 2006-04-20 Chris Toshok <toshok@ximian.com>
1840 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
1841 names in the case where you use "NS.ClassName" in the Inherits
1842 attribute. Fixes bug #78135.
1844 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
1847 already acquired the lock even when we might have not created the 'key'
1848 to the compilation ticket.
1850 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
1852 * ThemeDirectoryCompiler.cs: add to the directory parser all the
1853 assemblies found by PageThemeFileParsers
1855 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
1857 * TemplateControlCompiler.cs: Properly read all content of
1860 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1862 * TemplateControlCompiler.cs : fix for partial parsers
1864 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1866 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
1869 2006-04-08 Miguel de Icaza <miguel@novell.com>
1871 * TemplateControlCompiler.cs: An attempt to fix the regression
1872 introduced in r58505 (a bug fix for 77762). This was reported in
1873 the mailing list with a batch of new 2.0 failures.
1875 We really need a test suite in NUnit to check on ASP.NET aspx
1878 2006-03-27 Robert Jordan <robertj@gmx.net>
1880 * CachingCompiler.cs: change the compilation locking scheme
1881 from "one mcs per process" to "one mcs per file".
1883 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1885 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
1886 StringPropertyBuilder.
1888 2006-03-24 Chris Toshok <toshok@ximian.com>
1890 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
1891 if system.web/compilation doesn't list a compiler for our
1894 2006-03-13 Chris Toshok <toshok@ximian.com>
1896 * TemplateControlCompiler.cs (InitMethod): when generating the
1897 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
1898 argument to it. Only do that if the class we're compiling is
1899 actually a subclass of Page. If it's not, pass this.Page.
1901 2006-03-07 Chris Toshok <toshok@ximian.com>
1903 * AspGenerator.cs: refactor the parsing code so that we can
1904 initiate parsing from outside this class.
1906 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
1907 method, add our StyleSheetTheme assignment here.
1908 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
1911 * TemplateControlCompiler.cs (EnsureID): make protected.
1912 (CreateAssignStatementsFromAttributes): same
1913 (AddChildCall): same.
1914 (CreateControlTree): same.
1915 (CreateFrameworkInitializeMethod): change
1916 "AddStatementsToFrameworkInitialize" to
1917 "AppendStatementsToFrameworkInitialize", and add call to
1918 "PrependStatementsToFrameworkInitialize" before the generation of
1919 "base.FrameworkInitialize()."
1921 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
1923 2006-03-07 Chris Toshok <toshok@ximian.com>
1925 * ThemeDirectoryCompiler.cs: new file.
1927 * PageThemeCompiler.cs: new file.
1929 2006-03-07 Chris Toshok <toshok@ximian.com>
1931 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
1932 (Init): move the CreateMethods call here.
1934 2006-03-02 Chris Toshok <toshok@ximian.com>
1936 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
1937 SkinID just after the creation of our object, and right after that
1938 call "_ctrl.ApplyStyleSheetSkin (page)".
1939 (CreateAssignStatementsFromAttributes): split out the majority of
1940 this code to CreateAssignStatementFromAttribute, and change this
1941 method to simply a loop over the attribute keys. In the 2.0 case,
1942 skip the SkinID property, since that's handled explicitly in
1945 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
1946 for Theme and StyleSheetTheme.
1948 2006-02-23 Chris Toshok <toshok@ximian.com>
1950 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
1951 change from ContentControlBuilderInternal to
1952 ContentBuilderInternal.
1953 (AddCodeRender): same.
1955 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1957 * AssemblyBuilder.cs:
1958 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
1959 GetGeneratedType() on the BuildProvider instead of loading the assembly
1960 and trying a wild guess at the type name.
1962 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1964 * GlobalAsaxCompiler.cs:
1966 * TemplateControlCompiler.cs: CreateMethods is now internal.
1968 * WebServiceBuildProvider.cs:
1969 * PageBuildProvider.cs:
1970 * UserControlBuildProvider.cs:
1971 * WebHandlerBuildProvider.cs: new build providers.
1973 * BuildProvider.cs: add assemblies.
1975 * BaseCompiler.cs: expose the provider and the compile unit through
1978 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1980 * CompilerType.cs: implemented.
1982 * AssemblyBuilder.cs: implemented most of it.
1984 * WebServiceCompiler.cs:
1985 * CachingCompiler.cs: update 2.0 compiler instance creation code.
1987 * ClientBuildManager.cs: implemented some of its methods. Not yet
1990 * BuildManager.cs: the more interesting methods are implemented now.
1992 * BaseCompiler.cs: delete the temporary files in case of error.
1994 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
1996 2006-02-07 Chris Toshok <toshok@ximian.com>
1998 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
1999 calls to AddParsedSubObject to a special statement collection --
2000 builder.flushOutputStatements -- not to builder.method.Statements.
2001 (InitMethod): initially, set flushOutputStatements to
2002 method.Statements. If we're dealing with a ContentPlaceHolder,
2003 set flushOutputStatements to be the else block of a conditional we
2004 create. This causes the compiled control to fall back to the
2005 ContentPlaceHolder's child controls in case there's no
2006 corresponding Content template.
2007 (AddChildCall): use methodStatements instead of method.Statements.
2008 (CreateControlTree): same.
2010 * PageCompiler.cs (CreatePropertyAssign): factor out the
2011 string,string implementation and add one that also takes a
2012 CodeExpression; make the string,string implementation call the
2013 three arg one with thisRef.
2014 (AddStatementsToInitMethod): make use of the 3-arg form of
2015 CreatePropertyAssign to reduce code. Also, add support for
2016 setting the page's Title from the parser's Title.
2018 2006-02-07 Chris Toshok <toshok@ximian.com>
2020 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
2021 assign __ctrl.MasterPageFile to our master page, if we have one.
2023 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
2024 assignment from here.
2025 (AddStatementsToInitMethod): and move it here.
2027 * TemplateControlCompiler.cs (InitMethod): in the case where
2028 builder is a RootBuilder (we're building the __BuildControlTree
2029 method), call a virtual method so that subclasses can add their
2030 own statements to the method (used by both Page and MasterPage);
2031 Also, in the RootBuilder case, the argument should be the
2032 parser.ClassName type (the class we're building); lastly, expand
2033 the ContentPlaceHolder logic to include all the
2034 ContentTemplates/InstantiateIn magic.
2035 (AddStatementsToInitMethod): empty virtual method.
2036 (AddContentTemplateInvocation): ContentControlBuilder ->
2037 ContentControlBuilderInternal.
2038 (CreateControlTree): same.
2039 (CallBaseFrameworkInitialize): new function, create call to
2040 base.FrameworkInitialize.
2041 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
2043 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2045 * IgnoreFileBuildProvider.cs: it's not public.
2046 * BuildProvider.cs: mostly implemented.
2048 2006-02-01 Chris Toshok <toshok@ximian.com>
2050 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
2051 GetSection instead of GetWebApplicationSection.
2053 * CachingCompiler.cs: same.
2055 * AspGenerator.cs: same.
2057 * BaseCompiler.cs: same.
2059 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2061 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
2063 2006-01-22 Chris Toshok <toshok@ximian.com>
2065 * IgnoreFileBuildProvider.cs: build provider which does nothing.
2067 2006-01-22 Chris Toshok <toshok@ximian.com>
2069 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
2070 Hashtable ctor to silence a couple of warning.
2071 (CompoundFoundry.ctor): same
2073 * Directive.cs (InitHash): use a 2.0 friendly form of the
2074 Hashtable ctor to silence a couple of warning.
2076 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
2077 Hashtable ctor to silence a warning.
2078 (GetDictionary): same.
2080 2006-01-22 Chris Toshok <toshok@ximian.com>
2082 * AppSettingsExpressionBuilder.cs: implement this, patterning it
2083 after an example on msdn. Also, enable the ExpressionEditor
2084 attribute, but use the string rather than the Type overload so we
2085 won't have yet another circular dep.
2087 * ConnectionStringsExpressionBuilder.cs: partial implementation.
2088 Same deal with the ExpressionEditor attribute.
2090 * ResourceExpressionBuilder.cs: same deal with the
2091 ExpressionEditor attribute.
2093 2006-01-20 Chris Toshok <toshok@ximian.com>
2095 * ResourceExpressionBuilder.cs (ParseExpression): implement.
2097 * ResourceExpressionFields.cs: implement.
2099 2006-01-20 Chris Toshok <toshok@ximian.com>
2101 * ClientBuildManagerParameter.cs: implement.
2103 * ClientBuildManagerCallback.cs: this class contains an empty
2104 default implementation.
2106 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2108 * AspGenerator.cs: add support for 'src' in <script runat="server">.
2111 2006-01-04 Chris Toshok <toshok@ximian.com>
2113 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
2116 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
2118 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2120 * AspGenerator.cs: fix yesterday's fix.
2122 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2124 * AspGenerator.cs: only do special processing for <script> if it has
2125 the runat="server" attribute. Fixes bug #76918.
2127 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2129 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
2132 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2134 * TemplateControlCompiler.cs: handle data bound attributes for html
2135 controls. Fixes bug #76785.
2137 2005-11-28 Chris Toshok <toshok@ximian.com>
2139 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
2141 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
2143 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2145 * WebServiceCompiler.cs: fixed caching for web handlers.
2147 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149 * AspParser.cs: don't change case for verbatim IDs.
2152 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154 * AspParser.cs: when processing verbatim input, throw if we reach EOF
2155 before the expected end of the data.
2157 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159 * CachingCompiler.cs:
2160 * WebServiceCompiler.cs: when caching a type loaded from an assembly
2161 that we didn't compile, make it depend on the file itself, not on a
2162 non-existing cache key. This problem affected performance of web
2163 services and .ashx, making unnecessary extra calls to LoadFrom every
2164 time the cache was cleared.
2166 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2168 * BaseCompiler.cs: set the domain's DynamicBase property instead of
2169 guessing it in BaseCompiler.
2171 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2173 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
2174 75146 for pages/controls.
2176 2005-08-09 Miguel de Icaza <miguel@novell.com>
2178 * WebServiceCompiler.cs: Use the new DynamicDir method.
2180 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
2181 since this value is null most of the time, compute the real value.
2183 Added Bonus: if the directory has some kind of permission problem,
2184 try a different directory name.
2186 2005-07-13 Miguel de Icaza <miguel@novell.com>
2188 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
2189 BaseParser.Context for the context.
2191 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2195 * TemplateControlCompiler.cs: use invariant culture versions of starts/
2198 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2200 * TemplateControlCompiler.cs: comparison between member name and the
2201 first part of the id provided by the user should also be
2202 case-insensitive. Fixes bug #75379.
2204 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2206 * CachingCompiler.cs: use cache.InsertPrivate.
2207 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
2210 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2212 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2213 as all the others, when compiling an assembly from a Src file. Fixes
2216 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2218 * TemplateControlCompiler.cs: if the property is not found, don't forget
2219 about trying the field.
2221 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
2223 * Directive.cs: Register the MasterType directive.
2224 * PageCompiler.cs: If a MasterType is specified, add a type specific
2225 Master property. All this fixes bug #75192.
2227 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2229 * TemplateControlCompiler.cs: when mapping an attribute name to a field
2230 or property name, there's no need to try with every property and field,
2231 but just the one found when searching by name (no case). There was one
2232 call to ProcessPropertiesAndFields per property or field until found,
2233 now only one if the property/field is found, none otherwise.
2235 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2237 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2238 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2241 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2243 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
2244 the assembly file there and be able to load it. Thanks to Rogerio and
2247 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2249 * AspParser.cs: InvariantCulture love.
2251 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2253 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2254 as the one in Master is protected. Fixes bug #75157.
2256 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2258 * AspComponentFoundry.cs: tagnames have precedence over types in
2259 assemblies when they use the same prefix. Fixes bug #71855.
2261 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
2263 * WebServiceCompiler.cs: Create the temp directory before
2264 creating the web service source code file.
2266 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2268 * AspGenerator.cs: when checking languages, try to match other aliases
2269 too (ie, 'cs' == 'c#').
2271 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2273 * BaseCompiler.cs: check that DynamicBase directory exists before
2274 creating the TempFileCollection.
2276 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2278 * AspGenerator.cs: use a stack for non-server tags even before getting
2279 to a form. Fixes bug #70274.
2281 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2283 * AspParser.cs: don't error out on ill formed tags if it's not a server
2284 tag (ie, allow something like '<table align="left cellpadding="0">' to
2285 work, as MS does. Fixes bug #67909.
2287 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
2288 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
2289 @Page/@Control directives to CodeDOM (VB.NET support)
2291 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
2293 * AspParser.cs: Fixed parsing of data binding tags in server
2294 tag attributes. Allow <%...%> blocks not assigned to
2295 attributes in client tags.
2296 * TagAttributes.cs: Make sure that data binding blocks in server
2297 tags are always assigned to attributes.
2299 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
2301 * TemplateControlCompiler.cs: Implemented support for two-way
2304 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
2306 * TemplateControlCompiler.cs: Use the new BindingContainerType
2307 property to find the type of the binding container.
2309 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
2311 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
2312 for primitive types. Parse an empty color string as Color.Empty.
2313 Get the converter for a property using its PropertyDescriptor.
2315 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
2317 * TemplateControlCompiler.cs: Don't autogenerate IDs for
2318 controls inside Content template.
2320 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2322 * TemplateControlCompiler.cs: make typedesc.aspx work again.
2324 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2326 * ExpressionBuilderContext.cs:
2327 * ExpressionBuilder.cs: implemented.
2329 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2331 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2333 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
2335 * TemplateControlCompiler.cs: When generating a property value,
2336 check for TypeConverterAttribute in the PropertyInfo, not only in the
2338 Implemented code generation using InstanceDescriptor, when the type
2339 converter supports conversion to that type.
2341 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
2343 * Directive.cs: Added MASTER directive.
2344 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2345 * PageCompiler.cs: Set the master file name when generating the page.
2346 * TemplateControlCompiler.cs: When generating the method for a
2347 content holder, register the content holder in the base MasterPage.
2348 Added method for registering a Content control for a MasterPage.
2349 Generate code for Content controls.
2351 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
2353 * TemplateControlCompiler.cs: Get the container type from the
2354 template (if it was defined using TemplateContainerAttribute.
2356 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2358 * AspGenerator.cs: correctly process script tags that self-closing.
2361 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2363 * CachingCompiler.cs: when compiling a single .cs file, add the file
2364 itself to dependencies. Fixes bug #68788.
2366 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2368 * ControlBuilder.cs: don't close server tags when we get to a closing
2369 tag that is not applied to a server control. Fixes bug #60323.
2371 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2373 * WebServiceCompiler.cs: fix buglet in my last commit.
2375 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2378 * CachingCompiler.cs:
2379 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2380 for ashx/asmx. Otherwise we need to open the file and check for the
2381 class name in there. Thanks to Ben for pointing this out.
2383 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2386 * AspTokenizer.cs: prevent quotes from being swallowed when we're
2387 inside a server tag and they are the next non-whitespace character.
2390 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2392 * CachingCompiler.cs: don't try to watch for changes in system
2393 assemblies. Fixes bug #64871.
2395 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2397 * AspGenerator.cs: handle builders that need to process inner text
2400 * Location.cs: added setters for the properties.
2402 2004-08-02 Duncan Mak <duncan@ximian.com>
2404 * BuildProviderResultFlags.cs:
2405 * IImplicitResourceProvider.cs:
2406 * ImplicitResourceKey.cs:
2407 * IResourceReader.cs: Added.
2409 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2411 * AspGenerator.cs: the path for file was treated as virtual, but it's
2412 physical. Fixes bug #61524.
2414 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2416 * AspParser.cs: fixed case-sensitivity issues with #include and its
2417 attributes. Closes #61429.
2419 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2422 * WebServiceCompiler.cs: really create the dlls under DynamicBase
2424 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2426 * TemplateControlCompiler.cs: for system colors, use SystemColors class
2427 instead of Color. Fixes bug #60249.
2429 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2431 * BaseCompiler.cs: try getting the Type from the cache before doing the
2432 real work. Remove temporary files right after successful compilation.
2434 * CachingCompiler.cs: added GetTypeFromCache.
2436 * UserControlCompiler.cs: nothing interesting.
2438 * WebServiceCompiler.cs: try getting the Type from the cache before
2439 doing anything else. Remove temp files on sucessful compilation.
2441 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2444 * CachingCompiler.cs: use a different prefix when caching compiler
2447 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2449 * BaseCompiler.cs: dynamicBase is now protected. Check
2450 MONO_ASPNET_NODELETE here.
2452 * TemplateControlCompiler.cs: if the type is not known but has a
2453 TypeConverter, invoke ConvertFromString in the generated code.
2455 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2456 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2458 * CachingCompiler.cs: updated compilation of web services and simple
2461 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2463 * CSCompiler.cs: removed.
2465 * CachingCompiler.cs: language independent compilation for single files.
2467 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2471 * CachingCompiler.cs: use HttpRuntime.Cache.
2473 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2475 * PageCompiler.cs: fixed Trace and add support for Buffer.
2477 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2479 * PageCompiler.cs: override CreateConstructor to add assignment for
2482 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2484 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2485 of CodeObjectCreateExpression for the render method delegate. Thanks
2488 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2490 * BaseCompiler.cs: use DynamicBase for the output assemblies.
2492 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2494 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2496 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2498 * AspParser.cs: indent a few lines.
2499 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2500 attribute value. This way we can simulate reading 2 characters ahead
2501 (one in ungetc and the other in Peek) and work with values like
2502 text/javascript. Fixes bug #57302.
2504 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2506 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2508 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
2510 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2512 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2514 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2516 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2518 * AspGenerator.cs: error out when <object> server tag is not closed.
2519 Ignore any content inside it.
2521 2004-02-10 Jackson Harper <jackson@ximian.com>
2523 * AspTokenizer.cs: Collect discarded characters that might be used
2524 in client side scripts. Patch by Liyu Liu.
2525 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2527 2004-02-10 Jackson Harper <jackson@ximian.com>
2529 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2532 2004-01-30 Jackson Harper <jackson@ximian.com>
2534 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2535 the build method takes strings not ints.
2537 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2539 * AspGenerator.cs: handle more possible errors in global.asax file.
2541 * BaseCompiler.cs: added utility methods for creating <object> related
2542 properties and fields.
2544 * GlobalAsaxCompiler.cs: keep around applications and session scope
2545 objects builders. Also a list of imports and assemblies added in
2548 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2550 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2552 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2553 pages more than once. Thanks to Eric Lindvall for pointing this out.
2555 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2557 * TemplateControlCompiler.cs: allow handling subproperties for other
2558 types than Style and Font. Fixes bug #53217.
2560 2004-01-16 Jackson Harper <jackson@ximian.com>
2562 * TagAttribute.cs: attributes can be stored as encoded html so we
2565 2004-01-14 Jackson Harper <jackson@ximian.com>
2567 * TemplateControlCompiler.cs: Is a user control is cached and
2568 shared use the controls type hashcode for the GUID so it will be
2569 the same across instances.
2571 2004-01-13 Jackson Harper <jackson@ximian.com>
2573 * TemplateControlCompiler.cs: If an item has the partial caching
2574 attribute build a PartialCachingControl in the parents __Build method.
2575 * BaseCompiler.cs: Add a method for adding class attributes to the
2577 * UserControlCompiler.cs: If caching is enabled on a user control
2578 add the PartialCachingAttribute to it.
2580 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2582 * PageCompiler.cs: invoke Request.ValidateInput if required.
2584 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2586 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2587 #52521. Patch by liyul@hotmail.com.
2589 2003-12-25 Jackson Harper <jackson@ximian.com>
2591 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2594 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2596 * PageCompiler.cs: assign the ErrorPage property if provided.
2598 2003-12-15 Jackson Harper <jackson@ximian.com>
2600 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2601 method if they are set.
2603 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2605 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
2606 fail when runat="server" is applied to <tbody> with a parse error
2607 instead of waiting for a compilation error. Fixes bug #52157.
2609 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2611 * AspGenerator.cs: basic checking of ID validity. Throw a
2612 ParseException when mixing languages.
2614 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2616 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2617 FrameworInitialize() if provided in @Page.
2621 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2623 * TemplateControlCompiler.cs: support for expressions of
2624 System.Drawing.Size type. Allow getting Color from comma separated
2625 numbers, which is not allowed by ColorConverter.
2627 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2629 2003-11-13 Jackson Harper <jackson@ximian.com>
2631 * PageCompiler.cs: Call InitOutputCache when the OutputCache
2634 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2636 * AspGenerator.cs: use fileEncoding from configuration files.
2638 * PageCompiler.cs: add assign statements for ContentType,
2639 ResponseEncoding and CodePage if supplied.
2641 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2643 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2644 a return statement for user controls with 'void' return type.
2646 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2648 * AspParser.cs: fixed bug #49627.
2650 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2652 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2654 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2656 * Directive.cs: new attribute for @Page directive in 1.1.
2658 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2661 * TagAttributes.cs: allow duplicated runat=server attributes and display
2662 error page when duplicated attributes and runat is specified.
2664 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2666 * AspTokenizer.cs: moved token numbers above unicode.
2668 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2670 * AspGenerator.cs: don't process code render tags inside scripts. Check
2671 the language of the script and treat javascript as verbatim input.
2674 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2676 * TemplateControlCompiler.cs: fixed bug #48212.
2678 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2680 * WebServiceCompiler.cs: remove the temporary files here too.
2682 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2684 * AspGenerator.cs: fixed bug #46429.
2686 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2688 * Directive.cs: support @WebHandler.
2690 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2692 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2694 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2696 * BaseCompiler.cs: first look for cached items, then generate the tree.
2697 This should speed things up.
2699 * CachingCompiler.cs: when compiling web services, use the full path of
2700 the .asmx file as key when caching.
2702 * WebServiceCompiler.cs: first look for cached items, then generate
2705 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2707 * AspParser.cs: more useful error information,
2710 * CachingCompiler.cs: honor the debug="true" option.
2712 * TemplateControlCompiler.cs: small fixes for templates.
2714 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2716 * BaseCompiler.cs: made Compiler property virtual.
2718 * CachingCompiler.cs: added support for compiling web services.
2720 * WebServiceCompiler.cs: implemented.
2722 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2724 * CachingCompiler.cs: fixed bug #43477.
2726 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2729 * AspTokenizer.cs: fixed bugs #43206 and #43371.
2731 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2733 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2734 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2737 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2739 * CompilationException.cs: don't add duplicated lines in the case that
2740 mcs reports several errors for the same one.
2742 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2744 * AspGenerator.cs: fully support including files, ie., treat them just
2745 as C treats #includes.
2747 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2751 * TagType.cs: Added support for server side includes.
2753 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2755 * CSCompiler.cs: actually add the list of referenced assemblies to the
2756 compiler options. Throw a CompilationException if there's an error.
2758 * CachingCompiler.cs: added a method to compile directly from a source
2761 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2763 * AspGenerator.cs: copy the location before setting the value for the
2766 * BaseCompiler.cs: changed parameters for CompilationException.
2768 * CompilationException.cs: it takes now line numbers and error
2769 descriptions from the CompilerErrorCollection.
2771 * Location.cs: used when a copy of an ILocation is needed.
2773 * ParseException.cs: implemented new methods to provide line numbers
2776 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
2778 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2780 * AspGenerator.cs: also support data bind syntax inside tags not
2781 processed as controls. Added debugging method.
2783 * TemplateControlCompiler.cs: reset the number of data binding handlers
2784 in the proper place. Small fix when getting the container type.
2786 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2788 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
2791 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2793 * AspGenerator.cs: handle code render syntax in tag attributes.
2795 * AspParser.cs: the constructor now takes a TextReader.
2797 * TemplateControlCompiler.cs: removed comment.
2799 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2801 * TemplateControlCompiler.cs: added support for data bound properties.
2803 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2805 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
2806 instead of their names.
2808 * AspElements.cs: removed. No longer needed.
2810 * AspGenerator.cs: this file is now in charge of interfacing between
2811 the parser and the compiler. It manages the creation of the
2812 ControlBuilder tree and the compilation of the CodeDOM tree.
2814 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
2815 of different Types, tags are just and id and a set of attributes.
2816 Implement ILocation interface.
2818 * AspTokenizer.cs: added a few methods to help the parser implementing
2821 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
2822 common to appliaction, page and user control, including the actual
2823 compilation and error handling.
2825 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
2827 * CachingCompiler.cs: simplified to use the new interfaces.
2829 * CompilationException.cs: it's now using CompilationResult to report
2832 * CompilationResult.cs: Removed file.
2834 * Directive.cs: to check for the validity of a directive.
2836 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
2839 * ILocation.cs: interface used to now the exact place where a parse
2842 * PageCompiler.cs: generates a couple of methods that are only used in
2845 * ParseException.cs: use the ILocation interface.
2847 * TagAttributes.cs: handles the attributes of the tags parsed.
2849 * TagType.cs: an enum for the different kinds of tags.
2851 * TemplateControlCompiler.cs: this is the one that does most of the
2852 conversion from teh ControlBuilder tree into a CodeDOM tree.
2854 * UserControlCompiler.cs: simplified as most of the work is done in
2857 * WebServiceCompiler.cs: dummy.
2859 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2861 * AspComponentFoundry.cs: added GetComponentType method.
2863 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2865 * AspTokenizer.cs: allow quotes inside server tags that are part of
2868 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
2871 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2873 * AspGenerator.cs: generate correct appbase path. It was working with
2874 mcs but not with csc.
2876 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
2878 * CachingCompiler.cs: quote source file.
2880 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2882 * AspGenerator.cs: now the Inherits attribute works as expected for
2885 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2887 * CompilationException.cs:
2888 * ParseException.cs: display the correct line number in error messages.
2890 * AspElements.cs: added TargetSchema attribute for control. It's
2893 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2895 * BaseCompiler.cs: fixed the hack to work under windows.
2896 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
2898 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2900 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
2902 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
2904 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
2905 app's private bin path
2907 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2911 * CachingCompiler.cs:
2912 * CompilationResult.cs:
2913 * GlobalAsaxCompiler.cs:
2915 * UserControlCompiler.cs: recompile the page if dependencies change.
2917 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2919 * AspGenerator.cs: corrected typo and wrong fix.
2921 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2923 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
2924 when used explicitly.
2926 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2928 * AspElements.cs: get the property Type for controls that use
2929 ParseChildren with a property name.
2931 * AspGenerator.cs: generate correct signature for the method that
2932 adds controls to the default property in ParseChildren.
2934 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2936 * AspGenerator.cs: rethrow exceptions that may come from parsing or
2937 compilation if a user control.
2939 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2941 * AspGenerator.cs: throw ParseException on parse
2944 * AspParser.cs: added Line and Column props.
2946 * CompilationException.cs: derives now from HtmlizedException.
2948 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
2950 * GlobalAsaxCompiler.cs:
2952 * UserControlCompiler.cs: pass the file name in the CompilationResult.
2954 * ParseException.cs: new exception.
2957 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2959 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
2962 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2964 * AspParser.cs: the parser fires events when it parses an element.
2966 * GlobalAsaxCompiler.cs:
2968 * UserControlCompiler.cs:
2969 * AspElements.cs: modified to use the new parser interface.
2971 * AspGenerator.cs: modified to use the new parser. Merge multiple text
2972 strings into one single LiteralControl.
2974 * AspTokenizer.cs: added Line and Column properties.
2976 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2978 * AspParser.cs: fixed bug #36929.
2980 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
2984 * CachingCompiler.cs: changes to work around spaces and
2985 directory-separators in the local filesystem.
2987 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2989 * AspGenerator.cs: make the generated file compile with csc after last
2992 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2994 * AspGenerator.cs: removed unused variable. Added support for
2995 properties/fields of type string [].
2997 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2999 * AspGenerator.cs: modified loading of the parent type now that
3000 Type.GetType is fixed.
3002 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3004 * AspGenerator.cs: cast to Control if the container does not implement
3007 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3009 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
3011 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3013 * AspElements.cs: attributes without value lacked a space afterwards.
3015 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3017 * AspGenerator.cs: functions for columns don't return anything. Fixed
3020 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3022 * AspGenerator.cs: add data bound controls to code render function.
3024 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3026 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
3027 controls. You can register 1 assembly plus any number of user controls
3028 under the same prefix.
3030 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
3031 Hack to allow @Register access to assemblies in other places than bin
3034 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3036 * AspElements.cs: added 'codebehind' attribute for page, control and
3037 application. It's ignored by MS, but allowed. Fixed typo.
3039 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3041 * AspGenerator.cs: fixed EnableSesssionState handling.
3043 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3045 * AspGenerator.cs: don't generate instance fields for pages/controls
3046 when the base class specified in the Inherits attribute already has
3047 them. Closes bug #36262.
3049 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3051 * AspGenerator.cs: generate code like 'control.XXX = value' also for
3052 public fields (properties were being handled in that way too).
3054 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3056 * AspGenerator.cs: now it uses the current HttpContext when creating
3057 user controls. TemplateSourceDirectory is no longer a dummy value.
3059 * GlobalAsaxCompiler.cs:
3061 * UserControlCompiler.cs: set the context which will be used to locate
3064 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3066 * AspGenerator.cs: added support for AutoEventWireup attribute in
3069 * CompilationResult.cs:
3070 * GlobalAsaxCompiler.cs:
3072 * UserControlCompiler.cs: store the options.
3074 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3076 * AspElements.cs: new method Tag.GetElements
3077 used to parse the inner contents of a tag looking for data binding or
3080 New property HtmlControlTag.ParseChildren allows
3081 differentiation of a couple of HtmlControls that has children as
3082 properties (namely HtmlTable and HtmlTableRow).
3084 * AspGenerator.cs: fixed container semantics to
3085 match BindingContainer one. Implemented Inherits attribute for page and
3088 Support HtmlControls that has ChildrenAsProperties.
3090 Generate code for data binding functions that matches the semantic of
3093 Handle data bound and code render attribute values.
3095 Set proper value return for TemplateSourceDirectory. Should be relative
3098 * BaseCompiler.cs: moved CompilerOptions and
3099 References handling here.
3101 * CachingCompiler.cs: copy result of compilation.
3103 * CompilationException.cs: simple ToString () implementation.
3105 * CompilationResult.cs: implemented CopyFrom and ToString.
3107 * GlobalAsaxCompiler.cs:
3109 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
3110 in the base class. Get all the types in the generated assembly and
3111 look for one that derives from the correct Type.
3113 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3115 * AspElements.cs: added @Application directive.
3117 * AspGenerator.cs: make it work also with application files. We
3118 currently generate an extra private function.
3120 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3122 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
3123 exists, it will be compiled into an HttpApplication derived class
3124 (directly or through a user-provided class).
3126 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3128 * AspGenerator.cs: fixed target file name and generated class name.
3129 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
3131 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3133 * AspGenerator.cs: reworked user control
3134 compilation. Provide the options as a Hashtable for use in compilation.
3135 Create the user controls in the private bin path of the domain.
3137 * BaseCompiler.cs: base class for the various compiler types.
3139 * CachingCompiler.cs: actually executes mcs and do some poor caching
3140 (it will use Cache when finished).
3142 * CompilationException.cs: this exception has enough information to
3143 generate a nice error page.
3144 * CompilationResult.cs: used in caching.
3146 * PageCompiler.cs: now derives from BaseCompiler
3148 * TemplateFactory.cs: no longer needed.
3150 * UserControlCompiler.cs: new class used when compiling user controls.
3151 * WebServiceCompiler.cs: derives from BaseCompiler.
3153 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3155 * AspElements.cs: added ServerComment class.
3156 * AspParser.cs: ignore ServerComments tags. Remove server comments when
3161 * PageCompiler.cs: check if the type is already cached before generating
3163 * TemplateFactory.cs: if csFile parameter is null, only checks if we
3164 already have the page compiled.
3166 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3168 * AspGenerator.cs: undo one-liner change.
3170 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3172 * AspGenerator.cs: removed a few hacks no longer needed.
3174 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3176 * PageCompiler.cs: tracing.
3177 * TemplateFactory.cs: cache compiled types and tracing.
3178 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
3180 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3182 * AspComponentFoundry.cs: fixed typo.
3183 * TemplateFactory.cs: use csc style options.
3184 * AspGenerator.cs: don't use FileDependencies property of base class.
3186 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3188 * System.Web.Compilation/AspElements.cs:
3189 * System.Web.Compilation/AspGenerator.cs:
3190 * System.Web.Compilation/AspParser.cs:
3191 * System.Web.Compilation/PageCompiler.cs:
3192 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
3193 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
3195 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3197 * AspElements.cs: added WebService directive.
3198 * WebServiceCompiler.cs: New file.
3200 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3202 * PageCompiler.cs: fixed compilation.
3204 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3206 * PageCompiler.cs: generate C# file using AspGenerator.
3208 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3210 * AspComponentFoundry.cs: LookupFoundry now returns bool.
3211 * AspGenerator.cs: New file.
3213 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3215 * AspComponentFoundry.cs: New file.
3216 * AspElements.cs: renamed Component to Aspcomponent.
3218 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3225 * TemplateFactory.cs: first steps to move xsp into System.Web.