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