2009-01-26 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / ChangeLog
1 2009-01-26  Marek Habersack  <mhabersack@novell.com>
2
3         * BuildManagerDirectoryBuilder.cs: added support for fake virtual
4         paths.
5
6         * CompilationException.cs: added a Message override to make error
7         messages more useful.
8
9 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
10
11         * AspComponentFoundry.cs: no need to throw. Caller handles a null
12         return value.
13
14 2009-01-23  Marek Habersack  <mhabersack@novell.com>
15
16         * BuildManager.cs: use -1 for infinite wait in calls to
17         Acquire{Reader,Writer}Lock ().
18
19 2009-01-22  Marek Habersack  <mhabersack@novell.com>
20
21         * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
22         attribute.
23
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.
27         
28         * TemplateBuildProvider.cs: implemented the new
29         ExtractDependencies () method which uses regular expressions to
30         extract file dependencies from the source without having to
31         compile the file.
32
33         * CompilationException.cs: added a new public property, Results,
34         which returns the compilation results.
35
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.
39
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 -
52         BuildProviderGroup.
53
54         * BuildManagerCacheItem.cs: added. Contains all the compilation
55         result information needed by BuildManager. See below.
56
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
60            time.
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
77            is enabled now.
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
89            not.
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
102          ReaderWriterLockSlim
103
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.
108
109         * ApplicationFileBuildProvider.cs: added missing
110         BuildProviderAppliesTo attribute
111
112 2009-01-14  Marek Habersack  <mhabersack@novell.com>
113
114         * AspGenerator.cs: implemented a work around which allows the
115         server controls embedded in client tag attributes to be parsed and
116         compiled.
117
118 2009-01-13  Marek Habersack  <mhabersack@novell.com>
119
120         * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
121         GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
122         ControlBuilder cleanup.
123
124 2009-01-12  Marek Habersack  <mhabersack@novell.com>
125
126         * TemplateControlCompiler.cs: do not generate #line pragmas for
127         plain strings. Fixes bug #461214
128
129 2008-12-11  Marek Habersack  <mhabersack@novell.com>
130
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.
134
135         * TemplateControlCompiler.cs: if the parser has any custom
136         controls registered, compile them here - in the InitializeType
137         method.
138
139 2008-12-10  Marek Habersack  <mhabersack@novell.com>
140
141         * ParseException.cs: made serializable.
142
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.
146
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)
152
153 2008-12-08  Marek Habersack  <mhabersack@novell.com>
154
155         * TemplateControlCompiler.cs: use the correct regex match group
156         index in SanitizeBindCall (), fixes bug #457011
157
158 2008-12-05  Marek Habersack  <mhabersack@novell.com>
159
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
164         other directory.
165
166 2008-12-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
167
168         * AspParser.cs: reset to the next character in a partial match in case
169         of failure. Fixes bug #314688.
170
171 2008-12-01  Marek Habersack  <mhabersack@novell.com>
172
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
180         does.
181
182         * BaseCompiler.cs: added new virtual method,
183         AddStatementsToConstructor, which is called just before
184         CreateConstructor returns.
185
186 2008-11-25  Marek Habersack  <mhabersack@novell.com>
187
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
191         full tag name.
192
193         * AspComponent.cs: added
194
195 2008-11-21  Marek Habersack  <mhabersack@novell.com>
196
197         * CompilationException.cs: made serializable.
198
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,
203         throw an exception.
204
205 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
206
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
209         block.
210         Bug #445889 fixed.
211
212 2008-11-14  Marek Habersack  <mhabersack@novell.com>
213
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
217         bug #444725
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.
221
222 2008-10-29  Marek Habersack  <mhabersack@novell.com>
223
224         * BuildManager.cs: seal the internal classes.
225         Remove unused BuildCacheItem.ValidBuild property.
226
227 2008-10-16  Marek Habersack  <mhabersack@novell.com>
228
229         * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
230         use PropertyInfo.CanWrite to check whether the property is
231         writable anymore, it calls GetSetMethod (false) instead.
232
233 2008-10-10  Marek Habersack  <mhabersack@novell.com>
234
235         * TemplateControlCompiler.cs: allow whitespace around parentheses 
236         in the Bind and Eval expressions.
237
238 2008-10-09  Marek Habersack  <mhabersack@novell.com>
239
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
243         bug #433806
244
245 2008-10-08  Marek Habersack  <mhabersack@novell.com>
246
247         * TemplateControlCompiler.cs: templates must be instantiated even
248         for builders which process children as properties.
249
250 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
251
252         * AssemblyBuilder.cs: use CodeBase to get to the original assembly
253         path because Location might point the the shadow copy. Bug #409646
254         and others fixed.
255
256 2008-10-03  Marek Habersack  <mhabersack@novell.com>
257
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.
261
262 2008-09-29  Marek Habersack  <mhabersack@novell.com>
263
264         * BuildManagerRemoveEntryEventHandler.cs: added
265
266         * BuildManager.cs: added a static event to notify interested
267         parties when an entry is removed from the buildCache. Fixes bug
268         #429926.
269
270 2008-09-26  Marek Habersack  <mhabersack@novell.com>
271
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
275
276 2008-09-24  Andreia Gaita <avidigal@novell.com> 
277  
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
281
282 2008-09-23  Marek Habersack  <mhabersack@novell.com>
283
284         * AspGenerator.cs: ignore whitespace only if it's between
285         CodeRender blocks, not between DataBinding and
286         CodeRenderExpression.
287
288 2008-09-01  Marek Habersack  <mhabersack@novell.com>
289
290         * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
291         null/empty parser.InputFile now.
292
293         * AspGenerator.cs: AddTypeToCache works checks whether inputFile
294         is null or empty and does not assume the dependencies ArrayList is
295         present.
296         CloseControl uses ControlBuilder's OriginalTagName property,
297         should the property/tag name be prefixed with 'prefix:'
298
299         * CachingCompiler.cs: expect the dependencies ArrayList to be null
300         or empty.
301
302 2008-08-31  Marek Habersack  <mhabersack@novell.com>
303
304         * TemplateControlCompiler.cs: trust builder.BindingContainerType
305         in the 2.0+ profile - do not use container properties to detect
306         the type.
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.
311
312         * BaseCompiler.cs: add line pragmas only if enabled for the
313         current file.
314
315 2008-08-29  Marek Habersack  <mhabersack@novell.com>
316
317         * AppCodeCompiler.cs: properly handle profile base class
318         specifications which refer to full type names.
319
320 2008-08-26  Marek Habersack  <mhabersack@novell.com>
321
322         * BuildManager.cs: use VirtualPathUtility.Combine in
323         GetAbsoluteVirtualPath for non-rooted paths.
324
325 2008-08-19  Marek Habersack  <mhabersack@novell.com>
326
327         * ThemeDirectoryBuildProvider.cs: theme directory dependencies
328         should use only virtual paths for CSS files. Fixes bug #397187
329
330 2008-08-18  Marek Habersack  <mhabersack@novell.com>
331
332         * TemplateControlCompiler.cs: process expression when they are
333         used used in values of attributes without associated
334         properties. Fixes bug #417883
335
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
340
341 2008-08-14  Marek Habersack  <mhabersack@novell.com>
342
343         * AspGenerator.cs: do not ignore directives inside HTML comments.
344
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.
348
349 2008-08-13  Marek Habersack  <mhabersack@novell.com>
350
351         * TemplateControlCompiler.cs: rewrote the Bind regular expressions
352         to allow for single quotes and an optional second parameter to the
353         "call".
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
358         snippets were used)
359         Added a method to construct the Eval invoke expression which
360         simplifies code in other areas.
361         
362
363 2008-08-06  Marek Habersack  <mhabersack@novell.com>
364
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!
370
371 2008-06-30  Marek Habersack  <mhabersack@novell.com>
372
373         * AspGenerator.cs: hush the warnings and fix invalid type
374         comparison.
375
376         * AssemblyBuilder.cs: hush the warnings and add some debugging
377         CWLs.
378
379         * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
380         CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
381         SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
382
383 2008-06-18  Marek Habersack  <mhabersack@novell.com>
384
385         * TemplateControlCompiler.cs: AddChildCall properly processes the
386         PartialCachingAttribute now.
387
388 2008-06-11  Marek Habersack  <mhabersack@novell.com>
389
390         * BuildManager.cs: if an error occurs while assigning the
391         requested path to an assembly builder inside BuildAssembly, throw
392         an exception.
393
394         * BaseCompiler.cs: do not generate #line pragma for code which
395         exists only in memory.
396
397 2008-05-30  Marek Habersack  <mhabersack@novell.com>
398
399         * ClientBuildManager.cs: do not use synthetized event accessors
400         (to avoid locks).
401
402 2008-05-28  Marek Habersack  <mhabersack@novell.com>
403
404         * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
405         for #pragma checksum
406
407 2008-05-19  Marek Habersack  <mhabersack@novell.com>
408
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.
412
413 2008-05-15  Marek Habersack  <mhabersack@novell.com>
414
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.
420
421 2008-05-14  Marek Habersack  <mhabersack@novell.com>
422
423         * ParseException.cs: location can be null in the FileText property
424         getter.
425
426 2008-05-07  Marek Habersack  <mhabersack@novell.com>
427
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
431         #324536
432
433 2008-05-06  Marek Habersack  <mhabersack@novell.com>
434
435         * TemplateControlCompiler.cs: compatibility - added the
436         __stringResource static field to the generated class and a call to
437         SetStringResourcePointer to the FrameworkInitialize method.
438
439         * PageCompiler.cs: __fileDependencies should also be defined in
440         the 1.x profile.
441         Page properties assigned in the page directive should be set
442         inside BuildControlTree in the 2.0 profile.
443
444 2008-04-29  Marek Habersack  <mhabersack@novell.com>
445
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.
449
450 2008-04-28  Marek Habersack  <mhabersack@novell.com>
451
452         * BuildManager.cs: ignore bad assemblies in the bin/
453         directory. Fixes bug #315816
454
455 2008-04-26  Marek Habersack  <mhabersack@novell.com>
456
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
460
461 2008-04-25  Marek Habersack  <mhabersack@novell.com>
462
463         * AspGenerator.cs: put some safeguards in, to make sure streams
464         are closed in any case.
465
466 2008-04-24  Marek Habersack  <mhabersack@novell.com>
467
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).
471
472 2008-04-22  Marek Habersack  <mhabersack@novell.com>
473
474         * BuildManager.cs: ignore also arbitrary exceptions when
475         batch-building an assembly. Fixes bug #323556
476
477 2008-04-19  Marek Habersack  <mhabersack@novell.com>
478
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
483
484         * ILocation.cs: added a new property, FileText.
485         
486         * Location.cs: added implementation of the ILocation.FileText
487         property.
488
489         * ParseException.cs: use the new ILocation.FileText, if defined,
490         to get the file source.
491         
492         * AspGenerator.cs: when TextReader is present, use it to read with
493         the VirtualPathProvider to read the file source. Fixes bug #381364
494
495         * AspParser.cs: added a new property FileText to provide the file
496         contents which was read in the constructor.
497
498 2008-04-18  Marek Habersack  <mhabersack@novell.com>
499
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
504
505 2008-04-15  Marek Habersack  <mhabersack@novell.com>
506
507         * CachingCompiler.cs: dispose of streams the way it should
508         be done.
509
510 2008-04-09  Marek Habersack  <mhabersack@novell.com>
511
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
517         bug #377904
518
519         * AppWebReferencesCompiler.cs: added - support for compiling of
520         wsdl files found in the App_WebResources directory. Fixes bug
521         #377934
522
523         * BuildProvider.cs: refactoring - moved the SetCommonParameters
524         and GetDefaultCompilerTypeForLanguage to BuildManager
525
526         * WsdlBuildProvider.cs: added the CodeCompilerType property
527         override.
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
532         for wsdl files.
533
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
537         bug #377938
538         Cope with virtualPath being null in BuildAssembly.
539         Reference assemblies specified in web.config when linking.
540
541 2008-04-08  Marek Habersack  <mhabersack@novell.com>
542
543         * AspComponentFoundry.cs: add loaded assembly to the
544         BuildManager's list of referenced assemblies instead to
545         WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
546
547         * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
548
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
554         access.
555         Added an internal method AddToReferencedAssemblies.
556         Remove invalidated entry from
557         WebConfigurationManager.ExtraAssemblies.
558
559         * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
560
561         * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
562
563         * AssemblyBuilder.cs: constructors use the new VirtualPath class
564         now.
565         AddCodeFile can use the VirtualPathProvider if necessary now.
566         BuildAssembly overloads accept VirtualPath parameter instead of a
567         string path now.
568
569         * TemplateBuildProvider.cs: GetCodeBehindSource returns the
570         virtual path now.
571
572 2008-03-31  Marek Habersack  <mhabersack@novell.com>
573
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.
578
579 2008-03-27  Marek Habersack  <mhabersack@novell.com>
580
581         * BuildManager.cs: AssertVirtualPathExists now queries the
582         VirtualPathProvider for path existence if physical path check
583         fails, before throwing the 404 exception.
584
585 2008-03-13  Marek Habersack  <mhabersack@novell.com>
586
587         * BuildManager.cs: if we're running in a case-insensitive
588         environment, use case-insensitive comparer for the build caches. 
589
590 2008-02-29  Marek Habersack  <mhabersack@novell.com>
591
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).
596
597 2008-02-28  Marek Habersack  <mhabersack@novell.com>
598
599         * TemplateControlCompiler.cs: make sure that data-bound attribute
600         assignments properly convert the Bind expression to the Eval
601         one. Fixes bug #362039
602
603         * AspGenerator.cs: in 2.0+, aspx files which contain the Content
604         controls can contain only them, whitespace and directives. Fixes
605         bug #339747
606
607 2008-02-27  Marek Habersack  <mhabersack@novell.com>
608
609         * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
610         LoadType method for the 2.0 profile.
611
612         * CompilationException.cs: use a different format of ErrorMessage
613         for the 2.0+ profile.
614
615 2008-02-26  Marek Habersack  <mhabersack@novell.com>
616
617         * BuildManager.cs: known file types extensions are now matched
618         case-insensitively.
619
620 2008-02-25  Marek Habersack  <mhabersack@novell.com>
621
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.
626
627 2008-02-08  Gert Driesen  <drieseng@users.sourceforge.net>
628
629         * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
630         "raw" appsetting value if targetType is null.
631
632 2008-02-07  Marek Habersack  <mhabersack@novell.com>
633
634         * CompilationException.cs: added new constructor which takes
635         CompilerResults as one of the parameters.
636         Added CompilerOutput property.
637
638         * AssemblyBuilder.cs: use the new CompilationError constructor.
639
640         * BuildManager.cs: check for virtualPath existence before
641         attempting to compile the assemblies. Fixes bug #359465
642
643 2008-02-06  Marek Habersack  <mhabersack@novell.com>
644
645         * GenericBuildProvider.cs: GetGeneratedType may return a type even
646         though the results are null.
647
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
651
652         * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
653         BuildAssembly may return null results.
654
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
664         #357624.
665
666 2008-02-05  Marek Habersack  <mhabersack@novell.com>
667
668         * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
669         non-rooted relative paths to absolute ones now. Fixes bug
670         #357504.
671
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
675         #357499.
676
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.
680
681         * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
682         overload of the new abstract method GetReferencedAssemblies.
683
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
688
689 2008-02-04  Marek Habersack  <mhabersack@novell.com>
690
691         * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
692         generating source code files. Fixes bug #357053.
693
694         * AspGenerator.cs: set isApplication before parsing. Fixes bug
695         #357036.
696
697 2008-01-31  Jb Evain  <jbevain@novell.com>
698
699         * AspGenerator.cs: correct typo. Fix #357547.
700
701 2008-01-27  Marek Habersack  <mhabersack@novell.com>
702
703         * BuildManager.cs: GetReferencedAssemblies includes the extra
704         assemblies and the App_Code assemblies. Patch from Mike Morano
705         <mmorano@mikeandwan.us>, thanks!
706
707 2008-01-24  Marek Habersack  <mhabersack@novell.com>
708
709         * WebHandlerBuildProvider.cs: derive from the new
710         SimpleBuildProvider class.
711
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.
717
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.
721
722         * GenericBuildProvider.cs: new generic abstract class used to
723         implement base builder code for all the build provider types and
724         maximize code reuse.
725
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
729         WSDL helper code.
730
731         * BuildProvider.cs: SetVirtualPath now converts the passed path to
732         absolute URL.
733         Added internal virtual method GenerateCode, used by derived
734         classes.
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.
739
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.
743
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
747         providers.
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.
752
753         * ApplicationFileBuildProvider.cs: new build provider deriving
754         from the TemplateBuildProvider class to compile the global.asax
755         file.
756
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.
761
762         * CachingCompiler.cs: parser dependencies are virtual paths now,
763         convert them to physical ones before creating cache dependency.
764
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.
771
772         * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
773         base class and add implementation of all the abstract methods
774         required by it.
775
776         * ThemeDirectoryBuildProvider.cs: new build provider to compile
777         theme directories. Replaces the old ThemeDirectoryCompiler class.
778
779         * UserControlBuildProvider.cs: use the new TemplateBuildProvider
780         base class and add implementation of all the abstract methods
781         required by it.
782
783         * TemplateBuildProvider.cs: new internal abstract class which
784         implements the common tasks for all the template control build
785         providers.
786
787         * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
788         type to implement building.
789
790 2008-01-17  Igor Zelmanovich <igorz@mainsoft.com>
791
792         * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
793
794 2008-01-08  Marek Habersack  <mhabersack@novell.com>
795
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
803
804 2008-01-07  Marek Habersack  <mhabersack@novell.com>
805
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.
809
810 2008-01-02  Marek Habersack  <mhabersack@novell.com>
811
812         * TemplateControlCompiler.cs: add line pragma wherever necessary.
813
814         * PageCompiler.cs: reorder the statements to match MS.NET output.
815         Output line pragma information for directive attributes.
816
817         * BaseCompiler.cs: add a set of AddLinePragma methods for various
818         CodeDOM elements. 
819         Output line pragmas when adding server-side scripts to the CodeDOM
820         tree.
821
822         * AspGenerator.cs: use ServerSideScript to store script location
823         in the original file.
824
825         * UserControlCompiler.cs: output line pragmas for the init
826         method.
827
828 2007-12-28  Marek Habersack  <mhabersack@novell.com>
829
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.
835         
836         * BaseCompiler.cs: Main class field references are prefixed with
837         'global::' now. 
838         Refactored the output to match MS.NET more closely.
839
840 2007-12-27  Marek Habersack  <mhabersack@novell.com>
841
842         * BaseCompiler.cs: check for base type globality in all the
843         location it is used.
844
845 2007-12-23  Vladimir Krasnov  <vladimirk@mainsoft.com>
846
847         * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
848         to property type
849
850 2007-12-21  Marek Habersack  <mhabersack@novell.com>
851
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.
857
858         * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
859         #350398.
860
861         * CachingCompiler.cs: adjust to the changes above. Also some
862         refactoring.
863
864 2007-12-15  Marek Habersack  <mhabersack@novell.com>
865
866         * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
867
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.
871
872         * WebServiceCompiler.cs: Updated GetCompiledType to acquire
873         compiler information for the 2.0 profile from system.codeDom.
874
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.
880
881 2007-12-14  Juraj Skripsky  <js@hotfeet.ch>
882
883         * TemplateControlCompiler.cs (AddExpressionAssign):
884         Make sure expression does not contain prefix.
885         
886         * AppSettingsExpressionBuilder.cs: Pass type of property to
887         GetAppSetting, not type of declaring type.
888
889 2007-12-13  Marek Habersack  <mhabersack@novell.com>
890
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
895         cases.
896
897 2007-11-22  Marek Habersack  <mhabersack@novell.com>
898
899         * PageCompiler.cs: use
900         pageParser.OutputCacheVaryByContentEncodings when initializing the
901         output cache in the 2.0 profile.
902
903 2007-11-06  Marek Habersack  <mhabersack@novell.com>
904
905         * BuildManager.cs: properly retrieve the BuildProviderCollection
906         from configuration files.
907
908 2007-11-03  Marek Habersack  <mhabersack@novell.com>
909
910         * TemplateControlCompiler.cs: do not call converters specified in
911         the member custom attributes if 'str' is null in
912         GetExpressionFromString.
913
914 2007-10-23  Marek Habersack  <mhabersack@novell.com>
915
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.
919
920 2007-10-17  Marek Habersack  <mhabersack@novell.com>
921
922         * PageCompiler.cs: added code to set the AsyncMode and
923         AsyncTimeout Page properties.
924
925 2007-10-15  Marek Habersack  <mhabersack@novell.com>
926
927         * TemplateControlCompiler.cs, WebServiceCompiler.cs,
928         BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
929         HttpApplication.LoadType instead of Type.GetType.
930
931 2007-10-10  Marek Habersack  <mhabersack@novell.com>
932
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
936         implemented on Mono.
937
938 2007-10-01  Marek Habersack  <mhabersack@novell.com>
939
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
943         assemblies.
944
945         * AppResourcesAssemblyBuilder.cs: new resource assembly
946         construction code which takes care of outputting satellite
947         assemblies.
948
949 2007-09-27  Marek Habersack  <mhabersack@novell.com>
950
951         * TemplateControlCompiler.cs: support nullable types in
952         GenerateExpressionFromString.
953
954 2007-09-21  Marek Habersack  <mhabersack@novell.com>
955
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.
961         
962 2007-09-20  Marek Habersack  <mhabersack@novell.com>
963
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.
968
969 2007-09-14  Marek Habersack  <mhabersack@novell.com>
970
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.
974
975 2007-09-10  Marek Habersack  <mhabersack@novell.com>
976
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.
981
982 2007-09-07  Marek Habersack  <mhabersack@novell.com>
983
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.
989
990 2007-09-06  Marek Habersack  <mhabersack@novell.com>
991
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.
998
999 2007-09-05  Marek Habersack  <mhabersack@novell.com>
1000
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.
1005
1006 2007-09-04  Marek Habersack  <mhabersack@novell.com>
1007
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!
1015
1016 2007-08-29  Marek Habersack  <mhabersack@novell.com>
1017
1018         * CachingCompiler.cs: consider contents of the
1019         <compilation><assemblies> section when constructing a list of
1020         assemblies during compilation.
1021
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.
1029
1030 2007-08-23  Marek Habersack  <mhabersack@novell.com>
1031
1032         * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
1033         and HttpApplication.LoadTypeFromBin.
1034
1035         * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
1036         AddAssembliesInBin.
1037
1038 2007-08-21  Marek Habersack  <mhabersack@novell.com>
1039
1040         * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
1041         to look up assemblies in the binary path(s).
1042
1043 2007-08-19  Juraj Skripsky <js@hotfeet.ch>
1044
1045         * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
1046         for scope case insensitive. Fixes bug #82479.
1047
1048 2007-08-14  Marek Habersack  <mhabersack@novell.com>
1049
1050         * TemplateControlCompiler.cs: remove dead code.
1051
1052         * AssemblyBuilder.cs: include actual exception information when
1053         reporting inability to load a compiled assembly.
1054
1055         * AppCodeCompiler.cs: remove unused variables.
1056
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.
1062
1063 2007-08-06  Marek Habersack  <mhabersack@novell.com>
1064
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.
1068
1069 2007-07-31  Marek Habersack  <mhabersack@novell.com>
1070
1071         * AspComponentFoundry.cs: do not overwrite previously registered
1072         foundries when a new one is registered with the same prefix. Fixes
1073         bug #82216
1074
1075 2007-07-18  Marek Habersack  <mhabersack@novell.com>
1076
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.
1082
1083 2007-07-02  Marek Habersack  <mhabersack@novell.com>
1084
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.
1089
1090 2007-06-20  Marek Habersack  <mhabersack@novell.com>
1091
1092         * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
1093         private entries.
1094         * CachingCompiler.cs: as above
1095         * AspGenerator.cs: as above
1096
1097 2007-06-13  Marek Habersack  <mhabersack@novell.com>
1098
1099         * TemplateControlCompiler.cs: make sure control has a writable
1100         TemplateControl property prior to assigning values to it.
1101
1102 2007-06-09  Marek Habersack  <mhabersack@novell.com>
1103
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.
1110
1111         * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
1112         slash, for compatibility with MS.NET
1113
1114 2007-06-05  Marek Habersack  <mhabersack@novell.com>
1115
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.
1119
1120 2007-06-01  Marek Habersack  <mhabersack@novell.com>
1121
1122         * TemplateControlCompiler.cs: be case-insensitive when looking for
1123         Bind requests.
1124
1125 2007-05-29  Marek Habersack  <mhabersack@novell.com>
1126
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.
1130
1131 2007-05-28  Marek Habersack  <mhabersack@novell.com>
1132
1133         * ResourceExpressionBuilder.cs: properly cast
1134         GetGlobalResourceObject calls to the type of the property being
1135         assigned to.
1136
1137 2007-05-25  Marek Habersack  <mhabersack@novell.com>
1138
1139         * TemplateControlCompiler.cs: Changed a few incorrect 
1140         ObjectCreationExpression to the correct DelegateCreationExpression.
1141         Fixes #81706.
1142
1143 2007-05-24  Marek Habersack  <mhabersack@novell.com>
1144
1145         * PageCompiler.cs: added support for the PreviousPageType directive.
1146
1147         * Directive.cs: as above.
1148
1149 2007-05-22  Marek Habersack  <mhabersack@novell.com>
1150
1151         * UserControlCompiler.cs: the Profile property should be present
1152         also in user controls.
1153
1154 2007-05-15  Marek Habersack  <mhabersack@novell.com>
1155
1156         * ResourceExpressionBuilder.cs: added a static method to generate
1157         a GetLocalResourceObject call which properly handles types which
1158         cannot be converted from strings.
1159
1160         * TemplateControlCompiler.cs: use code described above to generate
1161         code for properties assigned from resources.
1162
1163         * WsdlBuildProvider.cs: make the code actually work - get the
1164         physical path of VirtualPath instead of converting it to absolute
1165         URI path.
1166         Do not generate source, add the code unit to assembly builder
1167         instead.
1168
1169         * XsdBuildProvider.cs: added
1170
1171 2007-05-08  Marek Habersack  <mhabersack@novell.com>
1172
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).
1176
1177 2007-05-07  Marek Habersack  <mhabersack@novell.com>
1178
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.
1182
1183 2007-05-04  Marek Habersack  <mhabersack@novell.com>
1184
1185         * TemplateControlCompiler.cs: do not query the parent for
1186         TemplateSourceDirectory if we are generating code for a Master
1187         Page.
1188
1189 2007-04-30  Marek Habersack  <mhabersack@novell.com>
1190
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
1195
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. 
1199
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
1204         TreeView controls.
1205
1206 2007-04-27  Marek Habersack  <mhabersack@novell.com>
1207
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.
1212
1213         * AssemblyBuilder.cs: as above
1214
1215         * AppResourcesCompiler.cs: as above
1216         
1217         * AspComponentFoundry.cs: formatting changes.
1218         AssemblyFoundry looks for the specified namespace+type in the
1219         top-level assemblies if necessary.
1220
1221 2007-04-26  Marek Habersack  <mhabersack@novell.com>
1222
1223         * AssemblyBuilder.cs: handle compilation failures in a better
1224         way.
1225
1226         * PageCompiler.cs: the Master property must be in the partial
1227         class if present. Fixes bug #81442
1228
1229 2007-04-20  Marek Habersack  <mhabersack@novell.com>
1230
1231         * AppCodeCompiler.cs: fix App_Code build when the directory
1232         contains both known and unknown files.
1233
1234 2007-04-19  Gert Driesen  <drieseng@users.sourceforge.net>
1235
1236         * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1237         tabs.
1238
1239 2007-04-19  Marek Habersack  <mhabersack@novell.com>
1240
1241         * AppCodeCompiler.cs: yet another method of detecting if we have a
1242         custom profile.
1243
1244         * BaseCompiler.cs: as above
1245         
1246         * AspComponentFoundry.cs: implemented delayed loading of control
1247         assemblies. Fixes bug #81058.
1248
1249 2007-04-19  Gert Driesen  <drieseng@users.sourceforge.net>
1250
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
1253         #81399.
1254
1255 2007-04-19  Marek Habersack  <mhabersack@novell.com>
1256
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.
1261
1262         * AppCodeCompiler.cs: as above
1263
1264 2007-04-15  Marek Habersack  <mhabersack@novell.com>
1265
1266         * AppCodeCompiler.cs: properly convert physical file path to
1267         virtual path for build providers.
1268         Make sure there's actually anything to compile.
1269
1270 2007-04-11  Marek Habersack  <mhabersack@novell.com>
1271
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.
1275
1276 2007-04-10  Marek Habersack  <mhabersack@novell.com>
1277
1278         * AppResourceFilesCollection.cs: watch App_LocalResources for
1279         changes.
1280
1281 2007-04-06  Marek Habersack  <mhabersack@novell.com>
1282
1283         * BaseCompiler.cs: display the source of the file in which the
1284         error actually happened if the file exists, or the unit
1285         otherwise.
1286
1287 2007-04-03  Marek Habersack  <mhabersack@novell.com>
1288
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.
1292
1293 2007-03-26  Marek Habersack  <mhabersack@novell.com>
1294
1295         * TemplateControlCompiler.cs: refactor assining properties from
1296         resources a bit to support pages and user controls. Fixes bug
1297         #81204.
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.
1303
1304 2007-03-21  Marek Habersack  <mhabersack@novell.com>
1305
1306         * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1307         AssignAppRelativeVirtualPath if the attribute was defined.
1308
1309         * TemplateControlCompiler.cs: added support for setting custom
1310         attributes of a base class from the Page or Control directive
1311         attributes.
1312
1313 2007-03-20  Marek Habersack  <mhabersack@novell.com>
1314
1315         * ResourceExpressionBuilder.cs: if the resource class key is null
1316         or empty, call GetLocalResourceObject, if not,
1317         GetGlobalResourceObject. Fixes bug #81174.
1318
1319 2007-03-16  Marek Habersack  <mhabersack@novell.com>
1320
1321         * AppCodeCompiler.cs: produce message that makes more sense.
1322
1323 2007-03-15  Marek Habersack  <mhabersack@novell.com>
1324
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.
1328
1329 2007-03-14  Marek Habersack  <mhabersack@novell.com>
1330
1331         * AppResourcesCompiler.cs: Fix a bug with global resources file
1332         grouping where no translated resources were processed due to base
1333         name mismatch.
1334
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.
1339
1340 2007-03-13  Marek Habersack  <mhabersack@novell.com>
1341
1342         * AspParser.cs: fix an off-by-one parsing bug with server-side
1343         includes.
1344
1345         * PageThemeCompiler.cs: let property builders through, stop the
1346         builders that have no control type. Fixes bug #81092
1347
1348         * PageCompiler.cs: interfaces are to be implemented by the parent
1349         partial class, not the generated one.
1350
1351         * AppResourceFilesCollection.cs: added separate constructor for
1352         local resources handling.
1353
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.
1358
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.
1365
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
1370         is parsed.
1371
1372 2007-03-12  Marek Habersack  <mhabersack@novell.com>
1373
1374         * AspParser.cs: revert r73587 as it breaks more than it fixes.
1375
1376         * AspComponentFoundry.cs: try to register foundries from App_Code
1377         assemblies if tag prefix and its namespace are defined. Fixes bug
1378         #78797.
1379
1380         * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1381         of Assembly instances, not strings.
1382
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
1387         strings.
1388
1389         * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1390         assemblies, not paths to assemblies.
1391
1392 2007-03-10  Marek Habersack  <mhabersack@novell.com>
1393
1394         * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1395         CreateProfileProperty and InternalCreatePageProperty to
1396         BaseCompiler from PageCompiler.
1397
1398         * GlobalAsaxCompiler.cs: generate the Profile property for the
1399         Global_asax class.
1400
1401 2007-03-09  Marek Habersack  <mhabersack@novell.com>
1402
1403         * AppCodeCompiler.cs: Add the GetProfile method to the
1404         ProfileCommon auto-generated class.
1405
1406         * AppResourcesCompiler.cs: attempt to load the resource file
1407         earlier in the process, to gracefully handle empty files.
1408
1409         * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1410         .skin and .css files composing the theme.
1411
1412 2007-03-05  Marek Habersack  <mhabersack@novell.com>
1413
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.
1418
1419         * ThemeDirectoryCompiler.cs: theme parser should be passed the
1420         virtual directory of the theme.
1421
1422 2007-03-03  Marek Habersack  <mhabersack@novell.com>
1423
1424         * PageCompiler.cs: Added support for setting the
1425         MaintainScrollPositionOnPostBack property if the corresponding
1426         page directive attribute is found.
1427
1428         * Directive.cs: added the MaintainScrollPositionOnPostBack and
1429         LinePragmas directives.
1430
1431 2007-03-02  Marek Habersack  <grendello@gmail.com>
1432
1433         * AppCodeCompiler.cs: Correctly process App_Code directories which
1434         have no compilable files in the top-level directory. Fixes bug
1435         #80998.
1436         Write preservation files for the App_Code assemblies.
1437
1438 2007-03-01  Marek Habersack  <grendello@gmail.com>
1439
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
1443         matched correctly.
1444
1445 2007-02-27  Marek Habersack  <grendello@gmail.com>
1446
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
1450         string.
1451
1452         * ConnectionStringsExpressionBuilder.cs: Implement support for
1453         expressions of the <%$ ConnectionStrings:StringName %> form
1454
1455 2007-02-19  Marek Habersack  <grendello@gmail.com>
1456
1457         * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1458
1459 2007-02-16  Marek Habersack  <grendello@gmail.com>
1460
1461         * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1462         is referenced twice by the compiler(s).
1463
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
1473         page parsing phase.
1474
1475 2007-02-12  Marek Habersack  <grendello@gmail.com>
1476
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.
1480
1481         * AppResourcesCompiler.cs: support for assembly name mapping.
1482
1483         * AppCodeCompiler.cs: support for assembly name mapping.
1484
1485 2007-02-08  Marek Habersack  <grendello@gmail.com>
1486
1487         * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1488
1489         * AspComponentFoundry.cs: Avoid duplicate control registration
1490         exception.
1491
1492         * ResourceExpressionBuilder.cs: Make sure all the global resources
1493         are looked up using the "Resources." prefix.
1494
1495         * AppResourcesCompiler.cs: Make sure all the global resources are
1496         embedded with the "Resources." prefix.
1497
1498 2007-02-02  Marek Habersack  <grendello@gmail.com>
1499
1500         * AspGenerator.cs: Move the cache insert code to a separate method, for
1501         use from other places.
1502
1503         * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1504         defer their compilation to the moment when they are actually requested.
1505
1506 2007-01-22  Marek Habersack  <grendello@gmail.com>
1507
1508         * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1509
1510 2007-01-20  Miguel de Icaza  <miguel@novell.com>
1511
1512         * ClientBuildManager.cs: Remove unused variable (this could be a
1513         real problem, we never use the appPhysicalTargetDir) 
1514
1515         * AssemblyBuilder.cs: Remove unused field.
1516
1517         * AppResourceFilesCollection.cs: Remove unused field.
1518
1519         * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1520         unused variable. 
1521
1522         * AppResourcesCompiler.cs: Remove unused variable.
1523
1524         * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1525         parameter. 
1526
1527         * PageCompiler.cs: Put InternalCreatePageProperty inside the
1528         NET_2_0 block to eliminate warnings.
1529
1530 2007-01-20  Gert Driesen  <drieseng@users.sourceforge.net>
1531
1532         * BaseCompiler.cs: Fixed build on 1.0 profile.
1533
1534 2007-01-20  Marek Habersack  <grendello@gmail.com>
1535
1536         * BaseCompiler.cs: If the control base type is in the root
1537         namespace, make sure global:: is prepended to it.
1538
1539         * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1540         mark it as such in the generated code as well.  
1541
1542         * AppCodeCompiler.cs: Include debug information if configured in
1543         web.config. Fixes bug #80096.
1544
1545 2007-01-17  Marek Habersack  <grendello@gmail.com>
1546
1547         * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1548         App_GlobalResources) when compiling App_Code sources.
1549
1550         * CachingCompiler.cs: Reference toplevel assemblies when compiling
1551         e.g. Global.asax
1552
1553         * AppResourcesCompiler.cs: Close the streams properly.
1554
1555         * AspGenerator.cs: Don't ignore thead/tbody anymore.
1556
1557 2007-01-15  Marek Habersack  <grendello@gmail.com>
1558
1559         * WsdlBuildProvider.cs: New build provider for WSDL files.
1560         Compile only when System.Web.Services are present.
1561
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.
1565
1566 2007-01-05  Marek Habersack  <grendello@gmail.com>
1567
1568         * AppResourceFilesCollection.cs: new class to keep and manage
1569         collection of resource files for the App_{Global,Local}Resources
1570         folders.
1571
1572         * TemplateControlCompiler.cs: rely on
1573         HttpContext.GetLocalResourceObject to select the correct culture.
1574
1575         * AppResourceFileInfo.cs: new class for keeping resource files
1576         information.
1577
1578         * AppResourcesCompiler.cs: new implementation.
1579
1580 2006-12-20  Marek Habersack  <grendello@gmail.com>
1581
1582         * AssemblyBuilder.cs: add an internal version of the
1583         AddCodeCompileUnit method.
1584
1585         * AppCodeCompiler.cs: implement support for ProfileCommon
1586         generation from properties named in the <profile> element in
1587         Web.config.
1588
1589         * PageCompiler.cs: create the Profile property in 2.0 code.
1590
1591 2006-12-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
1592
1593         * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1594
1595 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1596
1597         * ThemeDirectoryCompiler.cs: refactoring.
1598
1599 2006-11-28  Marek Habersack  <grendello@gmail.com>
1600
1601         * BuildManager.cs: Add an internal property to signal whether or
1602         not we have any resources from App_{Global,Local}Resources
1603
1604         * AspGenerator.cs: Register controls from
1605         system.web/pages/controls collection before parsing.
1606
1607         * AppResourcesCompiler.cs: Let the build process know if we have
1608         compiled any resources from App_{Global,Local}Resources
1609
1610 2006-11-27  Marek Habersack  <grendello@gmail.com>
1611
1612         * CachingCompiler.cs: Automatically reference App_Code
1613         assemblies.
1614
1615         * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1616         when compiling.
1617
1618 2006-11-25  Marek Habersack  <grendello@gmail.com>
1619
1620         * AppResourcesCompiler.cs: small optimizations.
1621
1622         * AppResourceFilesCompiler.cs: small optimizations.
1623
1624 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1625
1626         * WebServiceCompiler.cs: add the type to the cache after getting it
1627         from the compiled assembly.
1628
1629 2006-11-20  Marek Habersack  <grendello@gmail.com>
1630
1631         * AppCodeCompiler.cs: Reference assemblies listed in
1632         system.web/compilation/assemblies.
1633         Don't create empty assemblies.
1634
1635 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1636
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.
1640
1641 2006-11-18  Marek Habersack  <grendello@gmail.com>
1642
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.
1646
1647 2006-11-16  Marek Habersack  <grendello@gmail.com>
1648
1649         * ForceCopyBuildProvider.cs: Added the build provider for
1650         copy-only files.
1651
1652         * MasterPageBuildProvider.cs: Added the build provider for Master
1653         Pages.
1654
1655         * IgnoreFileBuildProvider.cs: Make the class sealed.
1656
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
1661         build provider.
1662
1663 2006-11-13  Marek Habersack  <grendello@gmail.com>
1664
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.
1674
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.
1678
1679         * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1680         temporary file creation.
1681
1682         * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1683         attribute.
1684
1685         * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1686         attribute.
1687
1688         * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1689         attribute.
1690
1691         * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1692         attribute.
1693
1694         * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1695         attribute.
1696
1697 2006-11-08  Marek Habersack  <grendello@gmail.com>
1698
1699         * BuildProvider.cs: Implemented the GetCustomString
1700         method. Removed the necessity to retrieve the CompilationSection
1701         twice when GetDefaultCompilerType is called.
1702
1703         * AppResourcesCompiler.cs: Added resource compiler results
1704         handling.
1705
1706         * AppCodeCompiler.cs: The App_Code compiler classes
1707
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.
1713
1714         * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1715
1716 2006-10-18  Marek Habersack  <grendello@gmail.com>
1717
1718         * TemplateControlCompiler.cs: add support for resource
1719         expressions in tag attributes.
1720
1721         * ResourceExpressionBuilder.cs: add support for resource
1722         expressions in tag attributes.
1723
1724         * BaseCompiler.cs: add global/local resource assemblies to
1725         compilation references, if present.
1726
1727         * AppResourcesCompiler.cs: global/local resources compiler.
1728
1729         * AppResourceFilesCompiler.cs: compiler of resource files.
1730
1731 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1732
1733         * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1734         At run time, the Bind method calls the Eval method, if there is DataItem
1735         != null to bind to.
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.
1739                 
1740 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1741
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,...)
1744         Fixes bug #79437.
1745
1746 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1747
1748         * PageCompiler.cs: support the EnableEventValidation attribute.
1749
1750 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1751
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
1754         bug #79318.
1755
1756 2006-09-05  Konstantin Triger <kostat@mainsoft.com>
1757
1758         * ParseException.cs: Ensure the source file stream is closed.
1759
1760 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
1761
1762         * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1763         * ConnectionStringsExpressionBuilder.cs: Use name reference
1764           constants.
1765         * ResourceExpressionBuilder.cs: Use assembly name constants.
1766
1767 2006-08-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
1768
1769         * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1770
1771 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1772
1773         * ClientBuildManager.cs: handle domain shutdown and unload.
1774         Implemented some properties. Commented.
1775
1776 2006-08-10  Andrew Skiba  <andrews@mainsoft.com>
1777
1778         * ThemeDirectoryCompiler.cs: render css path as a virtual path.
1779
1780 2006-08-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
1781
1782         * added ThemeDirectoryCompiler.jvm.cs
1783
1784 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1785
1786         * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
1787         the property Items does not exist. Patch by Marek Habersack that fixes
1788         bug #78971.
1789
1790 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1791
1792         * TemplateControlCompiler.cs: support assigning nullable types.
1793         Patch by Marek Habersack that fixes bug #78970.
1794
1795 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1796
1797         * TemplateControlCompiler.cs: make password work again.
1798
1799 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
1800
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.
1805
1806 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
1807
1808         * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
1809         UrlPropertyAttribute.
1810
1811 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
1812
1813         * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
1814         generating code for assignment statement and DataBind event.
1815         
1816 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
1817
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.
1822
1823 2006-06-08      Konstantin Triger <kostat@mainsoft.com>
1824
1825         * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
1826
1827 2006-04-24  Andrew Skiba  <andrews@mainsoft.com>
1828
1829         * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
1830
1831 2006-04-23  Andrew Skiba  <andrews@mainsoft.com>
1832
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
1837
1838 2006-04-20  Chris Toshok  <toshok@ximian.com>
1839
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.
1843
1844 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1845
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.
1849
1850 2006-04-16  Andrew Skiba <andrews@mainsoft.com>
1851
1852         * ThemeDirectoryCompiler.cs: add to the directory parser all the
1853         assemblies found by PageThemeFileParsers
1854
1855 2006-04-12  Lluis Sanchez Gual <lluis@novell.com>
1856
1857         * TemplateControlCompiler.cs: Properly read all content of
1858         string properties.
1859
1860 2006-04-11  Andrew Skiba <andrews@mainsoft.com>
1861
1862         * TemplateControlCompiler.cs : fix for partial parsers
1863
1864 2006-04-11  Andrew Skiba <andrews@mainsoft.com>
1865
1866         * ThemeDirectoryCompiler.cs : map the virtual path to the physical
1867         path
1868
1869 2006-04-08  Miguel de Icaza  <miguel@novell.com>
1870
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.
1874
1875         We really need a test suite in NUnit to check on ASP.NET aspx
1876         changes.
1877
1878 2006-03-27  Robert Jordan  <robertj@gmx.net>
1879
1880         * CachingCompiler.cs:  change the compilation locking scheme
1881         from "one mcs per process" to "one mcs per file".
1882
1883 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1884
1885         * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
1886         StringPropertyBuilder.
1887
1888 2006-03-24  Chris Toshok  <toshok@ximian.com>
1889
1890         * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
1891         if system.web/compilation doesn't list a compiler for our
1892         language.
1893
1894 2006-03-13  Chris Toshok  <toshok@ximian.com>
1895
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.
1900
1901 2006-03-07  Chris Toshok  <toshok@ximian.com>
1902
1903         * AspGenerator.cs: refactor the parsing code so that we can
1904         initiate parsing from outside this class.
1905
1906         * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
1907         method, add our StyleSheetTheme assignment here.
1908         (AppendStatementsToFrameworkInitialize): rename AddStatements* to
1909         this.
1910
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()."
1920
1921         * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
1922
1923 2006-03-07  Chris Toshok  <toshok@ximian.com>
1924
1925         * ThemeDirectoryCompiler.cs: new file.
1926
1927         * PageThemeCompiler.cs: new file.
1928
1929 2006-03-07  Chris Toshok  <toshok@ximian.com>
1930
1931         * BaseCompiler.cs: fix typo in "initialize" in multiple places.
1932         (Init): move the CreateMethods call here.
1933
1934 2006-03-02  Chris Toshok  <toshok@ximian.com>
1935
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
1943         InitMethod.
1944
1945         * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
1946         for Theme and StyleSheetTheme.
1947
1948 2006-02-23  Chris Toshok  <toshok@ximian.com>
1949
1950         * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
1951         change from ContentControlBuilderInternal to
1952         ContentBuilderInternal.
1953         (AddCodeRender): same.
1954
1955 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1956
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.
1961
1962 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1963
1964         * GlobalAsaxCompiler.cs:
1965         * PageCompiler.cs:
1966         * TemplateControlCompiler.cs: CreateMethods is now internal.
1967
1968         * WebServiceBuildProvider.cs:
1969         * PageBuildProvider.cs:
1970         * UserControlBuildProvider.cs:
1971         * WebHandlerBuildProvider.cs: new build providers.
1972
1973         * BuildProvider.cs: add assemblies.
1974
1975         * BaseCompiler.cs: expose the provider and the compile unit through
1976         properties.
1977
1978 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1979
1980         * CompilerType.cs: implemented.
1981
1982         * AssemblyBuilder.cs: implemented most of it.
1983
1984         * WebServiceCompiler.cs:
1985         * CachingCompiler.cs: update 2.0 compiler instance creation code.
1986
1987         * ClientBuildManager.cs: implemented some of its methods. Not yet
1988         ready.
1989
1990         * BuildManager.cs: the more interesting methods are implemented now.
1991
1992         * BaseCompiler.cs: delete the temporary files in case of error.
1993
1994         * BuildProvider.cs: implemented the Get*Compiler* protected methods.
1995
1996 2006-02-07  Chris Toshok  <toshok@ximian.com>
1997
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.
2009
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.
2017
2018 2006-02-07  Chris Toshok  <toshok@ximian.com>
2019
2020         * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
2021         assign __ctrl.MasterPageFile to our master page, if we have one.
2022
2023         * PageCompiler.cs (CreateContructor): remove the MasterPageFile
2024         assignment from here.
2025         (AddStatementsToInitMethod): and move it here.
2026         
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.
2042
2043 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2044
2045         * IgnoreFileBuildProvider.cs: it's not public.
2046         * BuildProvider.cs: mostly implemented.
2047
2048 2006-02-01  Chris Toshok  <toshok@ximian.com>
2049
2050         * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
2051         GetSection instead of GetWebApplicationSection.
2052
2053         * CachingCompiler.cs: same.
2054
2055         * AspGenerator.cs: same.
2056
2057         * BaseCompiler.cs: same.
2058         
2059 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2060
2061         * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
2062
2063 2006-01-22  Chris Toshok  <toshok@ximian.com>
2064
2065         * IgnoreFileBuildProvider.cs: build provider which does nothing.
2066
2067 2006-01-22  Chris Toshok  <toshok@ximian.com>
2068
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
2072
2073         * Directive.cs (InitHash): use a 2.0 friendly form of the
2074         Hashtable ctor to silence a couple of warning.
2075
2076         * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
2077         Hashtable ctor to silence a warning.
2078         (GetDictionary): same.
2079
2080 2006-01-22  Chris Toshok  <toshok@ximian.com>
2081
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.
2086
2087         * ConnectionStringsExpressionBuilder.cs: partial implementation.
2088         Same deal with the ExpressionEditor attribute.
2089
2090         * ResourceExpressionBuilder.cs: same deal with the
2091         ExpressionEditor attribute.
2092         
2093 2006-01-20  Chris Toshok  <toshok@ximian.com>
2094
2095         * ResourceExpressionBuilder.cs (ParseExpression): implement.
2096
2097         * ResourceExpressionFields.cs: implement.
2098
2099 2006-01-20  Chris Toshok  <toshok@ximian.com>
2100
2101         * ClientBuildManagerParameter.cs: implement.
2102
2103         * ClientBuildManagerCallback.cs: this class contains an empty
2104         default implementation.
2105
2106 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2107
2108         * AspGenerator.cs: add support for 'src' in <script runat="server">.
2109         Fixes bug #77150.
2110
2111 2006-01-04  Chris Toshok  <toshok@ximian.com>
2112
2113         * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
2114         code.
2115
2116         * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
2117
2118 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2119
2120         * AspGenerator.cs: fix yesterday's fix.
2121
2122 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2123
2124         * AspGenerator.cs: only do special processing for <script> if it has
2125         the runat="server" attribute. Fixes bug #76918.
2126
2127 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2128
2129         * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
2130         Fixes bug #76677.
2131
2132 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2133
2134         * TemplateControlCompiler.cs: handle data bound attributes for html
2135         controls. Fixes bug #76785.
2136
2137 2005-11-28  Chris Toshok  <toshok@ximian.com>
2138
2139         * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
2140
2141         * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
2142
2143 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2144
2145         * WebServiceCompiler.cs: fixed caching for web handlers.
2146
2147 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2148
2149         * AspParser.cs: don't change case for verbatim IDs.
2150         Fixes bug #76657.
2151
2152 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2153
2154         * AspParser.cs: when processing verbatim input, throw if we reach EOF
2155         before the expected end of the data.
2156
2157 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2158
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.
2165
2166 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2167
2168         * BaseCompiler.cs: set the domain's DynamicBase property instead of
2169         guessing it in BaseCompiler.
2170
2171 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2172
2173         * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
2174         75146 for pages/controls.
2175
2176 2005-08-09  Miguel de Icaza  <miguel@novell.com>
2177
2178         * WebServiceCompiler.cs: Use the new DynamicDir method.
2179
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.
2182
2183         Added Bonus: if the directory has some kind of permission problem,
2184         try a different directory name.
2185
2186 2005-07-13  Miguel de Icaza  <miguel@novell.com>
2187
2188         * AspGenerator.cs (AspGenerator.CheckLanguage): Use
2189         BaseParser.Context for the context. 
2190
2191 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2192
2193         * TagAttributes.cs:
2194         * AspParser.cs:
2195         * TemplateControlCompiler.cs: use invariant culture versions of starts/
2196         endswith.
2197
2198 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2199
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.
2203
2204 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205
2206         * CachingCompiler.cs: use cache.InsertPrivate.
2207         * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
2208         AddDependency.
2209
2210 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2211
2212         * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2213         as all the others, when compiling an assembly from a Src file. Fixes
2214         bug #75371.
2215
2216 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217
2218         * TemplateControlCompiler.cs: if the property is not found, don't forget
2219         about trying the field.
2220
2221 2005-06-13  Lluis Sanchez Gual <lluis@novell.com>
2222
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.
2226
2227 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2228
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.
2234
2235 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2236
2237         * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2238         properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2239         bug #75234.
2240
2241 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2242
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
2245         Mark.
2246
2247 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2248
2249         * AspParser.cs: InvariantCulture love.
2250
2251 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2252
2253         * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2254         as the one in Master is protected. Fixes bug #75157.
2255
2256 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2257
2258         * AspComponentFoundry.cs: tagnames have precedence over types in
2259         assemblies when they use the same prefix. Fixes bug #71855.
2260
2261 2005-05-03  Lluis Sanchez Gual <lluis@novell.com>
2262
2263         * WebServiceCompiler.cs: Create the temp directory before
2264         creating the web service source code file.
2265
2266 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2267
2268         * AspGenerator.cs: when checking languages, try to match other aliases
2269         too (ie, 'cs' == 'c#').
2270
2271 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2272
2273         * BaseCompiler.cs: check that DynamicBase directory exists before
2274         creating the TempFileCollection.
2275
2276 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2277
2278         * AspGenerator.cs: use a stack for non-server tags even before getting
2279         to a form. Fixes bug #70274.
2280
2281 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2282
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.
2286
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)
2290
2291 2005-04-19  Lluis Sanchez Gual <lluis@novell.com>
2292
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.
2298
2299 2005-04-15  Lluis Sanchez Gual <lluis@novell.com>
2300
2301         * TemplateControlCompiler.cs: Implemented support for two-way
2302         binding.
2303
2304 2005-04-14  Lluis Sanchez Gual <lluis@novell.com>
2305
2306         * TemplateControlCompiler.cs: Use the new BindingContainerType
2307         property to find the type of the binding container. 
2308         
2309 2005-04-07  Lluis Sanchez Gual <lluis@novell.com>
2310
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.
2314         
2315 2005-04-05  Lluis Sanchez Gual <lluis@novell.com>
2316
2317         * TemplateControlCompiler.cs: Don't autogenerate IDs for
2318         controls inside Content template.
2319
2320 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2321
2322         * TemplateControlCompiler.cs: make typedesc.aspx work again.
2323
2324 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325
2326         * ExpressionBuilderContext.cs:
2327         * ExpressionBuilder.cs: implemented.
2328
2329 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2330
2331         * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2332
2333 2005-01-28  Lluis Sanchez Gual <lluis@novell.com>
2334
2335         * TemplateControlCompiler.cs: When generating a property value,
2336         check for TypeConverterAttribute in the PropertyInfo, not only in the
2337         property type.
2338         Implemented code generation using InstanceDescriptor, when the type
2339         converter supports conversion to that type.
2340
2341 2005-01-21  Lluis Sanchez Gual <lluis@novell.com>
2342
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.
2350
2351 2005-01-10  Lluis Sanchez Gual <lluis@novell.com>
2352
2353         * TemplateControlCompiler.cs: Get the container type from the
2354         template (if it was defined using TemplateContainerAttribute.
2355
2356 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2357
2358         * AspGenerator.cs: correctly process script tags that self-closing.
2359         Fixes bug #69657.
2360
2361 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2362
2363         * CachingCompiler.cs: when compiling a single .cs file, add the file
2364         itself to dependencies. Fixes bug #68788.
2365
2366 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2367
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.
2370
2371 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2372
2373         * WebServiceCompiler.cs: fix buglet in my last commit.
2374
2375 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2376
2377         * BaseCompiler.cs:
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.
2382
2383 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2384
2385         * AspParser.cs:
2386         * AspTokenizer.cs: prevent quotes from being swallowed when we're 
2387         inside a server tag and they are the next non-whitespace character.
2388         Fixes bug #63451.
2389
2390 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391
2392         * CachingCompiler.cs: don't try to watch for changes in system
2393         assemblies. Fixes bug #64871.
2394
2395 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2396
2397         * AspGenerator.cs: handle builders that need to process inner text
2398         with tags.
2399
2400         * Location.cs: added setters for the properties.
2401
2402 2004-08-02  Duncan Mak  <duncan@ximian.com>
2403
2404         * BuildProviderResultFlags.cs:  
2405         * IImplicitResourceProvider.cs: 
2406         * ImplicitResourceKey.cs:
2407         * IResourceReader.cs: Added.
2408
2409 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2410
2411         * AspGenerator.cs: the path for file was treated as virtual, but it's
2412         physical. Fixes bug #61524.
2413
2414 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2415
2416         * AspParser.cs: fixed case-sensitivity issues with #include and its
2417         attributes. Closes #61429.
2418
2419 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2420
2421         * BaseCompiler.cs:
2422         * WebServiceCompiler.cs: really create the dlls under DynamicBase
2423
2424 2004-06-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2425
2426         * TemplateControlCompiler.cs: for system colors, use SystemColors class
2427         instead of Color. Fixes bug #60249.
2428
2429 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2430
2431         * BaseCompiler.cs: try getting the Type from the cache before doing the 
2432         real work. Remove temporary files right after successful compilation.
2433
2434         * CachingCompiler.cs: added GetTypeFromCache.
2435
2436         * UserControlCompiler.cs: nothing interesting.
2437
2438         * WebServiceCompiler.cs: try getting the Type from the cache before
2439         doing anything else. Remove temp files on sucessful compilation.
2440
2441 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442
2443         * AspGenerator.cs:
2444         * CachingCompiler.cs: use a different prefix when caching compiler
2445         results or Types.
2446
2447 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2448
2449         * BaseCompiler.cs: dynamicBase is now protected. Check
2450         MONO_ASPNET_NODELETE here.
2451
2452         * TemplateControlCompiler.cs: if the type is not known but has a 
2453         TypeConverter, invoke ConvertFromString in the generated code.
2454
2455         * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2456         the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2457
2458         * CachingCompiler.cs: updated compilation of web services and simple
2459         web handlers.
2460
2461 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2462
2463         * CSCompiler.cs: removed.
2464
2465         * CachingCompiler.cs: language independent compilation for single files.
2466
2467 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2468
2469         * BaseCompiler.cs:
2470         * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2471         * CachingCompiler.cs: use HttpRuntime.Cache.
2472
2473 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2474
2475         * PageCompiler.cs: fixed Trace and add support for Buffer.
2476
2477 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2478
2479         * PageCompiler.cs: override CreateConstructor to add assignment for
2480         ClientTarget.
2481         
2482 2004-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2483
2484         * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2485         of CodeObjectCreateExpression for the render method delegate. Thanks
2486         to Jochen Wezel.
2487
2488 2004-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2489
2490         * BaseCompiler.cs: use DynamicBase for the output assemblies.
2491
2492 2004-05-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2493
2494         * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2495
2496 2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2497
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.
2503
2504 2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2505
2506         * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2507
2508 2004-04-02  Lluis Sanchez Gual  <lluis@ximian.com>
2509
2510         * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2511
2512 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2513
2514         * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2515
2516 2004-02-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2517
2518         * AspGenerator.cs: error out when <object> server tag is not closed.
2519         Ignore any content inside it.
2520
2521 2004-02-10  Jackson Harper <jackson@ximian.com>
2522
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.
2526         
2527 2004-02-10  Jackson Harper <jackson@ximian.com>
2528
2529         * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2530         bug #54117.
2531         
2532 2004-01-30  Jackson Harper <jackson@ximian.com>
2533
2534         * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2535         the build method takes strings not ints.
2536         
2537 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2538
2539         * AspGenerator.cs: handle more possible errors in global.asax file.
2540
2541         * BaseCompiler.cs: added utility methods for creating <object> related
2542         properties and fields.
2543
2544         * GlobalAsaxCompiler.cs: keep around applications and session scope
2545         objects builders. Also a list of imports and assemblies added in
2546         global.asax.
2547
2548         * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2549
2550 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2551
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.
2554
2555 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2556
2557         * TemplateControlCompiler.cs: allow handling subproperties for other
2558         types than Style and Font. Fixes bug #53217.
2559
2560 2004-01-16  Jackson Harper <jackson@ximian.com>
2561
2562         * TagAttribute.cs: attributes can be stored as encoded html so we
2563         decode them here.
2564         
2565 2004-01-14  Jackson Harper <jackson@ximian.com>
2566
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.
2570         
2571 2004-01-13  Jackson Harper <jackson@ximian.com>
2572         
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
2576         class.
2577         * UserControlCompiler.cs: If caching is enabled on a user control
2578         add the PartialCachingAttribute to it.
2579         
2580 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2581
2582         * PageCompiler.cs: invoke Request.ValidateInput if required.
2583
2584 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2585
2586         * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2587         #52521. Patch by liyul@hotmail.com.
2588
2589 2003-12-25  Jackson Harper <jackson@ximian.com>
2590
2591         * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2592         #52522.
2593         
2594 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2595
2596         * PageCompiler.cs: assign the ErrorPage property if provided.
2597
2598 2003-12-15  Jackson Harper <jackson@ximian.com>
2599
2600         * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2601         method if they are set.
2602         
2603 2003-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2604
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.
2608
2609 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2610
2611         * AspGenerator.cs: basic checking of ID validity.  Throw a
2612         ParseException when mixing languages.
2613
2614 2003-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2615
2616         * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2617         FrameworInitialize() if provided in @Page.
2618
2619         Fixes bug #51511.
2620
2621 2003-11-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2622
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.
2626
2627         This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2628
2629 2003-11-13  Jackson Harper <jackson@ximian.com>
2630
2631         * PageCompiler.cs: Call InitOutputCache when the OutputCache
2632         directive is set.
2633         
2634 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2635
2636         * AspGenerator.cs: use fileEncoding from configuration files.
2637
2638         * PageCompiler.cs: add assign statements for ContentType,
2639         ResponseEncoding and CodePage if supplied.
2640
2641 2003-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2642
2643         * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2644         a return statement for user controls with 'void' return type.
2645
2646 2003-10-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2647
2648         * AspParser.cs: fixed bug #49627.
2649
2650 2003-10-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2651
2652         * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2653
2654 2003-10-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2655
2656         * Directive.cs: new attribute for @Page directive in 1.1.
2657
2658 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2659
2660         * AspParser.cs:
2661         * TagAttributes.cs: allow duplicated runat=server attributes and display
2662         error page when duplicated attributes and runat is specified.
2663
2664 2003-10-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2665
2666         * AspTokenizer.cs: moved token numbers above unicode.
2667
2668 2003-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2669
2670         * AspGenerator.cs: don't process code render tags inside scripts. Check
2671         the language of the script and treat javascript as verbatim input.
2672         Fixes bug #48592.
2673
2674 2003-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2675
2676         * TemplateControlCompiler.cs: fixed bug #48212.
2677
2678 2003-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2679
2680         * WebServiceCompiler.cs: remove the temporary files here too.
2681
2682 2003-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2683
2684         * AspGenerator.cs: fixed bug #46429.
2685
2686 2003-08-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2687
2688         * Directive.cs: support @WebHandler.
2689         
2690 2003-07-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2691
2692         * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2693
2694 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2695
2696         * BaseCompiler.cs: first look for cached items, then generate the tree.
2697         This should speed things up.
2698
2699         * CachingCompiler.cs: when compiling web services, use the full path of
2700         the .asmx file as key when caching.
2701
2702         * WebServiceCompiler.cs: first look for cached items, then generate
2703         the source file.
2704
2705 2003-07-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2706
2707         * AspParser.cs: more useful error information,
2708
2709         * BaseCompiler.cs:
2710         * CachingCompiler.cs: honor the debug="true" option.
2711
2712         * TemplateControlCompiler.cs: small fixes for templates.
2713
2714 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2715
2716         * BaseCompiler.cs: made Compiler property virtual.
2717
2718         * CachingCompiler.cs: added support for compiling web services.
2719
2720         * WebServiceCompiler.cs: implemented.
2721
2722 2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2723
2724         * CachingCompiler.cs: fixed bug #43477.
2725
2726 2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2727
2728         * AspParser.cs:
2729         * AspTokenizer.cs: fixed bugs #43206 and #43371.
2730
2731 2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2732
2733         * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2734         of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2735         reporting.
2736
2737 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2738
2739         * CompilationException.cs: don't add duplicated lines in the case that
2740         mcs reports several errors for the same one.
2741
2742 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2743
2744         * AspGenerator.cs: fully support including files, ie., treat them just
2745         as C treats #includes.
2746
2747 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2748
2749         * AspGenerator.cs:
2750         * AspParser.cs:
2751         * TagType.cs: Added support for server side includes.
2752
2753 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2754
2755         * CSCompiler.cs: actually add the list of referenced assemblies to the
2756         compiler options. Throw a CompilationException if there's an error.
2757
2758         * CachingCompiler.cs: added a method to compile directly from a source
2759         file.
2760         
2761 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2762
2763         * AspGenerator.cs: copy the location before setting the value for the
2764         control builders.
2765
2766         * BaseCompiler.cs: changed parameters for CompilationException.
2767
2768         * CompilationException.cs: it takes now line numbers and error
2769         descriptions from the CompilerErrorCollection.
2770
2771         * Location.cs: used when a copy of an ILocation is needed.
2772
2773         * ParseException.cs: implemented new methods to provide line numbers
2774         and souce file.
2775
2776         * TemplateControlCompiler.cs: throw a ParseException where appropiate.
2777
2778 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2779
2780         * AspGenerator.cs: also support data bind syntax inside tags not
2781         processed as controls. Added debugging method.
2782
2783         * TemplateControlCompiler.cs: reset the number of data binding handlers 
2784         in the proper place. Small fix when getting the container type.
2785
2786 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2787
2788         * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory 
2789         value.
2790
2791 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2792
2793         * AspGenerator.cs: handle code render syntax in tag attributes.
2794
2795         * AspParser.cs: the constructor now takes a TextReader.
2796
2797         * TemplateControlCompiler.cs: removed comment.
2798
2799 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2800
2801         * TemplateControlCompiler.cs: added support for data bound properties.
2802
2803 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2804
2805         * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
2806         instead of their names.
2807
2808         * AspElements.cs: removed. No longer needed.
2809
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.
2813
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.
2817         
2818         * AspTokenizer.cs: added a few methods to help the parser implementing
2819         ILocation.
2820
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.
2824
2825         * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
2826
2827         * CachingCompiler.cs: simplified to use the new interfaces.
2828
2829         * CompilationException.cs: it's now using CompilationResult to report
2830         errors.
2831
2832         * CompilationResult.cs: Removed file.
2833
2834         * Directive.cs: to check for the validity of a directive.
2835
2836         * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
2837         in BaseCompiler.
2838
2839         * ILocation.cs: interface used to now the exact place where a parse
2840         error happens.
2841
2842         * PageCompiler.cs: generates a couple of methods that are only used in
2843         pages.
2844
2845         * ParseException.cs: use the ILocation interface.
2846
2847         * TagAttributes.cs: handles the attributes of the tags parsed.
2848
2849         * TagType.cs: an enum for the different kinds of tags.
2850
2851         * TemplateControlCompiler.cs: this is the one that does most of the
2852         conversion from teh ControlBuilder tree into a CodeDOM tree.
2853
2854         * UserControlCompiler.cs: simplified as most of the work is done in
2855         its base classes.
2856
2857         * WebServiceCompiler.cs: dummy.
2858
2859 2003-04-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2860
2861         * AspComponentFoundry.cs: added GetComponentType method.
2862
2863 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2864
2865         * AspTokenizer.cs: allow quotes inside server tags that are part of
2866         attribute values.
2867         
2868         * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
2869         compilation fails.
2870
2871 2003-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2872
2873         * AspGenerator.cs: generate correct appbase path. It was working with
2874         mcs but not with csc.
2875
2876         * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
2877
2878         * CachingCompiler.cs: quote source file.
2879
2880 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2881
2882         * AspGenerator.cs: now the Inherits attribute works as expected for
2883         global.asax file.
2884
2885 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2886
2887         * CompilationException.cs:
2888         * ParseException.cs: display the correct line number in error messages.
2889
2890         * AspElements.cs: added TargetSchema attribute for control. It's
2891         ignored.
2892
2893 2003-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2894
2895         * BaseCompiler.cs: fixed the hack to work under windows.
2896         * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
2897
2898 2003-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2899
2900         * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
2901
2902 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
2903
2904         * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
2905         app's private bin path
2906
2907 2003-03-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2908
2909         * AspGenerator.cs:
2910         * BaseCompiler.cs:
2911         * CachingCompiler.cs:
2912         * CompilationResult.cs:
2913         * GlobalAsaxCompiler.cs:
2914         * PageCompiler.cs:
2915         * UserControlCompiler.cs: recompile the page if dependencies change.
2916
2917 2003-02-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2918
2919         * AspGenerator.cs: corrected typo and wrong fix.
2920
2921 2003-02-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2922
2923         * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
2924         when used explicitly.
2925
2926 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2927
2928         * AspElements.cs: get the property Type for controls that use
2929         ParseChildren with a property name.
2930
2931         * AspGenerator.cs: generate correct signature for the method that
2932         adds controls to the default property in ParseChildren.
2933
2934 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2935
2936         * AspGenerator.cs: rethrow exceptions that may come from parsing or 
2937         compilation if a user control.
2938
2939 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2940
2941         * AspGenerator.cs: throw ParseException on parse
2942         error.
2943
2944         * AspParser.cs: added Line and Column props.
2945
2946         * CompilationException.cs: derives now from HtmlizedException.
2947
2948         * CompilationResult.cs: added fileName field.  Fixed set_ExitCode.
2949
2950         * GlobalAsaxCompiler.cs:
2951         * PageCompiler.cs:
2952         * UserControlCompiler.cs: pass the file name in the CompilationResult.
2953
2954         * ParseException.cs: new exception.
2955
2956
2957 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958
2959         * AspGenerator.cs: remove "file://" from the private bin path. Fixes
2960         bug #37628.
2961
2962 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2963
2964         * AspParser.cs: the parser fires events when it parses an element.
2965
2966         * GlobalAsaxCompiler.cs:
2967         * PageCompiler.cs:
2968         * UserControlCompiler.cs:
2969         * AspElements.cs: modified to use the new parser interface.
2970
2971         * AspGenerator.cs: modified to use the new parser. Merge multiple text
2972         strings into one single LiteralControl.
2973
2974         * AspTokenizer.cs: added Line and Column properties.
2975
2976 2003-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2977
2978         * AspParser.cs: fixed bug #36929.
2979
2980 2003-01-21  Tim Haynes <thaynes@openlinksw.com>
2981
2982         * AspGenerator.cs:
2983         * BaseCompiler.cs:
2984         * CachingCompiler.cs: changes to work around spaces and
2985         directory-separators in the local filesystem.
2986
2987 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2988
2989         * AspGenerator.cs: make the generated file compile with csc after last
2990         change.
2991
2992 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2993
2994         * AspGenerator.cs: removed unused variable. Added support for
2995         properties/fields of type string [].
2996
2997 2003-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2998
2999         * AspGenerator.cs: modified loading of the parent type now that
3000         Type.GetType is fixed.
3001
3002 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3003
3004         * AspGenerator.cs: cast to Control if the container does not implement
3005         INamingContainer.
3006
3007 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3008
3009         * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
3010
3011 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3012
3013         * AspElements.cs: attributes without value lacked a space afterwards.
3014
3015 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3016
3017         * AspGenerator.cs: functions for columns don't return anything. Fixed
3018         typo.
3019
3020 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3021
3022         * AspGenerator.cs: add data bound controls to code render function.
3023
3024 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3025
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.
3029
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
3032         directory.
3033
3034 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3035
3036         * AspElements.cs: added 'codebehind' attribute for page, control and
3037         application. It's ignored by MS, but allowed. Fixed typo.
3038
3039 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3040
3041         * AspGenerator.cs: fixed EnableSesssionState handling.
3042
3043 2003-01-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3044
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.
3048
3049 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3050
3051         * AspGenerator.cs: generate code like 'control.XXX = value' also for
3052         public fields (properties were being handled in that way too).
3053
3054 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3055
3056         * AspGenerator.cs: now it uses the current HttpContext when creating
3057         user controls. TemplateSourceDirectory is no longer a dummy value.
3058
3059         * GlobalAsaxCompiler.cs:
3060         * PageCompiler.cs:
3061         * UserControlCompiler.cs: set the context which will be used to locate
3062         the files.
3063         
3064 2002-12-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3065
3066         * AspGenerator.cs: added support for AutoEventWireup attribute in
3067         @Page and @Control.
3068
3069         * CompilationResult.cs:
3070         * GlobalAsaxCompiler.cs:
3071         * PageCompiler.cs:
3072         * UserControlCompiler.cs: store the options.
3073
3074 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3075
3076         * AspElements.cs: new method Tag.GetElements
3077         used to parse the inner contents of a tag looking for data binding or 
3078         code render tags.
3079         
3080         New property HtmlControlTag.ParseChildren allows
3081         differentiation of a couple of HtmlControls that has children as
3082         properties (namely HtmlTable and HtmlTableRow).
3083
3084         * AspGenerator.cs: fixed container semantics to
3085         match BindingContainer one. Implemented Inherits attribute for page and
3086         control.
3087
3088         Support HtmlControls that has ChildrenAsProperties.
3089         
3090         Generate code for data binding functions that matches the semantic of
3091         Container.
3092
3093         Handle data bound and code render attribute values.
3094
3095         Set proper value return for TemplateSourceDirectory. Should be relative
3096         to appPath.
3097         
3098         * BaseCompiler.cs: moved CompilerOptions and
3099         References handling here.
3100
3101         * CachingCompiler.cs: copy result of compilation.
3102
3103         * CompilationException.cs: simple ToString () implementation.
3104
3105         * CompilationResult.cs: implemented CopyFrom and ToString.
3106
3107         * GlobalAsaxCompiler.cs:
3108         * PageCompiler.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.
3112         
3113 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3114
3115         * AspElements.cs: added @Application directive.
3116
3117         * AspGenerator.cs: make it work also with application files. We
3118         currently generate an extra private function.
3119
3120 2002-11-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3121
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).
3125
3126 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3127
3128         * AspGenerator.cs: fixed target file name and generated class name.
3129         * BaseCompiler.cs: reference assemblies in PrivateBinPath.
3130
3131 2002-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3132
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.
3136
3137         * BaseCompiler.cs: base class for the various compiler types.
3138
3139         * CachingCompiler.cs: actually executes mcs and do some poor caching
3140         (it will use Cache when finished).
3141
3142         * CompilationException.cs: this exception has enough information to
3143         generate a nice error page.
3144         * CompilationResult.cs: used in caching.
3145
3146         * PageCompiler.cs: now derives from BaseCompiler
3147
3148         * TemplateFactory.cs: no longer needed.
3149
3150         * UserControlCompiler.cs: new class used when compiling user controls.
3151         * WebServiceCompiler.cs: derives from BaseCompiler.
3152
3153 2002-11-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3154
3155         * AspElements.cs: added ServerComment class.
3156         * AspParser.cs: ignore ServerComments tags. Remove server comments when 
3157         in verbatim mode.
3158
3159         Fixes #33482.
3160
3161         * PageCompiler.cs: check if the type is already cached before generating
3162         the C# file.
3163         * TemplateFactory.cs: if csFile parameter is null, only checks if we
3164         already have the page compiled.
3165
3166 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3167
3168         * AspGenerator.cs: undo one-liner change.
3169
3170 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3171
3172         * AspGenerator.cs: removed a few hacks no longer needed.
3173
3174 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3175
3176         * PageCompiler.cs: tracing.
3177         * TemplateFactory.cs: cache compiled types and tracing.
3178         * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
3179
3180 2002-10-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3181
3182         * AspComponentFoundry.cs: fixed typo.
3183         * TemplateFactory.cs: use csc style options.
3184         * AspGenerator.cs: don't use FileDependencies property of base class.
3185
3186 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3187
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.
3194
3195 2002-09-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3196
3197         * AspElements.cs: added WebService directive.
3198         * WebServiceCompiler.cs: New file.
3199
3200 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3201
3202         * PageCompiler.cs: fixed compilation.
3203
3204 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3205
3206         * PageCompiler.cs: generate C# file using AspGenerator.
3207
3208 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3209
3210         * AspComponentFoundry.cs: LookupFoundry now returns bool.
3211         * AspGenerator.cs: New file.
3212
3213 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3214
3215         * AspComponentFoundry.cs: New file.
3216         * AspElements.cs: renamed Component to Aspcomponent.
3217
3218 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3219
3220         * AspElements.cs:
3221         * AspParser.cs:
3222         * AspTokenizer.cs:
3223         * ChangeLog:
3224         * PageCompiler.cs:
3225         * TemplateFactory.cs: first steps to move xsp into System.Web.
3226