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