2009-04-03 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / ChangeLog
1 2009-04-03  Marek Habersack  <mhabersack@novell.com>
2
3         * AspParser.cs: local copy of checksum generated by the tokenizer
4         is made right after parsing is done.
5
6         * AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
7         InitParser. Avoids empty checksums in #pragma checksum.
8
9 2009-04-02  Marek Habersack  <mhabersack@novell.com>
10
11         * CompilationException.cs: skip warnings in ErrorMessage and
12         ErrorLines
13
14         * BuildManager.cs: when an error occurs while compiling the
15         requested virtual path, throw the exception, do not attempt to
16         build again.
17
18         * TemplateControlCompiler.cs: implemented missing converter for
19         the ExpandDepth property. Fixes bug #490860
20
21 2009-04-01  Marek Habersack  <mhabersack@novell.com>
22
23         * AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
24         added the 2 extra chars to pragmaChecksumStaticCount constant (the
25         ones added by Gonzalo below) and removed one NewLine to account
26         for Martin's change below.
27         VBCodePragmaGenerator.ReserveSpace - one newline follows
28         #ExternalSource.
29         VBCodePragmaGenerator.DecorateFile - one newline follows
30         #ExternalSource.
31
32 2009-04-01  Martin Baulig  <martin@ximian.com>
33
34         * AssemblyBuilder.cs: Don't emit a blank line after the #line as
35         thid'd cause all line numbers to be off by 1.
36
37 2009-03-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
38
39         * AssemblyBuilder.cs: the guid has to be quoted.
40
41 2009-03-31  Marek Habersack  <mhabersack@novell.com>
42
43         * All of the below are part of the fix for bug #489687
44
45         * ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
46         constructors.
47
48         * BuildProvider.cs: associated virtual path is stored internally
49         as an instance of VirtualPath, accessible via new
50         VirtualPathInternal property.
51
52         * BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
53         detect fake virtual paths.
54         GetBuildProvider now takes a VirtualPath instead of string for the
55         virtualPath parameter. The passed VirtualPath instance is passed
56         unchanged to BuildProvider.
57
58         * BuildManager.cs: AssertVirtualPathExists now uses
59         VirtualPath.IsFake to check for fake virtual paths.
60
61         * ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
62         MasterPageBuildProvider.cs, PageBuildProvider.cs,
63         ThemeBuildProvider.cs, UserControlBuildProvider.cs,
64         WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
65         CreateParser overloads now take a VirtualPath instead of a string
66         for the virtualPath parameter.
67
68         * ThemeBuildProvider.cs: use new parser constructors which take
69         VirtualPath instances instead of strings.
70
71 2009-03-30  Marek Habersack  <mhabersack@novell.com>
72
73         * AspTokenizer.cs: UpdateChecksum - fixed off-by-one bug when
74         processing the checksum buffer.
75
76         * AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
77         and #pragma lines (or its vb equivalent - #ExternalSource) to
78         code-behind files named in the CodeFile/Src directives while
79         copying them to the dynamic directory for compilation. The kludge
80         works by recognizing the .cs and .vb extensions and wrapping the
81         file contents in the appropriate directives. This is done in this
82         way because the other possible way, using the
83         CodeSnippetCompileUnit, requires the entire file to be read in
84         memory and then passed to CodeDOM. We fall back to this way when
85         the file being copied is neither C# or VB.
86
87 2009-03-25  Marek Habersack  <mhabersack@novell.com>
88
89         * AspTokenizer.cs: MD5 checksum calculation happens here. It's
90         done incrementally as characters are read.
91
92         * AspParser.cs: the MD5 checksum is no longer computed here. Moved
93         to AspTokenizer.
94         After parsing, both the tokenizer and the string reader are
95         disposed of.
96
97         * AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
98         prepration for future inclusion of checksum and line pragmas in
99         the file being copied.
100         Files are copied chunk by chunk, not by reading the entire
101         contents.
102
103 2009-03-23  Zoltan Varga  <vargaz@gmail.com>
104
105         * PageCompiler.cs: Fix the build.
106
107 2009-03-23  Marek Habersack  <mhabersack@novell.com>
108
109         * TemplateBuildProvider.cs: add values of the CodeFile and Src
110         page/master/control directives to the list of file dependencies.
111         Extract language also for master/page, not only for controls.
112
113         * PageCompiler.cs: CreateConstructors now triggers master page
114         build, if the current page is using one. Fixes bug #487857
115
116 2009-03-16  Marek Habersack  <mhabersack@novell.com>
117
118         * AspGenerator.cs: when parsing nested tags (includes tags inside
119         client-side javascript script blocks) pass the closing tag up to
120         the containing parser.
121         Instead of parsing the whole plain text contents, plus the two
122         constructs we're interested in from it using regexs. This is
123         necessary as we might be passed JavaScript code and without
124         understanding its syntax we'll confuse the '<' character for the
125         start of a tag.
126         TagParsed now better handles <script> tags. For both server and
127         client tags ProcessScript is called and the input text, in case of
128         client tags, is read verbatim to be processed when ProcessScript
129         is called to close the tag. At this point the verbatim text is
130         checked whether it contains server-side tags and/or expressions.
131
132 2009-03-12  Marek Habersack  <mhabersack@novell.com>
133
134         * BuildManager.cs, BuildManagerDirectoryBuilder.cs,
135         BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
136         returned as an IDictionary <string, bool>. Dependencies must be
137         compared case-insensitively.
138
139         * TemplateBuildProvider.cs: ExtractReferenceDependencies must also
140         extract the value of the Page attribute.
141
142 2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
143
144         * AppResourcesAssemblyBuilder.cs:
145         * BuildManagerDirectoryBuilder.cs:
146         * AspComponentFoundry.cs:
147         * AssemblyBuilder.cs:
148         * CachingCompiler.cs:
149         * AspGenerator.cs:
150         * WsdlBuildProvider.cs:
151         * BaseCompiler.cs:
152         * BuildProvider.cs:
153         * AppWebReferencesCompiler.cs:
154         * TemplateControlCompiler.cs:
155         * BuildManager.cs:
156         * AppCodeCompiler.cs: settings that have to be in
157         machine.config or the root level web.config now call
158         GetWebApplicationSection.
159
160 2009-02-26  Marek Habersack  <mhabersack@novell.com>
161
162         * TagAttributes.cs: modified ToString to return string formatted
163         in a more helpful way.
164
165         * AspParser.cs: added ToString, helpful when debugging.
166
167         * AspGenerator.cs: properly print leading and trailing plain text
168         when looking for embedded tags in ProcessTagsInAttributes.
169
170 2009-02-25  Marek Habersack  <mhabersack@novell.com>
171
172         * AspTokenizer.cs: put_back now uses a stack and allows more than
173         one invocation when called inside a tag.
174
175         * AspGenerator.cs: when a nested parser is used, pay attention to
176         server tags found inside client tags and add them to the control
177         tree.
178
179 2009-02-24  Marek Habersack  <mhabersack@novell.com>
180
181         * BuildManager.cs: Path.Combine must not be passed null first
182         parameter.
183
184 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
185
186         * System.Web.Compilation/BuildManager.cs: updated comment.
187
188 2009-02-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
189
190         * TemplateControlCompiler.cs: lowercase place holder names
191         * BuildManager.cs: initial support for precompiled sites.
192
193 2009-02-13  Marek Habersack  <mhabersack@novell.com>
194
195         * AspParser.cs: added an event raised when parsing is complete.
196
197         * AspGenerator.cs: added support for PageParserFilter which, if
198         found, is used to control certain aspects of code parsing
199         (accepting/rejecting control types, accepting/rejecting code
200         snippets, parsing completion)
201         Added the AddControl method, used by PageParserFilter when a
202         custom filter wants to inject a control in the current control
203         builder tree.
204
205 2009-02-05  Marek Habersack  <mhabersack@novell.com>
206
207         * AppResourcesCompiler.cs: implemented a type resolver for
208         ResXResourceReader so that it can correctly resolve
209         System.Resources types which are normally found in
210         System.Windows.Forms but are included by System.Web
211         directly. Without the type resolver, code comparing types inside
212         ResXResourceReader when file references are used in side the .resx
213         file will not work correctly. The reason for that is that .resx
214         files will name "System.Resources.ResXFileRef,
215         System.Windows.Forms" as the file reference handler, while inside
216         System.Web ResXFileRef will be of type
217         "System.Resources.ResXFileRef, System.Web". Fixes bug #466059
218
219         * GenericBuildProvider.cs: added a new virtual method, MapPath,
220         which can be overriden by builders which need special handling of
221         virtual path mapping.
222
223         * PageBuildProvider.cs: provide implementation of
224         GenericBuildProvider.MapPath which takes into account fake virtual
225         paths. Fixes bug #463950
226
227 2009-01-26  Marek Habersack  <mhabersack@novell.com>
228
229         * BuildManagerDirectoryBuilder.cs: added support for fake virtual
230         paths.
231
232         * CompilationException.cs: added a Message override to make error
233         messages more useful.
234
235 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
236
237         * AspComponentFoundry.cs: no need to throw. Caller handles a null
238         return value.
239
240 2009-01-23  Marek Habersack  <mhabersack@novell.com>
241
242         * BuildManager.cs: use -1 for infinite wait in calls to
243         Acquire{Reader,Writer}Lock ().
244
245 2009-01-22  Marek Habersack  <mhabersack@novell.com>
246
247         * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
248         attribute.
249
250         * BuildProvider.cs: added new internal virtual method,
251         ExtractDependencies() whose purpose is to extract virtual path
252         dependencies without compiling the code, if possible.
253         
254         * TemplateBuildProvider.cs: implemented the new
255         ExtractDependencies () method which uses regular expressions to
256         extract file dependencies from the source without having to
257         compile the file.
258
259         * CompilationException.cs: added a new public property, Results,
260         which returns the compilation results.
261
262         * BuildProviderGroup.cs: added. A simple class descending from
263         List <BuildProvider> which is used to hold a compilation batch -
264         that is a collection of BuildProvider instances.
265
266         * BuildManagerDirectoryBuilder.cs: new class which takes care of
267         generating compilation batches for the requested virtual path. A
268         set of batches is generated from files found in the same virtual
269         directory as the requested virtual path and all of the
270         dependencies of those files. All files are grouped in batches
271         within which no file depends upon its siblings. An attempt is made
272         to sort the batches from the "least dependent" to the "most
273         dependent" batches - i.e. the batches which do not depend on other
274         batches go to the top.
275         Code generating the batches now correctly detects dependency loops
276         and throws an exception when one is encountered.
277         Batches are represented as instances of a new class -
278         BuildProviderGroup.
279
280         * BuildManagerCacheItem.cs: added. Contains all the compilation
281         result information needed by BuildManager. See below.
282
283         * BuildManager.cs: complete batch building rewrite:
284          - only one build lock is held instead of a set of compilation
285            tickets. Only one thread can compile anything at one given
286            time.
287          - retrieving types from the build cache now uses a slim rw lock,
288            so that readers aren't blocked while compilation is in
289            progress. Writer lock is acquired only when adding a newly
290            compiled type to the build cache and when removing it after its
291            dependencies made it invalid.
292          - assembly references for each compilation are now collected
293            dynamically as the source is being compiled, this removed a lot
294            of complexity in dealing with assembles containing conflicting
295            types. As a consequence right now there may exist several
296            loaded assemblies containing the same type, but only the latest
297            of them will be used in new compiles.
298          - the thread compiling code can recurse into the Build method
299            which causes the recursively referenced code to be compiled
300            into a separate, uniquely named, assembly. This deals with all
301            recursion loops and dependency problems.
302          - automatic app domain restart after a certain number of compiles
303            is enabled now.
304          - improved compilation error handling. If a compilation error
305            occurs, the code attempts to recompile the assembly up to 3
306            times, each time removing from the batch the files/virtual
307            paths which failed parsing/compilation. If the attempts failed,
308            another one is made to compile only the virtual path requested
309            by the calling code. Only should that fail a compilation
310            exception is thrown. All the compilation errors are written to
311            stdout if the application is in the debug mode.
312          - changed assembly naming. It now generates assembly names based
313            on whether the compilation is recursive and whether the batch
314            being compiled contains more than one code unit or
315            not.
316          - compilation results are now stored in the cache as instances of
317            the new BuildManagerCacheItem class, which contains all the
318            information required by BuildManager to return types,
319            assemblies, dependencies etc.
320          - GetReferencedAssemblies now correctly returns only the
321            assemblies defined in the .config files.
322          - GetVirtualPathDependencies does not need to compile code
323            anymore in order to extract virtual path dependencies. New code
324            in BuildProvider.ExtractDependencies () takes care of that.
325          - a BuildManagerDirectoryBuilder class instance is used to
326            generate compilation batches.
327          - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
328          ReaderWriterLockSlim
329
330         * AssemblyBuilder.cs: added support for keeping track of which
331         code unit was generated by which BuildProvider andr which
332         BuildProvider produced a given source file. Both changes serve the
333         purpose of dealing with compilation errors in BuildManager.
334
335         * ApplicationFileBuildProvider.cs: added missing
336         BuildProviderAppliesTo attribute
337
338 2009-01-14  Marek Habersack  <mhabersack@novell.com>
339
340         * AspGenerator.cs: implemented a work around which allows the
341         server controls embedded in client tag attributes to be parsed and
342         compiled.
343
344 2009-01-13  Marek Habersack  <mhabersack@novell.com>
345
346         * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
347         GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
348         ControlBuilder cleanup.
349
350 2009-01-12  Marek Habersack  <mhabersack@novell.com>
351
352         * TemplateControlCompiler.cs: do not generate #line pragmas for
353         plain strings. Fixes bug #461214
354
355 2008-12-11  Marek Habersack  <mhabersack@novell.com>
356
357         * BaseCompiler.cs: added a new method, InitializeType, to be
358         overriden in child classes when any class initialization needs to
359         be performed before methods, constructors and fields are created.
360
361         * TemplateControlCompiler.cs: if the parser has any custom
362         controls registered, compile them here - in the InitializeType
363         method.
364
365 2008-12-10  Marek Habersack  <mhabersack@novell.com>
366
367         * ParseException.cs: made serializable.
368
369         * PageCompiler.cs: CreateStronglyTypedProperty calls
370         AddReferencedAssembly to add type's assembly to the unit's
371         references after the typed property has been created.
372
373         * BaseCompiler.cs: added a new helper method,
374         AddReferencedAssembly to be used whenever an assembly location
375         needs to be added to the compilation unit's list after the parsing
376         is done (e.g. when processing PreviousPageType or MasterPageType
377         properties in PageParser)
378
379 2008-12-08  Marek Habersack  <mhabersack@novell.com>
380
381         * TemplateControlCompiler.cs: use the correct regex match group
382         index in SanitizeBindCall (), fixes bug #457011
383
384 2008-12-05  Marek Habersack  <mhabersack@novell.com>
385
386         * BuildManager.cs: attempt to enter the compilation critical
387         section with a timeout up to 3 times before giving up. This avoids
388         deadlocks in situations where there are two virtual directores
389         each containing user controls referencing user controls from the
390         other directory.
391
392 2008-12-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
393
394         * AspParser.cs: reset to the next character in a partial match in case
395         of failure. Fixes bug #314688.
396
397 2008-12-01  Marek Habersack  <mhabersack@novell.com>
398
399         * TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
400         instances to the ContentPlaceHolders collection when the
401         placeholder is instantiated in the control build method, collect
402         the ids and store them in ContentPlaceHolders inside the
403         constructor. Fixes bug #449970
404         For each content placeholder generate a public virtual property
405         named "Template_PLACEHOLDERID", this is compatible with what .NET
406         does.
407
408         * BaseCompiler.cs: added new virtual method,
409         AddStatementsToConstructor, which is called just before
410         CreateConstructor returns.
411
412 2008-11-25  Marek Habersack  <mhabersack@novell.com>
413
414         * AspComponentFoundry.cs: GetComponentType methods replaced with
415         GetComponent returning an instance of AspComponent which fully
416         describes the registered item. Components are cached, indexed by
417         full tag name.
418
419         * AspComponent.cs: added
420
421 2008-11-21  Marek Habersack  <mhabersack@novell.com>
422
423         * CompilationException.cs: made serializable.
424
425         * TemplateControlCompiler.cs: make the Bind regex stricter.
426         When creating Eval expression from Bind, replace single quotes
427         with double quotes. Fixes bug #447597
428         When processing Bind expressions and the regex doesn't match,
429         throw an exception.
430
431 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
432
433         * AspTokenizer.cs: if there's a newline between the opening server tag
434         and any other special character, treat the block as a code-render
435         block.
436         Bug #445889 fixed.
437
438 2008-11-14  Marek Habersack  <mhabersack@novell.com>
439
440         * TemplateControlCompiler.cs: treat Eval and Bind expressions as
441         verbatim code. The only difference between the two is that in the
442         latter case Bind is replaced with Eval in the output code. Fixes
443         bug #444725
444         If BindingDirection of the parent template builder is OneWay in
445         RegisterBindingInfo, do not throw an exception but simply do not
446         register the binding.
447
448 2008-10-29  Marek Habersack  <mhabersack@novell.com>
449
450         * BuildManager.cs: seal the internal classes.
451         Remove unused BuildCacheItem.ValidBuild property.
452
453 2008-10-16  Marek Habersack  <mhabersack@novell.com>
454
455         * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
456         use PropertyInfo.CanWrite to check whether the property is
457         writable anymore, it calls GetSetMethod (false) instead.
458
459 2008-10-10  Marek Habersack  <mhabersack@novell.com>
460
461         * TemplateControlCompiler.cs: allow whitespace around parentheses 
462         in the Bind and Eval expressions.
463
464 2008-10-09  Marek Habersack  <mhabersack@novell.com>
465
466         * BuildManager.cs: if monoSettings section is found in the
467         system.web section in web.config, use its contents to augment
468         compiler configuration. Used to work around the issue reported in
469         bug #433806
470
471 2008-10-08  Marek Habersack  <mhabersack@novell.com>
472
473         * TemplateControlCompiler.cs: templates must be instantiated even
474         for builders which process children as properties.
475
476 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
477
478         * AssemblyBuilder.cs: use CodeBase to get to the original assembly
479         path because Location might point the the shadow copy. Bug #409646
480         and others fixed.
481
482 2008-10-03  Marek Habersack  <mhabersack@novell.com>
483
484         * BuildManager.cs: if an assembly fails to build out of a batch of
485         files, extract the virtual path that was requested by the client
486         and attempt to compile it alone.
487
488 2008-09-29  Marek Habersack  <mhabersack@novell.com>
489
490         * BuildManagerRemoveEntryEventHandler.cs: added
491
492         * BuildManager.cs: added a static event to notify interested
493         parties when an entry is removed from the buildCache. Fixes bug
494         #429926.
495
496 2008-09-26  Marek Habersack  <mhabersack@novell.com>
497
498         * BuildManager.cs: when creating a cache entry for a virtual path,
499         make it depend on a list of files built recursively from all the
500         virtual path's dependencies. Fixes bug #430114
501
502 2008-09-24  Andreia Gaita <avidigal@novell.com> 
503  
504         * AspParser.cs: When parsing text which contain xml tags that resemble
505         the end string, append the original text instead of the end string,
506         because the casing might not match between the two. Fixes #320445
507
508 2008-09-23  Marek Habersack  <mhabersack@novell.com>
509
510         * AspGenerator.cs: ignore whitespace only if it's between
511         CodeRender blocks, not between DataBinding and
512         CodeRenderExpression.
513
514 2008-09-01  Marek Habersack  <mhabersack@novell.com>
515
516         * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
517         null/empty parser.InputFile now.
518
519         * AspGenerator.cs: AddTypeToCache works checks whether inputFile
520         is null or empty and does not assume the dependencies ArrayList is
521         present.
522         CloseControl uses ControlBuilder's OriginalTagName property,
523         should the property/tag name be prefixed with 'prefix:'
524
525         * CachingCompiler.cs: expect the dependencies ArrayList to be null
526         or empty.
527
528 2008-08-31  Marek Habersack  <mhabersack@novell.com>
529
530         * TemplateControlCompiler.cs: trust builder.BindingContainerType
531         in the 2.0+ profile - do not use container properties to detect
532         the type.
533         Added a helper method, compiled only when DEBUG is defined, to
534         generate Console.WriteLine CodeDOM calls.
535         Templates are processed before anything else, so that children
536         which may depend on parent's templates can get access to them.
537
538         * BaseCompiler.cs: add line pragmas only if enabled for the
539         current file.
540
541 2008-08-29  Marek Habersack  <mhabersack@novell.com>
542
543         * AppCodeCompiler.cs: properly handle profile base class
544         specifications which refer to full type names.
545
546 2008-08-26  Marek Habersack  <mhabersack@novell.com>
547
548         * BuildManager.cs: use VirtualPathUtility.Combine in
549         GetAbsoluteVirtualPath for non-rooted paths.
550
551 2008-08-19  Marek Habersack  <mhabersack@novell.com>
552
553         * ThemeDirectoryBuildProvider.cs: theme directory dependencies
554         should use only virtual paths for CSS files. Fixes bug #397187
555
556 2008-08-18  Marek Habersack  <mhabersack@novell.com>
557
558         * TemplateControlCompiler.cs: process expression when they are
559         used used in values of attributes without associated
560         properties. Fixes bug #417883
561
562         * ResourceExpressionBuilder.cs: added two overloads of
563         CreateGetLocalResourceObject to encompass cases when the generated
564         expression is not assigned to a property but rather used as a
565         parameter to the SetAttribute method. Fixes bug #417883
566
567 2008-08-14  Marek Habersack  <mhabersack@novell.com>
568
569         * AspGenerator.cs: do not ignore directives inside HTML comments.
570
571         * TemplateControlCompiler.cs: .NET allows for whitespace between
572         the directive start (<%) and the directive type character. Added
573         code which copes with such situations correctly.
574
575 2008-08-13  Marek Habersack  <mhabersack@novell.com>
576
577         * TemplateControlCompiler.cs: rewrote the Bind regular expressions
578         to allow for single quotes and an optional second parameter to the
579         "call".
580         Added an Eval regular expression.
581         Both Bind and Eval calls in data expressions are now converted
582         into a CodeDOM method invocations, to allow support for possible
583         languages which use a different call format (previously code
584         snippets were used)
585         Added a method to construct the Eval invoke expression which
586         simplifies code in other areas.
587         
588
589 2008-08-06  Marek Habersack  <mhabersack@novell.com>
590
591         * TemplateControlCompiler.cs: handle situation when a property of
592         a control for which we're generating the code is of type
593         'Type'. In such case, variable.GetType() will return
594         System.MonoType, which must not be output to the generated
595         source. Thanks to Robert Jordan for giving the idea for the hack!
596
597 2008-06-30  Marek Habersack  <mhabersack@novell.com>
598
599         * AspGenerator.cs: hush the warnings and fix invalid type
600         comparison.
601
602         * AssemblyBuilder.cs: hush the warnings and add some debugging
603         CWLs.
604
605         * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
606         CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
607         SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
608
609 2008-06-18  Marek Habersack  <mhabersack@novell.com>
610
611         * TemplateControlCompiler.cs: AddChildCall properly processes the
612         PartialCachingAttribute now.
613
614 2008-06-11  Marek Habersack  <mhabersack@novell.com>
615
616         * BuildManager.cs: if an error occurs while assigning the
617         requested path to an assembly builder inside BuildAssembly, throw
618         an exception.
619
620         * BaseCompiler.cs: do not generate #line pragma for code which
621         exists only in memory.
622
623 2008-05-30  Marek Habersack  <mhabersack@novell.com>
624
625         * ClientBuildManager.cs: do not use synthetized event accessors
626         (to avoid locks).
627
628 2008-05-28  Marek Habersack  <mhabersack@novell.com>
629
630         * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
631         for #pragma checksum
632
633 2008-05-19  Marek Habersack  <mhabersack@novell.com>
634
635         * AspGenerator.cs: if the last tag parsed was a code directive,
636         ignore any accumulated text if it's 100% whitespace.
637         Do not parse code render directives inside comments.
638
639 2008-05-15  Marek Habersack  <mhabersack@novell.com>
640
641         * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
642         when adding a foundry to the array list. AssemblyFoundry instances
643         are stacked at the end of the array list in a LIFO manner. That
644         way TagNameFoundry takes precedence over AssemblyFoundry should
645         the two contain the same type.
646
647 2008-05-14  Marek Habersack  <mhabersack@novell.com>
648
649         * ParseException.cs: location can be null in the FileText property
650         getter.
651
652 2008-05-07  Marek Habersack  <mhabersack@novell.com>
653
654         * AspGenerator.cs: push the include file directory to the parser
655         include directory stack and pop it after parsing the include, so
656         that the relative file paths are resolved correctly. Fixes bug
657         #324536
658
659 2008-05-06  Marek Habersack  <mhabersack@novell.com>
660
661         * TemplateControlCompiler.cs: compatibility - added the
662         __stringResource static field to the generated class and a call to
663         SetStringResourcePointer to the FrameworkInitialize method.
664
665         * PageCompiler.cs: __fileDependencies should also be defined in
666         the 1.x profile.
667         Page properties assigned in the page directive should be set
668         inside BuildControlTree in the 2.0 profile.
669
670 2008-04-29  Marek Habersack  <mhabersack@novell.com>
671
672         * WebServiceCompiler.cs: if compiling a body-less web service, try
673         to load the class type from the loaded assemblies before
674         attempting to find it in the assemblies on disk.
675
676 2008-04-28  Marek Habersack  <mhabersack@novell.com>
677
678         * BuildManager.cs: ignore bad assemblies in the bin/
679         directory. Fixes bug #315816
680
681 2008-04-26  Marek Habersack  <mhabersack@novell.com>
682
683         * GenericBuildProvider.cs: the Parse () method should reuse the
684         previously opened TextReader when calling generator.Parse (), to
685         avoid opening the input file multiple times. Fixes bug #383881
686
687 2008-04-25  Marek Habersack  <mhabersack@novell.com>
688
689         * AspGenerator.cs: put some safeguards in, to make sure streams
690         are closed in any case.
691
692 2008-04-24  Marek Habersack  <mhabersack@novell.com>
693
694         * AspComponentFoundry.cs: added a new GetComponentType overload
695         which returns component source and a boolean flag whether the
696         control was registered from web.config (2.0).
697
698 2008-04-22  Marek Habersack  <mhabersack@novell.com>
699
700         * BuildManager.cs: ignore also arbitrary exceptions when
701         batch-building an assembly. Fixes bug #323556
702
703 2008-04-19  Marek Habersack  <mhabersack@novell.com>
704
705         * BuildManager.cs: use absolute virtual path to query the
706         VirtualPathProvider for path existence.
707         When ASP.NET is self-hosted, force
708         non-batch compilation. Fixes bug #380985
709
710         * ILocation.cs: added a new property, FileText.
711         
712         * Location.cs: added implementation of the ILocation.FileText
713         property.
714
715         * ParseException.cs: use the new ILocation.FileText, if defined,
716         to get the file source.
717         
718         * AspGenerator.cs: when TextReader is present, use it to read with
719         the VirtualPathProvider to read the file source. Fixes bug #381364
720
721         * AspParser.cs: added a new property FileText to provide the file
722         contents which was read in the constructor.
723
724 2008-04-18  Marek Habersack  <mhabersack@novell.com>
725
726         * BuildManager.cs: when any parsing error occurs during batch
727         building, ignore the file which caused it. If the file with
728         parsing error is the one requested by user, throw the parsing
729         exception. Fixes bug #323742
730
731 2008-04-15  Marek Habersack  <mhabersack@novell.com>
732
733         * CachingCompiler.cs: dispose of streams the way it should
734         be done.
735
736 2008-04-09  Marek Habersack  <mhabersack@novell.com>
737
738         * BuildManager.cs: refactoring - the SetCommonParameters and
739         GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
740         and made internal static.
741         Do not catch compilation exceptions and wrap them in
742         HttpException, let the CompilationException pass through. Fixes
743         bug #377904
744
745         * AppWebReferencesCompiler.cs: added - support for compiling of
746         wsdl files found in the App_WebResources directory. Fixes bug
747         #377934
748
749         * BuildProvider.cs: refactoring - moved the SetCommonParameters
750         and GetDefaultCompilerTypeForLanguage to BuildManager
751
752         * WsdlBuildProvider.cs: added the CodeCompilerType property
753         override.
754         Namespace for the generated code is taken from the wsdl path,
755         relative to App_Code or App_WebReferences, if the wsdl in question
756         is under on of those directories.
757         GenerateCode uses OpenReader () so that VirtualPathProvider works
758         for wsdl files.
759
760         * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
761         when generating source from code unit and use
762         WebEncoding.FileEncoding when adding code files to the unit. Fixes
763         bug #377938
764         Cope with virtualPath being null in BuildAssembly.
765         Reference assemblies specified in web.config when linking.
766
767 2008-04-08  Marek Habersack  <mhabersack@novell.com>
768
769         * AspComponentFoundry.cs: add loaded assembly to the
770         BuildManager's list of referenced assemblies instead to
771         WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
772
773         * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
774
775         * BuildManager.cs: switched to VirtualPath instead of a string
776         path in several methods.
777         Batch compilation is turned off if we have a custom
778         VirtualPathProvider which implements only the VirtualFile and
779         falls back to DefaultVirtualDirectory implementation for directory
780         access.
781         Added an internal method AddToReferencedAssemblies.
782         Remove invalidated entry from
783         WebConfigurationManager.ExtraAssemblies.
784
785         * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
786
787         * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
788
789         * AssemblyBuilder.cs: constructors use the new VirtualPath class
790         now.
791         AddCodeFile can use the VirtualPathProvider if necessary now.
792         BuildAssembly overloads accept VirtualPath parameter instead of a
793         string path now.
794
795         * TemplateBuildProvider.cs: GetCodeBehindSource returns the
796         virtual path now.
797
798 2008-03-31  Marek Habersack  <mhabersack@novell.com>
799
800         * AppCodeCompiler.cs: implemented support for AppInitialize (a
801         static method in any class defined in the App_Code source files),
802         ran just after the App_Code assemblies are compiled in order to
803         perform any application initialization actions.
804
805 2008-03-27  Marek Habersack  <mhabersack@novell.com>
806
807         * BuildManager.cs: AssertVirtualPathExists now queries the
808         VirtualPathProvider for path existence if physical path check
809         fails, before throwing the 404 exception.
810
811 2008-03-13  Marek Habersack  <mhabersack@novell.com>
812
813         * BuildManager.cs: if we're running in a case-insensitive
814         environment, use case-insensitive comparer for the build caches. 
815
816 2008-02-29  Marek Habersack  <mhabersack@novell.com>
817
818         * BuildManager.cs: implement a mechanism to ignore certain virtual
819         paths when batch compiling. Helps applications which may have
820         .as?x files which won't work on mono for various reasons (one such
821         sample is mojoportal).
822
823 2008-02-28  Marek Habersack  <mhabersack@novell.com>
824
825         * TemplateControlCompiler.cs: make sure that data-bound attribute
826         assignments properly convert the Bind expression to the Eval
827         one. Fixes bug #362039
828
829         * AspGenerator.cs: in 2.0+, aspx files which contain the Content
830         controls can contain only them, whitespace and directives. Fixes
831         bug #339747
832
833 2008-02-27  Marek Habersack  <mhabersack@novell.com>
834
835         * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
836         LoadType method for the 2.0 profile.
837
838         * CompilationException.cs: use a different format of ErrorMessage
839         for the 2.0+ profile.
840
841 2008-02-26  Marek Habersack  <mhabersack@novell.com>
842
843         * BuildManager.cs: known file types extensions are now matched
844         case-insensitively.
845
846 2008-02-25  Marek Habersack  <mhabersack@novell.com>
847
848         * TemplateControlCompiler.cs: GetContainerType now checks whether
849         the binding container returned from the builder implements
850         IDataItemContainer (for 2.0+ profiles) and looks for one more
851         property, Rows, if no Items property is found.
852
853 2008-02-08  Gert Driesen  <drieseng@users.sourceforge.net>
854
855         * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
856         "raw" appsetting value if targetType is null.
857
858 2008-02-07  Marek Habersack  <mhabersack@novell.com>
859
860         * CompilationException.cs: added new constructor which takes
861         CompilerResults as one of the parameters.
862         Added CompilerOutput property.
863
864         * AssemblyBuilder.cs: use the new CompilationError constructor.
865
866         * BuildManager.cs: check for virtualPath existence before
867         attempting to compile the assemblies. Fixes bug #359465
868
869 2008-02-06  Marek Habersack  <mhabersack@novell.com>
870
871         * GenericBuildProvider.cs: GetGeneratedType may return a type even
872         though the results are null.
873
874         * AssemblyBuilder.cs: if there are no units, no source files, no
875         resources and no embedded resources in the passed options then
876         do not attempt to compile the assembly. Fixes bug #359325
877
878         * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
879         BuildAssembly may return null results.
880
881         * BuildManager.cs: protect non-page builds from endless recursion
882         if a non-page file recursively references/includes another file
883         from the same batch. If such case is detected, the recursively
884         referenced file is compiled into a separate assembly and removed
885         from the previous compilation batch. Fixes bug #358742.
886         If AssemblyBuilder returns no results from BuildAssembly, it might
887         mean we're dealing with a compilation of empty .as[hm]x files,
888         with no code and only code-behind in bin/. Do not report an error
889         in that case, only add the compiled types to the cache. Fixes bug
890         #357624.
891
892 2008-02-05  Marek Habersack  <mhabersack@novell.com>
893
894         * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
895         non-rooted relative paths to absolute ones now. Fixes bug
896         #357504.
897
898         * GenericBuildProvider.cs: introduced a new abstract method,
899         GetReferencedAssemblies, which is called on descendant builders to
900         get a list of assemblies referenced by the parsed file. Fixes bug
901         #357499.
902
903         * AssemblyBuilder.cs: added a new overload of the
904         AddAssemblyReference method, to be used by build providers to
905         register assemblies collected by the corresponding parser.
906
907         * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
908         overload of the new abstract method GetReferencedAssemblies.
909
910         * AspGenerator.cs: introduced a new overload for the Parse method
911         which accepts a bool indicating whether or not to initialize the
912         parser. The overload is used when parsing server-side
913         includes. Fixes bug #357498
914
915 2008-02-04  Marek Habersack  <mhabersack@novell.com>
916
917         * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
918         generating source code files. Fixes bug #357053.
919
920         * AspGenerator.cs: set isApplication before parsing. Fixes bug
921         #357036.
922
923 2008-01-31  Jb Evain  <jbevain@novell.com>
924
925         * AspGenerator.cs: correct typo. Fix #357547.
926
927 2008-01-27  Marek Habersack  <mhabersack@novell.com>
928
929         * BuildManager.cs: GetReferencedAssemblies includes the extra
930         assemblies and the App_Code assemblies. Patch from Mike Morano
931         <mmorano@mikeandwan.us>, thanks!
932
933 2008-01-24  Marek Habersack  <mhabersack@novell.com>
934
935         * WebHandlerBuildProvider.cs: derive from the new
936         SimpleBuildProvider class.
937
938         * BuildManager.cs: full implementation of the batch compilation
939         for the 2.0 profile. The implementation is most probably different
940         to MS.NET's but the effects are the same (or nearly the same -
941         there are some minor differences). There are missing bits and
942         pieces, but minor ones - to be added later.
943
944         * SimpleBuildProvider.cs: new build provider abstract class
945         deriving from the GenericBuildProvider that implements common code
946         for building web handlers and web services.
947
948         * GenericBuildProvider.cs: new generic abstract class used to
949         implement base builder code for all the build provider types and
950         maximize code reuse.
951
952         * PageBuildProvider.cs: derive from the new TemplateBuildProvider
953         class and implement all the necessary abstract members. 
954         Handle "fake" virtual paths, to properly support generating of the
955         WSDL helper code.
956
957         * BuildProvider.cs: SetVirtualPath now converts the passed path to
958         absolute URL.
959         Added internal virtual method GenerateCode, used by derived
960         classes.
961         SetCommonParameters no longer sets the referenced assemblies, this
962         is done in BuildManager now.
963         Added an internal virtual property CodeUnit which returns the
964         build provider's compilation unit.
965
966         * PageCompiler.cs: fix assignment of base types for asynchronous
967         pages, to match MS.NET.
968         For asynchronous pages, add the necessary methods generation.
969
970         * BaseCompiler.cs: default namespace is now set using a constant.
971         Renamed the Init method into ConstructType, to better reflect its
972         purpose and made the method internal - it is used by the build
973         providers.
974         Added several CreateProvider overloads for easier and more unified
975         compilation provider creation.
976         Added an internal MainClassType property to enable class type name
977         retrieval from other parts of the class hierarchy.
978
979         * ApplicationFileBuildProvider.cs: new build provider deriving
980         from the TemplateBuildProvider class to compile the global.asax
981         file.
982
983         * AspGenerator.cs: properly handle parsers which have no input
984         file path given, but use TextReader instead.
985         Dependencies are virtual paths now, convert them to physical ones
986         before creating cache dependency.
987
988         * CachingCompiler.cs: parser dependencies are virtual paths now,
989         convert them to physical ones before creating cache dependency.
990
991         * AssemblyBuilder.cs: full implementation of the documented
992         functionality as well as a lot of internal build code
993         added. Produces assemblies using the same style what MS.NET for
994         temporary and target file naming. Handles partial type squashing
995         if the same partial type is used by several code compile units
996         added to the same builder instance.
997
998         * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
999         base class and add implementation of all the abstract methods
1000         required by it.
1001
1002         * ThemeDirectoryBuildProvider.cs: new build provider to compile
1003         theme directories. Replaces the old ThemeDirectoryCompiler class.
1004
1005         * UserControlBuildProvider.cs: use the new TemplateBuildProvider
1006         base class and add implementation of all the abstract methods
1007         required by it.
1008
1009         * TemplateBuildProvider.cs: new internal abstract class which
1010         implements the common tasks for all the template control build
1011         providers.
1012
1013         * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
1014         type to implement building.
1015
1016 2008-01-17  Igor Zelmanovich <igorz@mainsoft.com>
1017
1018         * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
1019
1020 2008-01-08  Marek Habersack  <mhabersack@novell.com>
1021
1022         * TemplateControlCompiler.cs: statements to assign
1023         fields/properties from resources must be processed at the very end
1024         of the control creation method. Some controls (like HyperLink) can
1025         set their Text attribute using literal content. In such cases, in
1026         order to properly localize the control, the value read from the
1027         local page resources must be assigned after the literal value has
1028         been added to the control. Fixes bug #323494
1029
1030 2008-01-07  Marek Habersack  <mhabersack@novell.com>
1031
1032         * CachingCompiler.cs: added an overload to the Compile method
1033         which accepts a flag whether or not to include debug information
1034         in the generated assembly.
1035
1036 2008-01-02  Marek Habersack  <mhabersack@novell.com>
1037
1038         * TemplateControlCompiler.cs: add line pragma wherever necessary.
1039
1040         * PageCompiler.cs: reorder the statements to match MS.NET output.
1041         Output line pragma information for directive attributes.
1042
1043         * BaseCompiler.cs: add a set of AddLinePragma methods for various
1044         CodeDOM elements. 
1045         Output line pragmas when adding server-side scripts to the CodeDOM
1046         tree.
1047
1048         * AspGenerator.cs: use ServerSideScript to store script location
1049         in the original file.
1050
1051         * UserControlCompiler.cs: output line pragmas for the init
1052         method.
1053
1054 2007-12-28  Marek Habersack  <mhabersack@novell.com>
1055
1056         * PageCompiler.cs: MS.NET compatibility: added the
1057         __fileDependencies object to the generated class.
1058         Refactored the output to match MS.NET more closely.
1059         IHttpHandler or IHttpAsyncHandler are now added to the generated
1060         class list of implemented interfaces.
1061         
1062         * BaseCompiler.cs: Main class field references are prefixed with
1063         'global::' now. 
1064         Refactored the output to match MS.NET more closely.
1065
1066 2007-12-27  Marek Habersack  <mhabersack@novell.com>
1067
1068         * BaseCompiler.cs: check for base type globality in all the
1069         location it is used.
1070
1071 2007-12-23  Vladimir Krasnov  <vladimirk@mainsoft.com>
1072
1073         * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
1074         to property type
1075
1076 2007-12-21  Marek Habersack  <mhabersack@novell.com>
1077
1078         * BaseCompiler.cs: Refactoring. Move the provider creation code to
1079         an internal static method, so that other piece of code which need
1080         to create the provider can do it using the same code. 
1081         Added setters to several internal properties, so that they can be
1082         shared with derivative classes.
1083
1084         * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
1085         #350398.
1086
1087         * CachingCompiler.cs: adjust to the changes above. Also some
1088         refactoring.
1089
1090 2007-12-15  Marek Habersack  <mhabersack@novell.com>
1091
1092         * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
1093
1094         * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
1095         profile, it's obsoleted. CachingCompiler will use the
1096         CodeDomProvider methods directly in that case.
1097
1098         * WebServiceCompiler.cs: Updated GetCompiledType to acquire
1099         compiler information for the 2.0 profile from system.codeDom.
1100
1101         * CachingCompiler.cs: the Compile overloads do not use the
1102         compiler instance, but call appropriate methods on the
1103         CodeDomProvider instance directly.
1104         Updated some Compile overloads to acquire compiler information for
1105         the 2.0 profile from system.codeDom.
1106
1107 2007-12-14  Juraj Skripsky  <js@hotfeet.ch>
1108
1109         * TemplateControlCompiler.cs (AddExpressionAssign):
1110         Make sure expression does not contain prefix.
1111         
1112         * AppSettingsExpressionBuilder.cs: Pass type of property to
1113         GetAppSetting, not type of declaring type.
1114
1115 2007-12-13  Marek Habersack  <mhabersack@novell.com>
1116
1117         * TemplateControlCompiler.cs, AspComponentFoundry.cs,
1118         AssemblyBuilder.cs, AppResourcesCompiler.cs,
1119         AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
1120         optimization - use String.Concat instead of String.Format in some
1121         cases.
1122
1123 2007-11-22  Marek Habersack  <mhabersack@novell.com>
1124
1125         * PageCompiler.cs: use
1126         pageParser.OutputCacheVaryByContentEncodings when initializing the
1127         output cache in the 2.0 profile.
1128
1129 2007-11-06  Marek Habersack  <mhabersack@novell.com>
1130
1131         * BuildManager.cs: properly retrieve the BuildProviderCollection
1132         from configuration files.
1133
1134 2007-11-03  Marek Habersack  <mhabersack@novell.com>
1135
1136         * TemplateControlCompiler.cs: do not call converters specified in
1137         the member custom attributes if 'str' is null in
1138         GetExpressionFromString.
1139
1140 2007-10-23  Marek Habersack  <mhabersack@novell.com>
1141
1142         * AppResourcesAssemblyBuilder.cs: do not output preservation files
1143         for satellite assemblies, just for the main assembly. Also, don't
1144         add the satellite assemblies to the list of top-level assemblies.
1145
1146 2007-10-17  Marek Habersack  <mhabersack@novell.com>
1147
1148         * PageCompiler.cs: added code to set the AsyncMode and
1149         AsyncTimeout Page properties.
1150
1151 2007-10-15  Marek Habersack  <mhabersack@novell.com>
1152
1153         * TemplateControlCompiler.cs, WebServiceCompiler.cs,
1154         BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
1155         HttpApplication.LoadType instead of Type.GetType.
1156
1157 2007-10-10  Marek Habersack  <mhabersack@novell.com>
1158
1159         * TemplateControlCompiler.cs: be careful when using type
1160         converters taken from attributes attached to class members. They
1161         may come from the System.Design namespace, which is mostly not
1162         implemented on Mono.
1163
1164 2007-10-01  Marek Habersack  <mhabersack@novell.com>
1165
1166         * AppResourcesCompiler.cs: resources are no longer compiled into a
1167         single assembly. Instead, the common assembly construction code
1168         has been moved to AppResourcesAssemblyBuilder to use satellite
1169         assemblies.
1170
1171         * AppResourcesAssemblyBuilder.cs: new resource assembly
1172         construction code which takes care of outputting satellite
1173         assemblies.
1174
1175 2007-09-27  Marek Habersack  <mhabersack@novell.com>
1176
1177         * TemplateControlCompiler.cs: support nullable types in
1178         GenerateExpressionFromString.
1179
1180 2007-09-21  Marek Habersack  <mhabersack@novell.com>
1181
1182         * TemplateControlCompiler.cs: if we're running on a platform with
1183         the directory separator character that's different to the Unix
1184         style '/' one, convert the input file path to the virtual path
1185         style string, with path parts separated by '/'. Patch from Robert
1186         Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
1187         
1188 2007-09-20  Marek Habersack  <mhabersack@novell.com>
1189
1190         * TemplateControlCompiler.cs: if a member passed to
1191         GetExpressionFromString has a TypeConverter attribute set, try to
1192         use the named type converter to convert the string value into the
1193         target type. Fixes bug #325489.
1194
1195 2007-09-14  Marek Habersack  <mhabersack@novell.com>
1196
1197         * AppResourcesCompiler.cs: use _culture and _resourceManager
1198         instead of culture and resourceManger in the generated code, to
1199         avoid case problems for languages that are case-insensitive.
1200
1201 2007-09-10  Marek Habersack  <mhabersack@novell.com>
1202
1203         * TemplateControlCompiler.cs: cast the expression to the field
1204         type whenever appropriate in GetExpressionFromString.
1205         When generating an object instance and one of the parameters is
1206         System.Type, return a typeof expression.
1207
1208 2007-09-07  Marek Habersack  <mhabersack@novell.com>
1209
1210         * TemplateControlCompiler.cs: another modification to the way
1211         TemplateInstance.Single templates are treated. The search for
1212         parent with this attribute set stops as soon as the first
1213         TemplateBuilder is encountered, no matter what the value of its
1214         TemplateInstance attribute is.
1215
1216 2007-09-06  Marek Habersack  <mhabersack@novell.com>
1217
1218         * TemplateControlCompiler.cs: ID must be assigned as soon as
1219         possible, before any other attributes of the control are
1220         accessed. The control code may rely on ID being set.
1221         Extend the process of checking if a control is located within a
1222         template with the TemplateInstance.Single attribute set, to all
1223         the parents of the current builder.
1224
1225 2007-09-05  Marek Habersack  <mhabersack@novell.com>
1226
1227         * ThemeDirectoryCompiler.cs: all the skin files compiled in one
1228         batch must share the same component foundry. Under MS.NET if any
1229         earlier .skin file registers a control prefix any later .skin
1230         files may use it without registering.
1231
1232 2007-09-04  Marek Habersack  <mhabersack@novell.com>
1233
1234         * TemplateControlCompiler.cs: make sure that base class doesn't
1235         contain a field of the same name which is accessible from the
1236         current control if we're within a singleton template.
1237         When generating code for a property or field, use the name
1238         retrieved from the metadata by reflection instead of the one
1239         parsed from html. Fixes bug #82687. Patch from SunHo Kim
1240         <zsunno@gmail.com>, thanks!
1241
1242 2007-08-29  Marek Habersack  <mhabersack@novell.com>
1243
1244         * CachingCompiler.cs: consider contents of the
1245         <compilation><assemblies> section when constructing a list of
1246         assemblies during compilation.
1247
1248         * TemplateControlCompiler.cs: mark fields corresponding to the
1249         controls as global references.
1250         When control tree is constructed and the parent of the current
1251         builder is a TemplateBuilder marked with the TemplateInstance
1252         attribute set to Single, use the control's ID as the field
1253         name. This makes it possible to refer to controls inside templates
1254         by name instead of by using FindControl.
1255
1256 2007-08-23  Marek Habersack  <mhabersack@novell.com>
1257
1258         * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
1259         and HttpApplication.LoadTypeFromBin.
1260
1261         * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
1262         AddAssembliesInBin.
1263
1264 2007-08-21  Marek Habersack  <mhabersack@novell.com>
1265
1266         * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
1267         to look up assemblies in the binary path(s).
1268
1269 2007-08-19  Juraj Skripsky <js@hotfeet.ch>
1270
1271         * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
1272         for scope case insensitive. Fixes bug #82479.
1273
1274 2007-08-14  Marek Habersack  <mhabersack@novell.com>
1275
1276         * TemplateControlCompiler.cs: remove dead code.
1277
1278         * AssemblyBuilder.cs: include actual exception information when
1279         reporting inability to load a compiled assembly.
1280
1281         * AppCodeCompiler.cs: remove unused variables.
1282
1283         * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
1284         component collections, instead of the old Queue which implemented
1285         FIFO. Fixes situations when a control registered later for a
1286         certain prefix would not be used in preference to a previously
1287         registered one of the same name.
1288
1289 2007-08-06  Marek Habersack  <mhabersack@novell.com>
1290
1291         * AspComponentFoundry.cs: properly add new foundry if the
1292         corresponding entry in the foundries collection is a Queue. Patch
1293         from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
1294
1295 2007-07-31  Marek Habersack  <mhabersack@novell.com>
1296
1297         * AspComponentFoundry.cs: do not overwrite previously registered
1298         foundries when a new one is registered with the same prefix. Fixes
1299         bug #82216
1300
1301 2007-07-18  Marek Habersack  <mhabersack@novell.com>
1302
1303         * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
1304         does not look up the Item/Items properties to determine the
1305         container type, instead it just returns the type reported by the
1306         builder passed to this method. This change makes the generated
1307         code match MS.NET. Fixes bug #82119.
1308
1309 2007-07-02  Marek Habersack  <mhabersack@novell.com>
1310
1311         * TemplateControlCompiler.cs: don't use StartWith to see if a
1312         variable's value is a bind expression, as it erroneously renames
1313         all calls to methods starting with the string Bind. Use a regular
1314         expression now instead. Fixes bug #81928.
1315
1316 2007-06-20  Marek Habersack  <mhabersack@novell.com>
1317
1318         * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
1319         private entries.
1320         * CachingCompiler.cs: as above
1321         * AspGenerator.cs: as above
1322
1323 2007-06-13  Marek Habersack  <mhabersack@novell.com>
1324
1325         * TemplateControlCompiler.cs: make sure control has a writable
1326         TemplateControl property prior to assigning values to it.
1327
1328 2007-06-09  Marek Habersack  <mhabersack@novell.com>
1329
1330         * TemplateControlCompiler.cs: TemplateControl is assigned for
1331         controls that are placed within ContentPlaceHolder and not for the
1332         ContentPlaceHolder itself.
1333         No longer add the overriden version of TemplateSourceDirectory to
1334         the generated source, all the work is now done in
1335         Control.TemplateSourceDirectory.
1336
1337         * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
1338         slash, for compatibility with MS.NET
1339
1340 2007-06-05  Marek Habersack  <mhabersack@novell.com>
1341
1342         * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
1343         profile uses the TemplateControl property instead of Parent. This
1344         allows to return the correct path.
1345
1346 2007-06-01  Marek Habersack  <mhabersack@novell.com>
1347
1348         * TemplateControlCompiler.cs: be case-insensitive when looking for
1349         Bind requests.
1350
1351 2007-05-29  Marek Habersack  <mhabersack@novell.com>
1352
1353         * ThemeDirectoryCompiler.cs: pass the skin file's
1354         virtual path to the skin file parser as its first paramenter, and
1355         not a physical path.
1356
1357 2007-05-28  Marek Habersack  <mhabersack@novell.com>
1358
1359         * ResourceExpressionBuilder.cs: properly cast
1360         GetGlobalResourceObject calls to the type of the property being
1361         assigned to.
1362
1363 2007-05-25  Marek Habersack  <mhabersack@novell.com>
1364
1365         * TemplateControlCompiler.cs: Changed a few incorrect 
1366         ObjectCreationExpression to the correct DelegateCreationExpression.
1367         Fixes #81706.
1368
1369 2007-05-24  Marek Habersack  <mhabersack@novell.com>
1370
1371         * PageCompiler.cs: added support for the PreviousPageType directive.
1372
1373         * Directive.cs: as above.
1374
1375 2007-05-22  Marek Habersack  <mhabersack@novell.com>
1376
1377         * UserControlCompiler.cs: the Profile property should be present
1378         also in user controls.
1379
1380 2007-05-15  Marek Habersack  <mhabersack@novell.com>
1381
1382         * ResourceExpressionBuilder.cs: added a static method to generate
1383         a GetLocalResourceObject call which properly handles types which
1384         cannot be converted from strings.
1385
1386         * TemplateControlCompiler.cs: use code described above to generate
1387         code for properties assigned from resources.
1388
1389         * WsdlBuildProvider.cs: make the code actually work - get the
1390         physical path of VirtualPath instead of converting it to absolute
1391         URI path.
1392         Do not generate source, add the code unit to assembly builder
1393         instead.
1394
1395         * XsdBuildProvider.cs: added
1396
1397 2007-05-08  Marek Habersack  <mhabersack@novell.com>
1398
1399         * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
1400         so use a delegate create expression - it may make difference for
1401         languages other than C# (e.g. VisualBasic).
1402
1403 2007-05-07  Marek Habersack  <mhabersack@novell.com>
1404
1405         * AspGenerator.cs: if the parser's language is implicit (i.e. set
1406         from the default configuration), the first script with the
1407         language attribute present sets the language of the parser.
1408
1409 2007-05-04  Marek Habersack  <mhabersack@novell.com>
1410
1411         * TemplateControlCompiler.cs: do not query the parent for
1412         TemplateSourceDirectory if we are generating code for a Master
1413         Page.
1414
1415 2007-04-30  Marek Habersack  <mhabersack@novell.com>
1416
1417         * ConnectionStringsExpressionBuilder.cs: support expressions with
1418         suffixes .ProviderName and .ConnectionString (case-insensitie) and
1419         generate a call to GetConnectionStringProviderName in the former
1420         case. Fixes bug #81490
1421
1422         * AppCodeCompiler.cs: support for cases when there exists a custom
1423         profile class but there is no App_Code directory or it's
1424         empty. Fixes bug #81489. 
1425
1426         * TemplateControlCompiler.cs: fix generation of code for
1427         declarative attribute assignments of the form Font-Size="small"
1428         (i.e. when a font size is assigned a symbolic, relative size
1429         value). This fixes for example rendering of the 0th level of
1430         TreeView controls.
1431
1432 2007-04-27  Marek Habersack  <mhabersack@novell.com>
1433
1434         * AppCodeCompiler.cs: do not look at the number of errors, check
1435         the compiler return code instead.
1436         Resolve assembly names from the global web.config to their
1437         locations before passing them to the compiler provider.
1438
1439         * AssemblyBuilder.cs: as above
1440
1441         * AppResourcesCompiler.cs: as above
1442         
1443         * AspComponentFoundry.cs: formatting changes.
1444         AssemblyFoundry looks for the specified namespace+type in the
1445         top-level assemblies if necessary.
1446
1447 2007-04-26  Marek Habersack  <mhabersack@novell.com>
1448
1449         * AssemblyBuilder.cs: handle compilation failures in a better
1450         way.
1451
1452         * PageCompiler.cs: the Master property must be in the partial
1453         class if present. Fixes bug #81442
1454
1455 2007-04-20  Marek Habersack  <mhabersack@novell.com>
1456
1457         * AppCodeCompiler.cs: fix App_Code build when the directory
1458         contains both known and unknown files.
1459
1460 2007-04-19  Gert Driesen  <drieseng@users.sourceforge.net>
1461
1462         * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1463         tabs.
1464
1465 2007-04-19  Marek Habersack  <mhabersack@novell.com>
1466
1467         * AppCodeCompiler.cs: yet another method of detecting if we have a
1468         custom profile.
1469
1470         * BaseCompiler.cs: as above
1471         
1472         * AspComponentFoundry.cs: implemented delayed loading of control
1473         assemblies. Fixes bug #81058.
1474
1475 2007-04-19  Gert Driesen  <drieseng@users.sourceforge.net>
1476
1477         * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
1478         then use it instead of the default ASP namespace. Fixes part of bug
1479         #81399.
1480
1481 2007-04-19  Marek Habersack  <mhabersack@novell.com>
1482
1483         * BaseCompiler.cs: don't look at the number of profile properties
1484         when deciding if we have a custom profile. It is possible to have
1485         a profile that just inherits from a base class and does not list
1486         any custom properties. Fixes bug #81396.
1487
1488         * AppCodeCompiler.cs: as above
1489
1490 2007-04-15  Marek Habersack  <mhabersack@novell.com>
1491
1492         * AppCodeCompiler.cs: properly convert physical file path to
1493         virtual path for build providers.
1494         Make sure there's actually anything to compile.
1495
1496 2007-04-11  Marek Habersack  <mhabersack@novell.com>
1497
1498         * AppCodeCompiler.cs: move custom profile type check till after
1499         the App_Code compilation is done. That way we can have custom
1500         profile providers in there. Fixes bug #81307.
1501
1502 2007-04-10  Marek Habersack  <mhabersack@novell.com>
1503
1504         * AppResourceFilesCollection.cs: watch App_LocalResources for
1505         changes.
1506
1507 2007-04-06  Marek Habersack  <mhabersack@novell.com>
1508
1509         * BaseCompiler.cs: display the source of the file in which the
1510         error actually happened if the file exists, or the unit
1511         otherwise.
1512
1513 2007-04-03  Marek Habersack  <mhabersack@novell.com>
1514
1515         * AppResourcesCompiler.cs: global resources are put in the
1516         "Resources." namespace while local ones are not. Fixes bug #81174
1517         which was reopened after r75261.
1518
1519 2007-03-26  Marek Habersack  <mhabersack@novell.com>
1520
1521         * TemplateControlCompiler.cs: refactor assining properties from
1522         resources a bit to support pages and user controls. Fixes bug
1523         #81204.
1524         Process meta:resourcekey after all the field/attribute assignments
1525         are done. Fixes bug #80809.
1526         Clean the code up a bit.
1527         Use GetExpressionFromString to generate a correct expression for
1528         custom page/control attributes. Fixes bug #81132.
1529
1530 2007-03-21  Marek Habersack  <mhabersack@novell.com>
1531
1532         * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1533         AssignAppRelativeVirtualPath if the attribute was defined.
1534
1535         * TemplateControlCompiler.cs: added support for setting custom
1536         attributes of a base class from the Page or Control directive
1537         attributes.
1538
1539 2007-03-20  Marek Habersack  <mhabersack@novell.com>
1540
1541         * ResourceExpressionBuilder.cs: if the resource class key is null
1542         or empty, call GetLocalResourceObject, if not,
1543         GetGlobalResourceObject. Fixes bug #81174.
1544
1545 2007-03-16  Marek Habersack  <mhabersack@novell.com>
1546
1547         * AppCodeCompiler.cs: produce message that makes more sense.
1548
1549 2007-03-15  Marek Habersack  <mhabersack@novell.com>
1550
1551         * AppResourcesCompiler.cs: handle global resource keys with dots
1552         the way MS.NET does. All the dots are replaced with underscores
1553         when generating the stronly-typed property.
1554
1555 2007-03-14  Marek Habersack  <mhabersack@novell.com>
1556
1557         * AppResourcesCompiler.cs: Fix a bug with global resources file
1558         grouping where no translated resources were processed due to base
1559         name mismatch.
1560
1561         * TemplateControlCompiler.cs: hadle situations when there exist a
1562         control in the page with id matching the name of a field/property
1563         in the parent class. In this case we use 'protected new' to
1564         override the parent.
1565
1566 2007-03-13  Marek Habersack  <mhabersack@novell.com>
1567
1568         * AspParser.cs: fix an off-by-one parsing bug with server-side
1569         includes.
1570
1571         * PageThemeCompiler.cs: let property builders through, stop the
1572         builders that have no control type. Fixes bug #81092
1573
1574         * PageCompiler.cs: interfaces are to be implemented by the parent
1575         partial class, not the generated one.
1576
1577         * AppResourceFilesCollection.cs: added separate constructor for
1578         local resources handling.
1579
1580         * TemplateControlCompiler.cs: request the local resource object
1581         with proper virtual path.
1582         Put field declarations for controls in the partial class.
1583         Make sure builders are in valid state before trying to use them.
1584
1585         * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1586         property in the page/control constructor.
1587         Change the generated code model for pages/controls to comply with
1588         the way MS.NET does (partial class contains only two properties
1589         plus declarations of all the controls, the actual control/page
1590         class inherits from the partial class). Fixes bug #81001.
1591
1592         * AppResourcesCompiler.cs: does not require specifying manually
1593         whether it's a global or local resource compiler anymore. New
1594         constructors take care of that.
1595         Changed to compile local resources on demand, when a control/page
1596         is parsed.
1597
1598 2007-03-12  Marek Habersack  <mhabersack@novell.com>
1599
1600         * AspParser.cs: revert r73587 as it breaks more than it fixes.
1601
1602         * AspComponentFoundry.cs: try to register foundries from App_Code
1603         assemblies if tag prefix and its namespace are defined. Fixes bug
1604         #78797.
1605
1606         * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1607         of Assembly instances, not strings.
1608
1609         * CachingCompiler.cs: make sure items in the CodeAssemblies and
1610         TopLevelAssemblies are really instances of the Assembly class
1611         before trying to use them.
1612         CodeAssemblies is a collection of Assembly instances, not
1613         strings.
1614
1615         * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1616         assemblies, not paths to assemblies.
1617
1618 2007-03-10  Marek Habersack  <mhabersack@novell.com>
1619
1620         * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1621         CreateProfileProperty and InternalCreatePageProperty to
1622         BaseCompiler from PageCompiler.
1623
1624         * GlobalAsaxCompiler.cs: generate the Profile property for the
1625         Global_asax class.
1626
1627 2007-03-09  Marek Habersack  <mhabersack@novell.com>
1628
1629         * AppCodeCompiler.cs: Add the GetProfile method to the
1630         ProfileCommon auto-generated class.
1631
1632         * AppResourcesCompiler.cs: attempt to load the resource file
1633         earlier in the process, to gracefully handle empty files.
1634
1635         * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1636         .skin and .css files composing the theme.
1637
1638 2007-03-05  Marek Habersack  <mhabersack@novell.com>
1639
1640         * PageThemeCompiler.cs: Use correct theme path for
1641         AppRelativeTemplateSourceDirectory.
1642         Do not process builders of type CodeRenderBuilder.
1643         Make sure builder.ControlType is not null before depending on it.
1644
1645         * ThemeDirectoryCompiler.cs: theme parser should be passed the
1646         virtual directory of the theme.
1647
1648 2007-03-03  Marek Habersack  <mhabersack@novell.com>
1649
1650         * PageCompiler.cs: Added support for setting the
1651         MaintainScrollPositionOnPostBack property if the corresponding
1652         page directive attribute is found.
1653
1654         * Directive.cs: added the MaintainScrollPositionOnPostBack and
1655         LinePragmas directives.
1656
1657 2007-03-02  Marek Habersack  <grendello@gmail.com>
1658
1659         * AppCodeCompiler.cs: Correctly process App_Code directories which
1660         have no compilable files in the top-level directory. Fixes bug
1661         #80998.
1662         Write preservation files for the App_Code assemblies.
1663
1664 2007-03-01  Marek Habersack  <grendello@gmail.com>
1665
1666         * AspParser.cs: fix GetVerbatim for cases when the end is
1667         e.g. --> or --%> and the string matched is ---> or ---%>
1668         respectively. The new code always backs out to make sure the end is
1669         matched correctly.
1670
1671 2007-02-27  Marek Habersack  <grendello@gmail.com>
1672
1673         * TemplateControlCompiler.cs: ParseExpression returns an object,
1674         don't assume any concrete type.
1675         Use the current culture when converting the expression to a
1676         string.
1677
1678         * ConnectionStringsExpressionBuilder.cs: Implement support for
1679         expressions of the <%$ ConnectionStrings:StringName %> form
1680
1681 2007-02-19  Marek Habersack  <grendello@gmail.com>
1682
1683         * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1684
1685 2007-02-16  Marek Habersack  <grendello@gmail.com>
1686
1687         * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1688         is referenced twice by the compiler(s).
1689
1690         * TemplateControlCompiler.cs: Fix the problem with cultures which
1691         have a comma as their decimal separator and font/whatever
1692         units. New code does not reparse the text representation of the
1693         unit on the runtime (e.g. 0.9em) but instead it constructs the
1694         property using the FontUnit/Unit constructors which take,
1695         respectively, Unit and double/unittype parameters. This avoids
1696         culture-specific parsing.
1697         Also fix converting from invariant strings in a culture-aware
1698         environment (e.g. in a page that uses Culture="auto") during the
1699         page parsing phase.
1700
1701 2007-02-12  Marek Habersack  <grendello@gmail.com>
1702
1703         * PreservationFile.cs: Support preservation (assembly mapping)
1704         files (the ones with .compiled extension in the ASP.NET temporary
1705         directory). This one implements a loader/saver class.
1706
1707         * AppResourcesCompiler.cs: support for assembly name mapping.
1708
1709         * AppCodeCompiler.cs: support for assembly name mapping.
1710
1711 2007-02-08  Marek Habersack  <grendello@gmail.com>
1712
1713         * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1714
1715         * AspComponentFoundry.cs: Avoid duplicate control registration
1716         exception.
1717
1718         * ResourceExpressionBuilder.cs: Make sure all the global resources
1719         are looked up using the "Resources." prefix.
1720
1721         * AppResourcesCompiler.cs: Make sure all the global resources are
1722         embedded with the "Resources." prefix.
1723
1724 2007-02-02  Marek Habersack  <grendello@gmail.com>
1725
1726         * AspGenerator.cs: Move the cache insert code to a separate method, for
1727         use from other places.
1728
1729         * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1730         defer their compilation to the moment when they are actually requested.
1731
1732 2007-01-22  Marek Habersack  <grendello@gmail.com>
1733
1734         * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1735
1736 2007-01-20  Miguel de Icaza  <miguel@novell.com>
1737
1738         * ClientBuildManager.cs: Remove unused variable (this could be a
1739         real problem, we never use the appPhysicalTargetDir) 
1740
1741         * AssemblyBuilder.cs: Remove unused field.
1742
1743         * AppResourceFilesCollection.cs: Remove unused field.
1744
1745         * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1746         unused variable. 
1747
1748         * AppResourcesCompiler.cs: Remove unused variable.
1749
1750         * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1751         parameter. 
1752
1753         * PageCompiler.cs: Put InternalCreatePageProperty inside the
1754         NET_2_0 block to eliminate warnings.
1755
1756 2007-01-20  Gert Driesen  <drieseng@users.sourceforge.net>
1757
1758         * BaseCompiler.cs: Fixed build on 1.0 profile.
1759
1760 2007-01-20  Marek Habersack  <grendello@gmail.com>
1761
1762         * BaseCompiler.cs: If the control base type is in the root
1763         namespace, make sure global:: is prepended to it.
1764
1765         * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1766         mark it as such in the generated code as well.  
1767
1768         * AppCodeCompiler.cs: Include debug information if configured in
1769         web.config. Fixes bug #80096.
1770
1771 2007-01-17  Marek Habersack  <grendello@gmail.com>
1772
1773         * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1774         App_GlobalResources) when compiling App_Code sources.
1775
1776         * CachingCompiler.cs: Reference toplevel assemblies when compiling
1777         e.g. Global.asax
1778
1779         * AppResourcesCompiler.cs: Close the streams properly.
1780
1781         * AspGenerator.cs: Don't ignore thead/tbody anymore.
1782
1783 2007-01-15  Marek Habersack  <grendello@gmail.com>
1784
1785         * WsdlBuildProvider.cs: New build provider for WSDL files.
1786         Compile only when System.Web.Services are present.
1787
1788         * TemplateControlCompiler.cs: Forgotten in the previous commit -
1789         don't pass the current culture to GetLocalResourceObject, let the
1790         method figure it out on its own.
1791
1792 2007-01-05  Marek Habersack  <grendello@gmail.com>
1793
1794         * AppResourceFilesCollection.cs: new class to keep and manage
1795         collection of resource files for the App_{Global,Local}Resources
1796         folders.
1797
1798         * TemplateControlCompiler.cs: rely on
1799         HttpContext.GetLocalResourceObject to select the correct culture.
1800
1801         * AppResourceFileInfo.cs: new class for keeping resource files
1802         information.
1803
1804         * AppResourcesCompiler.cs: new implementation.
1805
1806 2006-12-20  Marek Habersack  <grendello@gmail.com>
1807
1808         * AssemblyBuilder.cs: add an internal version of the
1809         AddCodeCompileUnit method.
1810
1811         * AppCodeCompiler.cs: implement support for ProfileCommon
1812         generation from properties named in the <profile> element in
1813         Web.config.
1814
1815         * PageCompiler.cs: create the Profile property in 2.0 code.
1816
1817 2006-12-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
1818
1819         * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1820
1821 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1822
1823         * ThemeDirectoryCompiler.cs: refactoring.
1824
1825 2006-11-28  Marek Habersack  <grendello@gmail.com>
1826
1827         * BuildManager.cs: Add an internal property to signal whether or
1828         not we have any resources from App_{Global,Local}Resources
1829
1830         * AspGenerator.cs: Register controls from
1831         system.web/pages/controls collection before parsing.
1832
1833         * AppResourcesCompiler.cs: Let the build process know if we have
1834         compiled any resources from App_{Global,Local}Resources
1835
1836 2006-11-27  Marek Habersack  <grendello@gmail.com>
1837
1838         * CachingCompiler.cs: Automatically reference App_Code
1839         assemblies.
1840
1841         * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1842         when compiling.
1843
1844 2006-11-25  Marek Habersack  <grendello@gmail.com>
1845
1846         * AppResourcesCompiler.cs: small optimizations.
1847
1848         * AppResourceFilesCompiler.cs: small optimizations.
1849
1850 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1851
1852         * WebServiceCompiler.cs: add the type to the cache after getting it
1853         from the compiled assembly.
1854
1855 2006-11-20  Marek Habersack  <grendello@gmail.com>
1856
1857         * AppCodeCompiler.cs: Reference assemblies listed in
1858         system.web/compilation/assemblies.
1859         Don't create empty assemblies.
1860
1861 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1862
1863         * TemplateControlCompiler.cs: fixed:
1864         When <%# Bind(...) %>-expression is used more then once for same control
1865         The variable associated with this control is declared only once.
1866
1867 2006-11-18  Marek Habersack  <grendello@gmail.com>
1868
1869         * AppResourceFilesCompiler.cs: Fixed an exception thrown when
1870         files with names like File.resources or File.resx are found in the
1871         resource directories.
1872
1873 2006-11-16  Marek Habersack  <grendello@gmail.com>
1874
1875         * ForceCopyBuildProvider.cs: Added the build provider for
1876         copy-only files.
1877
1878         * MasterPageBuildProvider.cs: Added the build provider for Master
1879         Pages.
1880
1881         * IgnoreFileBuildProvider.cs: Make the class sealed.
1882
1883         * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
1884         correctly uses the BuildProviderCollection to retrieve the
1885         appropriate builder and maps the physical input file path into
1886         application relative path when setting the virtual path of the
1887         build provider.
1888
1889 2006-11-13  Marek Habersack  <grendello@gmail.com>
1890
1891         * AssemblyBuilder.cs: Added referenced assemblies support. Added a
1892         constructor with just the CodeDomProvider argument. CreateCodeFile
1893         now uses the code provider's file extension. Added internal method
1894         to add pre-generated source code files. Added a BuildAssembly
1895         overload that takes no virtual path as  the
1896         parameter. BuildAssembly now uses an array of source files instead
1897         of compile units and also handles embedded resources and
1898         referenced assemblies. BuildAssembly deletes the temporary files
1899         if MONO_ASPNET_NODELET isn't set in the environment.
1900
1901         * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
1902         creation. Use the build providers collection to build unknown
1903         files in App_Code. Use AssemblyBuilder to compile the assembly.
1904
1905         * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1906         temporary file creation.
1907
1908         * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1909         attribute.
1910
1911         * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1912         attribute.
1913
1914         * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1915         attribute.
1916
1917         * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1918         attribute.
1919
1920         * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1921         attribute.
1922
1923 2006-11-08  Marek Habersack  <grendello@gmail.com>
1924
1925         * BuildProvider.cs: Implemented the GetCustomString
1926         method. Removed the necessity to retrieve the CompilationSection
1927         twice when GetDefaultCompilerType is called.
1928
1929         * AppResourcesCompiler.cs: Added resource compiler results
1930         handling.
1931
1932         * AppCodeCompiler.cs: The App_Code compiler classes
1933
1934         * BuildManager.cs: Implement the CodeAssemblies property.
1935         Added an internal TopLevelTypes property to be used in the custom
1936         GetType methods. Implemented the GetCompiledCustomString method.
1937         Implemented the GetType method overloads. Implemented the
1938         GetVirtualPathDependencies method.
1939
1940         * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1941
1942 2006-10-18  Marek Habersack  <grendello@gmail.com>
1943
1944         * TemplateControlCompiler.cs: add support for resource
1945         expressions in tag attributes.
1946
1947         * ResourceExpressionBuilder.cs: add support for resource
1948         expressions in tag attributes.
1949
1950         * BaseCompiler.cs: add global/local resource assemblies to
1951         compilation references, if present.
1952
1953         * AppResourcesCompiler.cs: global/local resources compiler.
1954
1955         * AppResourceFilesCompiler.cs: compiler of resource files.
1956
1957 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1958
1959         * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1960         At run time, the Bind method calls the Eval method, if there is DataItem
1961         != null to bind to.
1962         If there is DataItem == null (like InsertItemTemplate in FormView) Bind
1963         method don't raise exception and works properly to extract data from
1964         bounded controls on postback.
1965                 
1966 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1967
1968         * AspGenerator.cs: if we are tracking non-server tags for
1969         well-formedness, handle tags that do not need to be closed (br, img,...)
1970         Fixes bug #79437.
1971
1972 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1973
1974         * PageCompiler.cs: support the EnableEventValidation attribute.
1975
1976 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1977
1978         * AspGenerator.cs: after parsing an include file, don't error out if we
1979         still have opened tags unless this was the last file to parse. Fixes
1980         bug #79318.
1981
1982 2006-09-05  Konstantin Triger <kostat@mainsoft.com>
1983
1984         * ParseException.cs: Ensure the source file stream is closed.
1985
1986 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
1987
1988         * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1989         * ConnectionStringsExpressionBuilder.cs: Use name reference
1990           constants.
1991         * ResourceExpressionBuilder.cs: Use assembly name constants.
1992
1993 2006-08-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
1994
1995         * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1996
1997 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1998
1999         * ClientBuildManager.cs: handle domain shutdown and unload.
2000         Implemented some properties. Commented.
2001
2002 2006-08-10  Andrew Skiba  <andrews@mainsoft.com>
2003
2004         * ThemeDirectoryCompiler.cs: render css path as a virtual path.
2005
2006 2006-08-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
2007
2008         * added ThemeDirectoryCompiler.jvm.cs
2009
2010 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2011
2012         * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
2013         the property Items does not exist. Patch by Marek Habersack that fixes
2014         bug #78971.
2015
2016 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2017
2018         * TemplateControlCompiler.cs: support assigning nullable types.
2019         Patch by Marek Habersack that fixes bug #78970.
2020
2021 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2022
2023         * TemplateControlCompiler.cs: make password work again.
2024
2025 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
2026
2027         * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2028         MS.NET handles nested quotes differently for server controls and
2029         for "normal" controls. Add a property "AlternatingQuotes" to the
2030         tokenizer and let the parser decide whether it is well-formed or not.
2031
2032 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
2033
2034         * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
2035         UrlPropertyAttribute.
2036
2037 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
2038
2039         * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
2040         generating code for assignment statement and DataBind event.
2041         
2042 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
2043
2044         * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2045         Don't allow an attribute value to contain the same quote characters
2046         as the ones used for delimiting the value itself. Add a token
2047         NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
2048
2049 2006-06-08      Konstantin Triger <kostat@mainsoft.com>
2050
2051         * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
2052
2053 2006-04-24  Andrew Skiba  <andrews@mainsoft.com>
2054
2055         * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
2056
2057 2006-04-23  Andrew Skiba  <andrews@mainsoft.com>
2058
2059         * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
2060         array of style sheets from the parser
2061         * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
2062         put them in LinkedStyleSheets of PageThemeParser
2063
2064 2006-04-20  Chris Toshok  <toshok@ximian.com>
2065
2066         * BaseCompiler.cs: for 2.0, emit the correct namespace and class
2067         names in the case where you use "NS.ClassName" in the Inherits
2068         attribute.  Fixes bug #78135.
2069
2070 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2071
2072         * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
2073         already acquired the lock even when we might have not created the 'key'
2074         to the compilation ticket.
2075
2076 2006-04-16  Andrew Skiba <andrews@mainsoft.com>
2077
2078         * ThemeDirectoryCompiler.cs: add to the directory parser all the
2079         assemblies found by PageThemeFileParsers
2080
2081 2006-04-12  Lluis Sanchez Gual <lluis@novell.com>
2082
2083         * TemplateControlCompiler.cs: Properly read all content of
2084         string properties.
2085
2086 2006-04-11  Andrew Skiba <andrews@mainsoft.com>
2087
2088         * TemplateControlCompiler.cs : fix for partial parsers
2089
2090 2006-04-11  Andrew Skiba <andrews@mainsoft.com>
2091
2092         * ThemeDirectoryCompiler.cs : map the virtual path to the physical
2093         path
2094
2095 2006-04-08  Miguel de Icaza  <miguel@novell.com>
2096
2097         * TemplateControlCompiler.cs: An attempt to fix the regression
2098         introduced in r58505 (a bug fix for 77762).   This was reported in
2099         the mailing list with a batch of new 2.0 failures.
2100
2101         We really need a test suite in NUnit to check on ASP.NET aspx
2102         changes.
2103
2104 2006-03-27  Robert Jordan  <robertj@gmx.net>
2105
2106         * CachingCompiler.cs:  change the compilation locking scheme
2107         from "one mcs per process" to "one mcs per file".
2108
2109 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2110
2111         * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
2112         StringPropertyBuilder.
2113
2114 2006-03-24  Chris Toshok  <toshok@ximian.com>
2115
2116         * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
2117         if system.web/compilation doesn't list a compiler for our
2118         language.
2119
2120 2006-03-13  Chris Toshok  <toshok@ximian.com>
2121
2122         * TemplateControlCompiler.cs (InitMethod): when generating the
2123         call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
2124         argument to it.  Only do that if the class we're compiling is
2125         actually a subclass of Page.  If it's not, pass this.Page.
2126
2127 2006-03-07  Chris Toshok  <toshok@ximian.com>
2128
2129         * AspGenerator.cs: refactor the parsing code so that we can
2130         initiate parsing from outside this class.
2131
2132         * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
2133         method, add our StyleSheetTheme assignment here.
2134         (AppendStatementsToFrameworkInitialize): rename AddStatements* to
2135         this.
2136
2137         * TemplateControlCompiler.cs (EnsureID): make protected.
2138         (CreateAssignStatementsFromAttributes): same
2139         (AddChildCall): same.
2140         (CreateControlTree): same.
2141         (CreateFrameworkInitializeMethod): change
2142         "AddStatementsToFrameworkInitialize" to
2143         "AppendStatementsToFrameworkInitialize", and add call to
2144         "PrependStatementsToFrameworkInitialize" before the generation of
2145         "base.FrameworkInitialize()."
2146
2147         * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
2148
2149 2006-03-07  Chris Toshok  <toshok@ximian.com>
2150
2151         * ThemeDirectoryCompiler.cs: new file.
2152
2153         * PageThemeCompiler.cs: new file.
2154
2155 2006-03-07  Chris Toshok  <toshok@ximian.com>
2156
2157         * BaseCompiler.cs: fix typo in "initialize" in multiple places.
2158         (Init): move the CreateMethods call here.
2159
2160 2006-03-02  Chris Toshok  <toshok@ximian.com>
2161
2162         * TemplateControlCompiler.cs (InitMethod): emit an assignment for
2163         SkinID just after the creation of our object, and right after that
2164         call "_ctrl.ApplyStyleSheetSkin (page)".
2165         (CreateAssignStatementsFromAttributes): split out the majority of
2166         this code to CreateAssignStatementFromAttribute, and change this
2167         method to simply a loop over the attribute keys.  In the 2.0 case,
2168         skip the SkinID property, since that's handled explicitly in
2169         InitMethod.
2170
2171         * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
2172         for Theme and StyleSheetTheme.
2173
2174 2006-02-23  Chris Toshok  <toshok@ximian.com>
2175
2176         * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
2177         change from ContentControlBuilderInternal to
2178         ContentBuilderInternal.
2179         (AddCodeRender): same.
2180
2181 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2182
2183         * AssemblyBuilder.cs:
2184         * BuildManager.cs: compile the assembly from AssemblyBuilder and use
2185         GetGeneratedType() on the BuildProvider instead of loading the assembly
2186         and trying a wild guess at the type name.
2187
2188 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2189
2190         * GlobalAsaxCompiler.cs:
2191         * PageCompiler.cs:
2192         * TemplateControlCompiler.cs: CreateMethods is now internal.
2193
2194         * WebServiceBuildProvider.cs:
2195         * PageBuildProvider.cs:
2196         * UserControlBuildProvider.cs:
2197         * WebHandlerBuildProvider.cs: new build providers.
2198
2199         * BuildProvider.cs: add assemblies.
2200
2201         * BaseCompiler.cs: expose the provider and the compile unit through
2202         properties.
2203
2204 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205
2206         * CompilerType.cs: implemented.
2207
2208         * AssemblyBuilder.cs: implemented most of it.
2209
2210         * WebServiceCompiler.cs:
2211         * CachingCompiler.cs: update 2.0 compiler instance creation code.
2212
2213         * ClientBuildManager.cs: implemented some of its methods. Not yet
2214         ready.
2215
2216         * BuildManager.cs: the more interesting methods are implemented now.
2217
2218         * BaseCompiler.cs: delete the temporary files in case of error.
2219
2220         * BuildProvider.cs: implemented the Get*Compiler* protected methods.
2221
2222 2006-02-07  Chris Toshok  <toshok@ximian.com>
2223
2224         * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
2225         calls to AddParsedSubObject to a special statement collection --
2226         builder.flushOutputStatements -- not to builder.method.Statements.
2227         (InitMethod): initially, set flushOutputStatements to
2228         method.Statements.  If we're dealing with a ContentPlaceHolder,
2229         set flushOutputStatements to be the else block of a conditional we
2230         create.  This causes the compiled control to fall back to the
2231         ContentPlaceHolder's child controls in case there's no
2232         corresponding Content template.
2233         (AddChildCall): use methodStatements instead of method.Statements.
2234         (CreateControlTree): same.
2235
2236         * PageCompiler.cs (CreatePropertyAssign): factor out the
2237         string,string implementation and add one that also takes a
2238         CodeExpression; make the string,string implementation call the
2239         three arg one with thisRef.
2240         (AddStatementsToInitMethod): make use of the 3-arg form of
2241         CreatePropertyAssign to reduce code.  Also, add support for
2242         setting the page's Title from the parser's Title.
2243
2244 2006-02-07  Chris Toshok  <toshok@ximian.com>
2245
2246         * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
2247         assign __ctrl.MasterPageFile to our master page, if we have one.
2248
2249         * PageCompiler.cs (CreateContructor): remove the MasterPageFile
2250         assignment from here.
2251         (AddStatementsToInitMethod): and move it here.
2252         
2253         * TemplateControlCompiler.cs (InitMethod): in the case where
2254         builder is a RootBuilder (we're building the __BuildControlTree
2255         method), call a virtual method so that subclasses can add their
2256         own statements to the method (used by both Page and MasterPage);
2257         Also, in the RootBuilder case, the argument should be the
2258         parser.ClassName type (the class we're building); lastly, expand
2259         the ContentPlaceHolder logic to include all the
2260         ContentTemplates/InstantiateIn magic.
2261         (AddStatementsToInitMethod): empty virtual method.
2262         (AddContentTemplateInvocation): ContentControlBuilder ->
2263         ContentControlBuilderInternal.
2264         (CreateControlTree): same.
2265         (CallBaseFrameworkInitialize): new function, create call to
2266         base.FrameworkInitialize.
2267         (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
2268
2269 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2270
2271         * IgnoreFileBuildProvider.cs: it's not public.
2272         * BuildProvider.cs: mostly implemented.
2273
2274 2006-02-01  Chris Toshok  <toshok@ximian.com>
2275
2276         * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
2277         GetSection instead of GetWebApplicationSection.
2278
2279         * CachingCompiler.cs: same.
2280
2281         * AspGenerator.cs: same.
2282
2283         * BaseCompiler.cs: same.
2284         
2285 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2286
2287         * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
2288
2289 2006-01-22  Chris Toshok  <toshok@ximian.com>
2290
2291         * IgnoreFileBuildProvider.cs: build provider which does nothing.
2292
2293 2006-01-22  Chris Toshok  <toshok@ximian.com>
2294
2295         * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
2296         Hashtable ctor to silence a couple of warning.
2297         (CompoundFoundry.ctor): same
2298
2299         * Directive.cs (InitHash): use a 2.0 friendly form of the
2300         Hashtable ctor to silence a couple of warning.
2301
2302         * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
2303         Hashtable ctor to silence a warning.
2304         (GetDictionary): same.
2305
2306 2006-01-22  Chris Toshok  <toshok@ximian.com>
2307
2308         * AppSettingsExpressionBuilder.cs: implement this, patterning it
2309         after an example on msdn.  Also, enable the ExpressionEditor
2310         attribute, but use the string rather than the Type overload so we
2311         won't have yet another circular dep.
2312
2313         * ConnectionStringsExpressionBuilder.cs: partial implementation.
2314         Same deal with the ExpressionEditor attribute.
2315
2316         * ResourceExpressionBuilder.cs: same deal with the
2317         ExpressionEditor attribute.
2318         
2319 2006-01-20  Chris Toshok  <toshok@ximian.com>
2320
2321         * ResourceExpressionBuilder.cs (ParseExpression): implement.
2322
2323         * ResourceExpressionFields.cs: implement.
2324
2325 2006-01-20  Chris Toshok  <toshok@ximian.com>
2326
2327         * ClientBuildManagerParameter.cs: implement.
2328
2329         * ClientBuildManagerCallback.cs: this class contains an empty
2330         default implementation.
2331
2332 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2333
2334         * AspGenerator.cs: add support for 'src' in <script runat="server">.
2335         Fixes bug #77150.
2336
2337 2006-01-04  Chris Toshok  <toshok@ximian.com>
2338
2339         * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
2340         code.
2341
2342         * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
2343
2344 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2345
2346         * AspGenerator.cs: fix yesterday's fix.
2347
2348 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2349
2350         * AspGenerator.cs: only do special processing for <script> if it has
2351         the runat="server" attribute. Fixes bug #76918.
2352
2353 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2354
2355         * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
2356         Fixes bug #76677.
2357
2358 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2359
2360         * TemplateControlCompiler.cs: handle data bound attributes for html
2361         controls. Fixes bug #76785.
2362
2363 2005-11-28  Chris Toshok  <toshok@ximian.com>
2364
2365         * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
2366
2367         * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
2368
2369 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2370
2371         * WebServiceCompiler.cs: fixed caching for web handlers.
2372
2373 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2374
2375         * AspParser.cs: don't change case for verbatim IDs.
2376         Fixes bug #76657.
2377
2378 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2379
2380         * AspParser.cs: when processing verbatim input, throw if we reach EOF
2381         before the expected end of the data.
2382
2383 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2384
2385         * CachingCompiler.cs: 
2386         * WebServiceCompiler.cs: when caching a type loaded from an assembly
2387         that we didn't compile, make it depend on the file itself, not on a
2388         non-existing cache key. This problem affected performance of web
2389         services and .ashx, making unnecessary extra calls to LoadFrom every
2390         time the cache was cleared.
2391
2392 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2393
2394         * BaseCompiler.cs: set the domain's DynamicBase property instead of
2395         guessing it in BaseCompiler.
2396
2397 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2398
2399         * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
2400         75146 for pages/controls.
2401
2402 2005-08-09  Miguel de Icaza  <miguel@novell.com>
2403
2404         * WebServiceCompiler.cs: Use the new DynamicDir method.
2405
2406         * BaseCompiler.cs: Use the DynamicBase property as a hint, but
2407         since this value is null most of the time, compute the real value.
2408
2409         Added Bonus: if the directory has some kind of permission problem,
2410         try a different directory name.
2411
2412 2005-07-13  Miguel de Icaza  <miguel@novell.com>
2413
2414         * AspGenerator.cs (AspGenerator.CheckLanguage): Use
2415         BaseParser.Context for the context. 
2416
2417 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2418
2419         * TagAttributes.cs:
2420         * AspParser.cs:
2421         * TemplateControlCompiler.cs: use invariant culture versions of starts/
2422         endswith.
2423
2424 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2425
2426         * TemplateControlCompiler.cs: comparison between member name and the
2427         first part of the id provided by the user should also be
2428         case-insensitive. Fixes bug #75379.
2429
2430 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2431
2432         * CachingCompiler.cs: use cache.InsertPrivate.
2433         * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
2434         AddDependency.
2435
2436 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2437
2438         * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2439         as all the others, when compiling an assembly from a Src file. Fixes
2440         bug #75371.
2441
2442 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2443
2444         * TemplateControlCompiler.cs: if the property is not found, don't forget
2445         about trying the field.
2446
2447 2005-06-13  Lluis Sanchez Gual <lluis@novell.com>
2448
2449         * Directive.cs: Register the MasterType directive.
2450         * PageCompiler.cs: If a MasterType is specified, add a type specific
2451         Master property. All this fixes bug #75192.
2452
2453 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2454
2455         * TemplateControlCompiler.cs: when mapping an attribute name to a field
2456         or property name, there's no need to try with every property and field,
2457         but just the one found when searching by name (no case). There was one
2458         call to ProcessPropertiesAndFields per property or field until found,
2459         now only one if the property/field is found, none otherwise.
2460
2461 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2462
2463         * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2464         properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2465         bug #75234.
2466
2467 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2468
2469         * BaseCompiler.cs: when the OutputAssembly is null, we can still have
2470         the assembly file there and be able to load it. Thanks to Rogerio and
2471         Mark.
2472
2473 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2474
2475         * AspParser.cs: InvariantCulture love.
2476
2477 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2478
2479         * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2480         as the one in Master is protected. Fixes bug #75157.
2481
2482 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2483
2484         * AspComponentFoundry.cs: tagnames have precedence over types in
2485         assemblies when they use the same prefix. Fixes bug #71855.
2486
2487 2005-05-03  Lluis Sanchez Gual <lluis@novell.com>
2488
2489         * WebServiceCompiler.cs: Create the temp directory before
2490         creating the web service source code file.
2491
2492 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2493
2494         * AspGenerator.cs: when checking languages, try to match other aliases
2495         too (ie, 'cs' == 'c#').
2496
2497 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2498
2499         * BaseCompiler.cs: check that DynamicBase directory exists before
2500         creating the TempFileCollection.
2501
2502 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2503
2504         * AspGenerator.cs: use a stack for non-server tags even before getting
2505         to a form. Fixes bug #70274.
2506
2507 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2508
2509         * AspParser.cs: don't error out on ill formed tags if it's not a server
2510         tag (ie, allow something like '<table align="left cellpadding="0">' to
2511         work, as MS does. Fixes bug #67909.
2512
2513 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
2514         * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
2515         @Page/@Control directives to CodeDOM (VB.NET support)
2516
2517 2005-04-19  Lluis Sanchez Gual <lluis@novell.com>
2518
2519         * AspParser.cs: Fixed parsing of data binding tags in server
2520         tag attributes. Allow <%...%> blocks not assigned to
2521         attributes in client tags.
2522         * TagAttributes.cs: Make sure that data binding blocks in server
2523         tags are always assigned to attributes.
2524
2525 2005-04-15  Lluis Sanchez Gual <lluis@novell.com>
2526
2527         * TemplateControlCompiler.cs: Implemented support for two-way
2528         binding.
2529
2530 2005-04-14  Lluis Sanchez Gual <lluis@novell.com>
2531
2532         * TemplateControlCompiler.cs: Use the new BindingContainerType
2533         property to find the type of the binding container. 
2534         
2535 2005-04-07  Lluis Sanchez Gual <lluis@novell.com>
2536
2537         * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
2538         for primitive types. Parse an empty color string as Color.Empty.
2539         Get the converter for a property using its PropertyDescriptor.
2540         
2541 2005-04-05  Lluis Sanchez Gual <lluis@novell.com>
2542
2543         * TemplateControlCompiler.cs: Don't autogenerate IDs for
2544         controls inside Content template.
2545
2546 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2547
2548         * TemplateControlCompiler.cs: make typedesc.aspx work again.
2549
2550 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2551
2552         * ExpressionBuilderContext.cs:
2553         * ExpressionBuilder.cs: implemented.
2554
2555 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2556
2557         * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2558
2559 2005-01-28  Lluis Sanchez Gual <lluis@novell.com>
2560
2561         * TemplateControlCompiler.cs: When generating a property value,
2562         check for TypeConverterAttribute in the PropertyInfo, not only in the
2563         property type.
2564         Implemented code generation using InstanceDescriptor, when the type
2565         converter supports conversion to that type.
2566
2567 2005-01-21  Lluis Sanchez Gual <lluis@novell.com>
2568
2569         * Directive.cs: Added MASTER directive.
2570         * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2571         * PageCompiler.cs: Set the master file name when generating the page.
2572         * TemplateControlCompiler.cs: When generating the method for a
2573         content holder, register the content holder in the base MasterPage.
2574         Added method for registering a Content control for a MasterPage.
2575         Generate code for Content controls.
2576
2577 2005-01-10  Lluis Sanchez Gual <lluis@novell.com>
2578
2579         * TemplateControlCompiler.cs: Get the container type from the
2580         template (if it was defined using TemplateContainerAttribute.
2581
2582 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2583
2584         * AspGenerator.cs: correctly process script tags that self-closing.
2585         Fixes bug #69657.
2586
2587 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2588
2589         * CachingCompiler.cs: when compiling a single .cs file, add the file
2590         itself to dependencies. Fixes bug #68788.
2591
2592 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2593
2594         * ControlBuilder.cs: don't close server tags when we get to a closing
2595         tag that is not applied to a server control. Fixes bug #60323.
2596
2597 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2598
2599         * WebServiceCompiler.cs: fix buglet in my last commit.
2600
2601 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2602
2603         * BaseCompiler.cs:
2604         * CachingCompiler.cs:
2605         * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2606         for ashx/asmx. Otherwise we need to open the file and check for the
2607         class name in there. Thanks to Ben for pointing this out.
2608
2609 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2610
2611         * AspParser.cs:
2612         * AspTokenizer.cs: prevent quotes from being swallowed when we're 
2613         inside a server tag and they are the next non-whitespace character.
2614         Fixes bug #63451.
2615
2616 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2617
2618         * CachingCompiler.cs: don't try to watch for changes in system
2619         assemblies. Fixes bug #64871.
2620
2621 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2622
2623         * AspGenerator.cs: handle builders that need to process inner text
2624         with tags.
2625
2626         * Location.cs: added setters for the properties.
2627
2628 2004-08-02  Duncan Mak  <duncan@ximian.com>
2629
2630         * BuildProviderResultFlags.cs:  
2631         * IImplicitResourceProvider.cs: 
2632         * ImplicitResourceKey.cs:
2633         * IResourceReader.cs: Added.
2634
2635 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2636
2637         * AspGenerator.cs: the path for file was treated as virtual, but it's
2638         physical. Fixes bug #61524.
2639
2640 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2641
2642         * AspParser.cs: fixed case-sensitivity issues with #include and its
2643         attributes. Closes #61429.
2644
2645 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2646
2647         * BaseCompiler.cs:
2648         * WebServiceCompiler.cs: really create the dlls under DynamicBase
2649
2650 2004-06-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2651
2652         * TemplateControlCompiler.cs: for system colors, use SystemColors class
2653         instead of Color. Fixes bug #60249.
2654
2655 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2656
2657         * BaseCompiler.cs: try getting the Type from the cache before doing the 
2658         real work. Remove temporary files right after successful compilation.
2659
2660         * CachingCompiler.cs: added GetTypeFromCache.
2661
2662         * UserControlCompiler.cs: nothing interesting.
2663
2664         * WebServiceCompiler.cs: try getting the Type from the cache before
2665         doing anything else. Remove temp files on sucessful compilation.
2666
2667 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668
2669         * AspGenerator.cs:
2670         * CachingCompiler.cs: use a different prefix when caching compiler
2671         results or Types.
2672
2673 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2674
2675         * BaseCompiler.cs: dynamicBase is now protected. Check
2676         MONO_ASPNET_NODELETE here.
2677
2678         * TemplateControlCompiler.cs: if the type is not known but has a 
2679         TypeConverter, invoke ConvertFromString in the generated code.
2680
2681         * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2682         the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2683
2684         * CachingCompiler.cs: updated compilation of web services and simple
2685         web handlers.
2686
2687 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2688
2689         * CSCompiler.cs: removed.
2690
2691         * CachingCompiler.cs: language independent compilation for single files.
2692
2693 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2694
2695         * BaseCompiler.cs:
2696         * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2697         * CachingCompiler.cs: use HttpRuntime.Cache.
2698
2699 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2700
2701         * PageCompiler.cs: fixed Trace and add support for Buffer.
2702
2703 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2704
2705         * PageCompiler.cs: override CreateConstructor to add assignment for
2706         ClientTarget.
2707         
2708 2004-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2709
2710         * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2711         of CodeObjectCreateExpression for the render method delegate. Thanks
2712         to Jochen Wezel.
2713
2714 2004-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2715
2716         * BaseCompiler.cs: use DynamicBase for the output assemblies.
2717
2718 2004-05-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2719
2720         * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2721
2722 2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2723
2724         * AspParser.cs: indent a few lines.
2725         * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2726         attribute value. This way we can simulate reading 2 characters ahead
2727         (one in ungetc and the other in Peek) and work with values like
2728         text/javascript. Fixes bug #57302.
2729
2730 2004-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2731
2732         * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2733
2734 2004-04-02  Lluis Sanchez Gual  <lluis@ximian.com>
2735
2736         * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2737
2738 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2739
2740         * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2741
2742 2004-02-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2743
2744         * AspGenerator.cs: error out when <object> server tag is not closed.
2745         Ignore any content inside it.
2746
2747 2004-02-10  Jackson Harper <jackson@ximian.com>
2748
2749         * AspTokenizer.cs: Collect discarded characters that might be used
2750         in client side scripts. Patch by Liyu Liu.
2751         * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2752         
2753 2004-02-10  Jackson Harper <jackson@ximian.com>
2754
2755         * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2756         bug #54117.
2757         
2758 2004-01-30  Jackson Harper <jackson@ximian.com>
2759
2760         * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2761         the build method takes strings not ints.
2762         
2763 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2764
2765         * AspGenerator.cs: handle more possible errors in global.asax file.
2766
2767         * BaseCompiler.cs: added utility methods for creating <object> related
2768         properties and fields.
2769
2770         * GlobalAsaxCompiler.cs: keep around applications and session scope
2771         objects builders. Also a list of imports and assemblies added in
2772         global.asax.
2773
2774         * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2775
2776 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2777
2778         * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2779         pages more than once. Thanks to Eric Lindvall for pointing this out.
2780
2781 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2782
2783         * TemplateControlCompiler.cs: allow handling subproperties for other
2784         types than Style and Font. Fixes bug #53217.
2785
2786 2004-01-16  Jackson Harper <jackson@ximian.com>
2787
2788         * TagAttribute.cs: attributes can be stored as encoded html so we
2789         decode them here.
2790         
2791 2004-01-14  Jackson Harper <jackson@ximian.com>
2792
2793         * TemplateControlCompiler.cs: Is a user control is cached and
2794         shared use the controls type hashcode for the GUID so it will be
2795         the same across instances.
2796         
2797 2004-01-13  Jackson Harper <jackson@ximian.com>
2798         
2799         * TemplateControlCompiler.cs: If an item has the partial caching
2800         attribute build a PartialCachingControl in the parents __Build method.
2801         * BaseCompiler.cs: Add a method for adding class attributes to the
2802         class.
2803         * UserControlCompiler.cs: If caching is enabled on a user control
2804         add the PartialCachingAttribute to it.
2805         
2806 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2807
2808         * PageCompiler.cs: invoke Request.ValidateInput if required.
2809
2810 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2811
2812         * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2813         #52521. Patch by liyul@hotmail.com.
2814
2815 2003-12-25  Jackson Harper <jackson@ximian.com>
2816
2817         * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2818         #52522.
2819         
2820 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2821
2822         * PageCompiler.cs: assign the ErrorPage property if provided.
2823
2824 2003-12-15  Jackson Harper <jackson@ximian.com>
2825
2826         * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2827         method if they are set.
2828         
2829 2003-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2830
2831         * AspGenerator.cs: ignore <tbody> when we're inside a server table and
2832         fail when runat="server" is applied to <tbody> with a parse error
2833         instead of waiting for a compilation error. Fixes bug #52157.
2834
2835 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2836
2837         * AspGenerator.cs: basic checking of ID validity.  Throw a
2838         ParseException when mixing languages.
2839
2840 2003-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2841
2842         * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2843         FrameworInitialize() if provided in @Page.
2844
2845         Fixes bug #51511.
2846
2847 2003-11-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2848
2849         * TemplateControlCompiler.cs: support for expressions of
2850         System.Drawing.Size type. Allow getting Color from comma separated
2851         numbers, which is not allowed by ColorConverter.
2852
2853         This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2854
2855 2003-11-13  Jackson Harper <jackson@ximian.com>
2856
2857         * PageCompiler.cs: Call InitOutputCache when the OutputCache
2858         directive is set.
2859         
2860 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2861
2862         * AspGenerator.cs: use fileEncoding from configuration files.
2863
2864         * PageCompiler.cs: add assign statements for ContentType,
2865         ResponseEncoding and CodePage if supplied.
2866
2867 2003-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2868
2869         * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2870         a return statement for user controls with 'void' return type.
2871
2872 2003-10-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2873
2874         * AspParser.cs: fixed bug #49627.
2875
2876 2003-10-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2877
2878         * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2879
2880 2003-10-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2881
2882         * Directive.cs: new attribute for @Page directive in 1.1.
2883
2884 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2885
2886         * AspParser.cs:
2887         * TagAttributes.cs: allow duplicated runat=server attributes and display
2888         error page when duplicated attributes and runat is specified.
2889
2890 2003-10-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2891
2892         * AspTokenizer.cs: moved token numbers above unicode.
2893
2894 2003-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2895
2896         * AspGenerator.cs: don't process code render tags inside scripts. Check
2897         the language of the script and treat javascript as verbatim input.
2898         Fixes bug #48592.
2899
2900 2003-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2901
2902         * TemplateControlCompiler.cs: fixed bug #48212.
2903
2904 2003-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2905
2906         * WebServiceCompiler.cs: remove the temporary files here too.
2907
2908 2003-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2909
2910         * AspGenerator.cs: fixed bug #46429.
2911
2912 2003-08-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2913
2914         * Directive.cs: support @WebHandler.
2915         
2916 2003-07-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917
2918         * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2919
2920 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2921
2922         * BaseCompiler.cs: first look for cached items, then generate the tree.
2923         This should speed things up.
2924
2925         * CachingCompiler.cs: when compiling web services, use the full path of
2926         the .asmx file as key when caching.
2927
2928         * WebServiceCompiler.cs: first look for cached items, then generate
2929         the source file.
2930
2931 2003-07-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2932
2933         * AspParser.cs: more useful error information,
2934
2935         * BaseCompiler.cs:
2936         * CachingCompiler.cs: honor the debug="true" option.
2937
2938         * TemplateControlCompiler.cs: small fixes for templates.
2939
2940 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2941
2942         * BaseCompiler.cs: made Compiler property virtual.
2943
2944         * CachingCompiler.cs: added support for compiling web services.
2945
2946         * WebServiceCompiler.cs: implemented.
2947
2948 2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2949
2950         * CachingCompiler.cs: fixed bug #43477.
2951
2952 2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2953
2954         * AspParser.cs:
2955         * AspTokenizer.cs: fixed bugs #43206 and #43371.
2956
2957 2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958
2959         * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2960         of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2961         reporting.
2962
2963 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2964
2965         * CompilationException.cs: don't add duplicated lines in the case that
2966         mcs reports several errors for the same one.
2967
2968 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2969
2970         * AspGenerator.cs: fully support including files, ie., treat them just
2971         as C treats #includes.
2972
2973 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2974
2975         * AspGenerator.cs:
2976         * AspParser.cs:
2977         * TagType.cs: Added support for server side includes.
2978
2979 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2980
2981         * CSCompiler.cs: actually add the list of referenced assemblies to the
2982         compiler options. Throw a CompilationException if there's an error.
2983
2984         * CachingCompiler.cs: added a method to compile directly from a source
2985         file.
2986         
2987 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2988
2989         * AspGenerator.cs: copy the location before setting the value for the
2990         control builders.
2991
2992         * BaseCompiler.cs: changed parameters for CompilationException.
2993
2994         * CompilationException.cs: it takes now line numbers and error
2995         descriptions from the CompilerErrorCollection.
2996
2997         * Location.cs: used when a copy of an ILocation is needed.
2998
2999         * ParseException.cs: implemented new methods to provide line numbers
3000         and souce file.
3001
3002         * TemplateControlCompiler.cs: throw a ParseException where appropiate.
3003
3004 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3005
3006         * AspGenerator.cs: also support data bind syntax inside tags not
3007         processed as controls. Added debugging method.
3008
3009         * TemplateControlCompiler.cs: reset the number of data binding handlers 
3010         in the proper place. Small fix when getting the container type.
3011
3012 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3013
3014         * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory 
3015         value.
3016
3017 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3018
3019         * AspGenerator.cs: handle code render syntax in tag attributes.
3020
3021         * AspParser.cs: the constructor now takes a TextReader.
3022
3023         * TemplateControlCompiler.cs: removed comment.
3024
3025 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3026
3027         * TemplateControlCompiler.cs: added support for data bound properties.
3028
3029 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3030
3031         * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
3032         instead of their names.
3033
3034         * AspElements.cs: removed. No longer needed.
3035
3036         * AspGenerator.cs: this file is now in charge of interfacing between
3037         the parser and the compiler. It manages the creation of the
3038         ControlBuilder tree and the compilation of the CodeDOM tree.
3039
3040         * AspParser.cs: tag handling is simpler now.  Instead of a whole bunch
3041         of different Types, tags are just and id and a set of attributes.
3042         Implement ILocation interface.
3043         
3044         * AspTokenizer.cs: added a few methods to help the parser implementing
3045         ILocation.
3046
3047         * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
3048         common to appliaction, page and user control, including the actual
3049         compilation and error handling.
3050
3051         * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
3052
3053         * CachingCompiler.cs: simplified to use the new interfaces.
3054
3055         * CompilationException.cs: it's now using CompilationResult to report
3056         errors.
3057
3058         * CompilationResult.cs: Removed file.
3059
3060         * Directive.cs: to check for the validity of a directive.
3061
3062         * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
3063         in BaseCompiler.
3064
3065         * ILocation.cs: interface used to now the exact place where a parse
3066         error happens.
3067
3068         * PageCompiler.cs: generates a couple of methods that are only used in
3069         pages.
3070
3071         * ParseException.cs: use the ILocation interface.
3072
3073         * TagAttributes.cs: handles the attributes of the tags parsed.
3074
3075         * TagType.cs: an enum for the different kinds of tags.
3076
3077         * TemplateControlCompiler.cs: this is the one that does most of the
3078         conversion from teh ControlBuilder tree into a CodeDOM tree.
3079
3080         * UserControlCompiler.cs: simplified as most of the work is done in
3081         its base classes.
3082
3083         * WebServiceCompiler.cs: dummy.
3084
3085 2003-04-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3086
3087         * AspComponentFoundry.cs: added GetComponentType method.
3088
3089 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3090
3091         * AspTokenizer.cs: allow quotes inside server tags that are part of
3092         attribute values.
3093         
3094         * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
3095         compilation fails.
3096
3097 2003-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3098
3099         * AspGenerator.cs: generate correct appbase path. It was working with
3100         mcs but not with csc.
3101
3102         * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
3103
3104         * CachingCompiler.cs: quote source file.
3105
3106 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3107
3108         * AspGenerator.cs: now the Inherits attribute works as expected for
3109         global.asax file.
3110
3111 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3112
3113         * CompilationException.cs:
3114         * ParseException.cs: display the correct line number in error messages.
3115
3116         * AspElements.cs: added TargetSchema attribute for control. It's
3117         ignored.
3118
3119 2003-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3120
3121         * BaseCompiler.cs: fixed the hack to work under windows.
3122         * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
3123
3124 2003-03-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3125
3126         * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
3127
3128 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
3129
3130         * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
3131         app's private bin path
3132
3133 2003-03-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3134
3135         * AspGenerator.cs:
3136         * BaseCompiler.cs:
3137         * CachingCompiler.cs:
3138         * CompilationResult.cs:
3139         * GlobalAsaxCompiler.cs:
3140         * PageCompiler.cs:
3141         * UserControlCompiler.cs: recompile the page if dependencies change.
3142
3143 2003-02-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3144
3145         * AspGenerator.cs: corrected typo and wrong fix.
3146
3147 2003-02-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3148
3149         * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
3150         when used explicitly.
3151
3152 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3153
3154         * AspElements.cs: get the property Type for controls that use
3155         ParseChildren with a property name.
3156
3157         * AspGenerator.cs: generate correct signature for the method that
3158         adds controls to the default property in ParseChildren.
3159
3160 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3161
3162         * AspGenerator.cs: rethrow exceptions that may come from parsing or 
3163         compilation if a user control.
3164
3165 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3166
3167         * AspGenerator.cs: throw ParseException on parse
3168         error.
3169
3170         * AspParser.cs: added Line and Column props.
3171
3172         * CompilationException.cs: derives now from HtmlizedException.
3173
3174         * CompilationResult.cs: added fileName field.  Fixed set_ExitCode.
3175
3176         * GlobalAsaxCompiler.cs:
3177         * PageCompiler.cs:
3178         * UserControlCompiler.cs: pass the file name in the CompilationResult.
3179
3180         * ParseException.cs: new exception.
3181
3182
3183 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3184
3185         * AspGenerator.cs: remove "file://" from the private bin path. Fixes
3186         bug #37628.
3187
3188 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3189
3190         * AspParser.cs: the parser fires events when it parses an element.
3191
3192         * GlobalAsaxCompiler.cs:
3193         * PageCompiler.cs:
3194         * UserControlCompiler.cs:
3195         * AspElements.cs: modified to use the new parser interface.
3196
3197         * AspGenerator.cs: modified to use the new parser. Merge multiple text
3198         strings into one single LiteralControl.
3199
3200         * AspTokenizer.cs: added Line and Column properties.
3201
3202 2003-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3203
3204         * AspParser.cs: fixed bug #36929.
3205
3206 2003-01-21  Tim Haynes <thaynes@openlinksw.com>
3207
3208         * AspGenerator.cs:
3209         * BaseCompiler.cs:
3210         * CachingCompiler.cs: changes to work around spaces and
3211         directory-separators in the local filesystem.
3212
3213 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3214
3215         * AspGenerator.cs: make the generated file compile with csc after last
3216         change.
3217
3218 2003-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3219
3220         * AspGenerator.cs: removed unused variable. Added support for
3221         properties/fields of type string [].
3222
3223 2003-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3224
3225         * AspGenerator.cs: modified loading of the parent type now that
3226         Type.GetType is fixed.
3227
3228 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3229
3230         * AspGenerator.cs: cast to Control if the container does not implement
3231         INamingContainer.
3232
3233 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3234
3235         * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
3236
3237 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3238
3239         * AspElements.cs: attributes without value lacked a space afterwards.
3240
3241 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3242
3243         * AspGenerator.cs: functions for columns don't return anything. Fixed
3244         typo.
3245
3246 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3247
3248         * AspGenerator.cs: add data bound controls to code render function.
3249
3250 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3251
3252         * AspComponentFoundry.cs: reworked to allow same prefix for multiple
3253         controls. You can register 1 assembly plus any number of user controls
3254         under the same prefix.
3255
3256         * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
3257         Hack to allow @Register access to assemblies in other places than bin
3258         directory.
3259
3260 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3261
3262         * AspElements.cs: added 'codebehind' attribute for page, control and
3263         application. It's ignored by MS, but allowed. Fixed typo.
3264
3265 2003-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3266
3267         * AspGenerator.cs: fixed EnableSesssionState handling.
3268
3269 2003-01-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3270
3271         * AspGenerator.cs: don't generate instance fields for pages/controls
3272         when the base class specified in the Inherits attribute already has
3273         them. Closes bug #36262.
3274
3275 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3276
3277         * AspGenerator.cs: generate code like 'control.XXX = value' also for
3278         public fields (properties were being handled in that way too).
3279
3280 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3281
3282         * AspGenerator.cs: now it uses the current HttpContext when creating
3283         user controls. TemplateSourceDirectory is no longer a dummy value.
3284
3285         * GlobalAsaxCompiler.cs:
3286         * PageCompiler.cs:
3287         * UserControlCompiler.cs: set the context which will be used to locate
3288         the files.
3289         
3290 2002-12-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3291
3292         * AspGenerator.cs: added support for AutoEventWireup attribute in
3293         @Page and @Control.
3294
3295         * CompilationResult.cs:
3296         * GlobalAsaxCompiler.cs:
3297         * PageCompiler.cs:
3298         * UserControlCompiler.cs: store the options.
3299
3300 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3301
3302         * AspElements.cs: new method Tag.GetElements
3303         used to parse the inner contents of a tag looking for data binding or 
3304         code render tags.
3305         
3306         New property HtmlControlTag.ParseChildren allows
3307         differentiation of a couple of HtmlControls that has children as
3308         properties (namely HtmlTable and HtmlTableRow).
3309
3310         * AspGenerator.cs: fixed container semantics to
3311         match BindingContainer one. Implemented Inherits attribute for page and
3312         control.
3313
3314         Support HtmlControls that has ChildrenAsProperties.
3315         
3316         Generate code for data binding functions that matches the semantic of
3317         Container.
3318
3319         Handle data bound and code render attribute values.
3320
3321         Set proper value return for TemplateSourceDirectory. Should be relative
3322         to appPath.
3323         
3324         * BaseCompiler.cs: moved CompilerOptions and
3325         References handling here.
3326
3327         * CachingCompiler.cs: copy result of compilation.
3328
3329         * CompilationException.cs: simple ToString () implementation.
3330
3331         * CompilationResult.cs: implemented CopyFrom and ToString.
3332
3333         * GlobalAsaxCompiler.cs:
3334         * PageCompiler.cs:
3335         * UserControlCompiler.cs: removed CompilerOptions as it's now handled
3336         in the base class. Get all the types in the generated assembly and
3337         look for one that derives from the correct Type.
3338         
3339 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3340
3341         * AspElements.cs: added @Application directive.
3342
3343         * AspGenerator.cs: make it work also with application files. We
3344         currently generate an extra private function.
3345
3346 2002-11-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3347
3348         * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
3349         exists, it will be compiled into an HttpApplication derived class
3350         (directly or through a user-provided class).
3351
3352 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3353
3354         * AspGenerator.cs: fixed target file name and generated class name.
3355         * BaseCompiler.cs: reference assemblies in PrivateBinPath.
3356
3357 2002-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3358
3359         * AspGenerator.cs: reworked user control
3360         compilation. Provide the options as a Hashtable for use in compilation.
3361         Create the user controls in the private bin path of the domain.
3362
3363         * BaseCompiler.cs: base class for the various compiler types.
3364
3365         * CachingCompiler.cs: actually executes mcs and do some poor caching
3366         (it will use Cache when finished).
3367
3368         * CompilationException.cs: this exception has enough information to
3369         generate a nice error page.
3370         * CompilationResult.cs: used in caching.
3371
3372         * PageCompiler.cs: now derives from BaseCompiler
3373
3374         * TemplateFactory.cs: no longer needed.
3375
3376         * UserControlCompiler.cs: new class used when compiling user controls.
3377         * WebServiceCompiler.cs: derives from BaseCompiler.
3378
3379 2002-11-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3380
3381         * AspElements.cs: added ServerComment class.
3382         * AspParser.cs: ignore ServerComments tags. Remove server comments when 
3383         in verbatim mode.
3384
3385         Fixes #33482.
3386
3387         * PageCompiler.cs: check if the type is already cached before generating
3388         the C# file.
3389         * TemplateFactory.cs: if csFile parameter is null, only checks if we
3390         already have the page compiled.
3391
3392 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3393
3394         * AspGenerator.cs: undo one-liner change.
3395
3396 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3397
3398         * AspGenerator.cs: removed a few hacks no longer needed.
3399
3400 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3401
3402         * PageCompiler.cs: tracing.
3403         * TemplateFactory.cs: cache compiled types and tracing.
3404         * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
3405
3406 2002-10-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3407
3408         * AspComponentFoundry.cs: fixed typo.
3409         * TemplateFactory.cs: use csc style options.
3410         * AspGenerator.cs: don't use FileDependencies property of base class.
3411
3412 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3413
3414         * System.Web.Compilation/AspElements.cs:
3415         * System.Web.Compilation/AspGenerator.cs:
3416         * System.Web.Compilation/AspParser.cs:
3417         * System.Web.Compilation/PageCompiler.cs:
3418         * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
3419         pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
3420
3421 2002-09-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3422
3423         * AspElements.cs: added WebService directive.
3424         * WebServiceCompiler.cs: New file.
3425
3426 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3427
3428         * PageCompiler.cs: fixed compilation.
3429
3430 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3431
3432         * PageCompiler.cs: generate C# file using AspGenerator.
3433
3434 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3435
3436         * AspComponentFoundry.cs: LookupFoundry now returns bool.
3437         * AspGenerator.cs: New file.
3438
3439 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3440
3441         * AspComponentFoundry.cs: New file.
3442         * AspElements.cs: renamed Component to Aspcomponent.
3443
3444 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3445
3446         * AspElements.cs:
3447         * AspParser.cs:
3448         * AspTokenizer.cs:
3449         * ChangeLog:
3450         * PageCompiler.cs:
3451         * TemplateFactory.cs: first steps to move xsp into System.Web.
3452