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