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