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