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