1 2008-11-14 Marek Habersack <mhabersack@novell.com>
3 * TemplateControlCompiler.cs: treat Eval and Bind expressions as
4 verbatim code. The only difference between the two is that in the
5 latter case Bind is replaced with Eval in the output code. Fixes
7 If BindingDirection of the parent template builder is OneWay in
8 RegisterBindingInfo, do not throw an exception but simply do not
11 2008-10-29 Marek Habersack <mhabersack@novell.com>
13 * BuildManager.cs: seal the internal classes.
14 Remove unused BuildCacheItem.ValidBuild property.
16 2008-10-16 Marek Habersack <mhabersack@novell.com>
18 * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
19 use PropertyInfo.CanWrite to check whether the property is
20 writable anymore, it calls GetSetMethod (false) instead.
22 2008-10-10 Marek Habersack <mhabersack@novell.com>
24 * TemplateControlCompiler.cs: allow whitespace around parentheses
25 in the Bind and Eval expressions.
27 2008-10-09 Marek Habersack <mhabersack@novell.com>
29 * BuildManager.cs: if monoSettings section is found in the
30 system.web section in web.config, use its contents to augment
31 compiler configuration. Used to work around the issue reported in
34 2008-10-08 Marek Habersack <mhabersack@novell.com>
36 * TemplateControlCompiler.cs: templates must be instantiated even
37 for builders which process children as properties.
39 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
41 * AssemblyBuilder.cs: use CodeBase to get to the original assembly
42 path because Location might point the the shadow copy. Bug #409646
45 2008-10-03 Marek Habersack <mhabersack@novell.com>
47 * BuildManager.cs: if an assembly fails to build out of a batch of
48 files, extract the virtual path that was requested by the client
49 and attempt to compile it alone.
51 2008-09-29 Marek Habersack <mhabersack@novell.com>
53 * BuildManagerRemoveEntryEventHandler.cs: added
55 * BuildManager.cs: added a static event to notify interested
56 parties when an entry is removed from the buildCache. Fixes bug
59 2008-09-26 Marek Habersack <mhabersack@novell.com>
61 * BuildManager.cs: when creating a cache entry for a virtual path,
62 make it depend on a list of files built recursively from all the
63 virtual path's dependencies. Fixes bug #430114
65 2008-09-24 Andreia Gaita <avidigal@novell.com>
67 * AspParser.cs: When parsing text which contain xml tags that resemble
68 the end string, append the original text instead of the end string,
69 because the casing might not match between the two. Fixes #320445
71 2008-09-23 Marek Habersack <mhabersack@novell.com>
73 * AspGenerator.cs: ignore whitespace only if it's between
74 CodeRender blocks, not between DataBinding and
77 2008-09-01 Marek Habersack <mhabersack@novell.com>
79 * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
80 null/empty parser.InputFile now.
82 * AspGenerator.cs: AddTypeToCache works checks whether inputFile
83 is null or empty and does not assume the dependencies ArrayList is
85 CloseControl uses ControlBuilder's OriginalTagName property,
86 should the property/tag name be prefixed with 'prefix:'
88 * CachingCompiler.cs: expect the dependencies ArrayList to be null
91 2008-08-31 Marek Habersack <mhabersack@novell.com>
93 * TemplateControlCompiler.cs: trust builder.BindingContainerType
94 in the 2.0+ profile - do not use container properties to detect
96 Added a helper method, compiled only when DEBUG is defined, to
97 generate Console.WriteLine CodeDOM calls.
98 Templates are processed before anything else, so that children
99 which may depend on parent's templates can get access to them.
101 * BaseCompiler.cs: add line pragmas only if enabled for the
104 2008-08-29 Marek Habersack <mhabersack@novell.com>
106 * AppCodeCompiler.cs: properly handle profile base class
107 specifications which refer to full type names.
109 2008-08-26 Marek Habersack <mhabersack@novell.com>
111 * BuildManager.cs: use VirtualPathUtility.Combine in
112 GetAbsoluteVirtualPath for non-rooted paths.
114 2008-08-19 Marek Habersack <mhabersack@novell.com>
116 * ThemeDirectoryBuildProvider.cs: theme directory dependencies
117 should use only virtual paths for CSS files. Fixes bug #397187
119 2008-08-18 Marek Habersack <mhabersack@novell.com>
121 * TemplateControlCompiler.cs: process expression when they are
122 used used in values of attributes without associated
123 properties. Fixes bug #417883
125 * ResourceExpressionBuilder.cs: added two overloads of
126 CreateGetLocalResourceObject to encompass cases when the generated
127 expression is not assigned to a property but rather used as a
128 parameter to the SetAttribute method. Fixes bug #417883
130 2008-08-14 Marek Habersack <mhabersack@novell.com>
132 * AspGenerator.cs: do not ignore directives inside HTML comments.
134 * TemplateControlCompiler.cs: .NET allows for whitespace between
135 the directive start (<%) and the directive type character. Added
136 code which copes with such situations correctly.
138 2008-08-13 Marek Habersack <mhabersack@novell.com>
140 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
141 to allow for single quotes and an optional second parameter to the
143 Added an Eval regular expression.
144 Both Bind and Eval calls in data expressions are now converted
145 into a CodeDOM method invocations, to allow support for possible
146 languages which use a different call format (previously code
148 Added a method to construct the Eval invoke expression which
149 simplifies code in other areas.
152 2008-08-06 Marek Habersack <mhabersack@novell.com>
154 * TemplateControlCompiler.cs: handle situation when a property of
155 a control for which we're generating the code is of type
156 'Type'. In such case, variable.GetType() will return
157 System.MonoType, which must not be output to the generated
158 source. Thanks to Robert Jordan for giving the idea for the hack!
160 2008-06-30 Marek Habersack <mhabersack@novell.com>
162 * AspGenerator.cs: hush the warnings and fix invalid type
165 * AssemblyBuilder.cs: hush the warnings and add some debugging
168 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
169 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
170 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
172 2008-06-18 Marek Habersack <mhabersack@novell.com>
174 * TemplateControlCompiler.cs: AddChildCall properly processes the
175 PartialCachingAttribute now.
177 2008-06-11 Marek Habersack <mhabersack@novell.com>
179 * BuildManager.cs: if an error occurs while assigning the
180 requested path to an assembly builder inside BuildAssembly, throw
183 * BaseCompiler.cs: do not generate #line pragma for code which
184 exists only in memory.
186 2008-05-30 Marek Habersack <mhabersack@novell.com>
188 * ClientBuildManager.cs: do not use synthetized event accessors
191 2008-05-28 Marek Habersack <mhabersack@novell.com>
193 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
196 2008-05-19 Marek Habersack <mhabersack@novell.com>
198 * AspGenerator.cs: if the last tag parsed was a code directive,
199 ignore any accumulated text if it's 100% whitespace.
200 Do not parse code render directives inside comments.
202 2008-05-15 Marek Habersack <mhabersack@novell.com>
204 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
205 when adding a foundry to the array list. AssemblyFoundry instances
206 are stacked at the end of the array list in a LIFO manner. That
207 way TagNameFoundry takes precedence over AssemblyFoundry should
208 the two contain the same type.
210 2008-05-14 Marek Habersack <mhabersack@novell.com>
212 * ParseException.cs: location can be null in the FileText property
215 2008-05-07 Marek Habersack <mhabersack@novell.com>
217 * AspGenerator.cs: push the include file directory to the parser
218 include directory stack and pop it after parsing the include, so
219 that the relative file paths are resolved correctly. Fixes bug
222 2008-05-06 Marek Habersack <mhabersack@novell.com>
224 * TemplateControlCompiler.cs: compatibility - added the
225 __stringResource static field to the generated class and a call to
226 SetStringResourcePointer to the FrameworkInitialize method.
228 * PageCompiler.cs: __fileDependencies should also be defined in
230 Page properties assigned in the page directive should be set
231 inside BuildControlTree in the 2.0 profile.
233 2008-04-29 Marek Habersack <mhabersack@novell.com>
235 * WebServiceCompiler.cs: if compiling a body-less web service, try
236 to load the class type from the loaded assemblies before
237 attempting to find it in the assemblies on disk.
239 2008-04-28 Marek Habersack <mhabersack@novell.com>
241 * BuildManager.cs: ignore bad assemblies in the bin/
242 directory. Fixes bug #315816
244 2008-04-26 Marek Habersack <mhabersack@novell.com>
246 * GenericBuildProvider.cs: the Parse () method should reuse the
247 previously opened TextReader when calling generator.Parse (), to
248 avoid opening the input file multiple times. Fixes bug #383881
250 2008-04-25 Marek Habersack <mhabersack@novell.com>
252 * AspGenerator.cs: put some safeguards in, to make sure streams
253 are closed in any case.
255 2008-04-24 Marek Habersack <mhabersack@novell.com>
257 * AspComponentFoundry.cs: added a new GetComponentType overload
258 which returns component source and a boolean flag whether the
259 control was registered from web.config (2.0).
261 2008-04-22 Marek Habersack <mhabersack@novell.com>
263 * BuildManager.cs: ignore also arbitrary exceptions when
264 batch-building an assembly. Fixes bug #323556
266 2008-04-19 Marek Habersack <mhabersack@novell.com>
268 * BuildManager.cs: use absolute virtual path to query the
269 VirtualPathProvider for path existence.
270 When ASP.NET is self-hosted, force
271 non-batch compilation. Fixes bug #380985
273 * ILocation.cs: added a new property, FileText.
275 * Location.cs: added implementation of the ILocation.FileText
278 * ParseException.cs: use the new ILocation.FileText, if defined,
279 to get the file source.
281 * AspGenerator.cs: when TextReader is present, use it to read with
282 the VirtualPathProvider to read the file source. Fixes bug #381364
284 * AspParser.cs: added a new property FileText to provide the file
285 contents which was read in the constructor.
287 2008-04-18 Marek Habersack <mhabersack@novell.com>
289 * BuildManager.cs: when any parsing error occurs during batch
290 building, ignore the file which caused it. If the file with
291 parsing error is the one requested by user, throw the parsing
292 exception. Fixes bug #323742
294 2008-04-15 Marek Habersack <mhabersack@novell.com>
296 * CachingCompiler.cs: dispose of streams the way it should
299 2008-04-09 Marek Habersack <mhabersack@novell.com>
301 * BuildManager.cs: refactoring - the SetCommonParameters and
302 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
303 and made internal static.
304 Do not catch compilation exceptions and wrap them in
305 HttpException, let the CompilationException pass through. Fixes
308 * AppWebReferencesCompiler.cs: added - support for compiling of
309 wsdl files found in the App_WebResources directory. Fixes bug
312 * BuildProvider.cs: refactoring - moved the SetCommonParameters
313 and GetDefaultCompilerTypeForLanguage to BuildManager
315 * WsdlBuildProvider.cs: added the CodeCompilerType property
317 Namespace for the generated code is taken from the wsdl path,
318 relative to App_Code or App_WebReferences, if the wsdl in question
319 is under on of those directories.
320 GenerateCode uses OpenReader () so that VirtualPathProvider works
323 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
324 when generating source from code unit and use
325 WebEncoding.FileEncoding when adding code files to the unit. Fixes
327 Cope with virtualPath being null in BuildAssembly.
328 Reference assemblies specified in web.config when linking.
330 2008-04-08 Marek Habersack <mhabersack@novell.com>
332 * AspComponentFoundry.cs: add loaded assembly to the
333 BuildManager's list of referenced assemblies instead to
334 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
336 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
338 * BuildManager.cs: switched to VirtualPath instead of a string
339 path in several methods.
340 Batch compilation is turned off if we have a custom
341 VirtualPathProvider which implements only the VirtualFile and
342 falls back to DefaultVirtualDirectory implementation for directory
344 Added an internal method AddToReferencedAssemblies.
345 Remove invalidated entry from
346 WebConfigurationManager.ExtraAssemblies.
348 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
350 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
352 * AssemblyBuilder.cs: constructors use the new VirtualPath class
354 AddCodeFile can use the VirtualPathProvider if necessary now.
355 BuildAssembly overloads accept VirtualPath parameter instead of a
358 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
361 2008-03-31 Marek Habersack <mhabersack@novell.com>
363 * AppCodeCompiler.cs: implemented support for AppInitialize (a
364 static method in any class defined in the App_Code source files),
365 ran just after the App_Code assemblies are compiled in order to
366 perform any application initialization actions.
368 2008-03-27 Marek Habersack <mhabersack@novell.com>
370 * BuildManager.cs: AssertVirtualPathExists now queries the
371 VirtualPathProvider for path existence if physical path check
372 fails, before throwing the 404 exception.
374 2008-03-13 Marek Habersack <mhabersack@novell.com>
376 * BuildManager.cs: if we're running in a case-insensitive
377 environment, use case-insensitive comparer for the build caches.
379 2008-02-29 Marek Habersack <mhabersack@novell.com>
381 * BuildManager.cs: implement a mechanism to ignore certain virtual
382 paths when batch compiling. Helps applications which may have
383 .as?x files which won't work on mono for various reasons (one such
384 sample is mojoportal).
386 2008-02-28 Marek Habersack <mhabersack@novell.com>
388 * TemplateControlCompiler.cs: make sure that data-bound attribute
389 assignments properly convert the Bind expression to the Eval
390 one. Fixes bug #362039
392 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
393 controls can contain only them, whitespace and directives. Fixes
396 2008-02-27 Marek Habersack <mhabersack@novell.com>
398 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
399 LoadType method for the 2.0 profile.
401 * CompilationException.cs: use a different format of ErrorMessage
402 for the 2.0+ profile.
404 2008-02-26 Marek Habersack <mhabersack@novell.com>
406 * BuildManager.cs: known file types extensions are now matched
409 2008-02-25 Marek Habersack <mhabersack@novell.com>
411 * TemplateControlCompiler.cs: GetContainerType now checks whether
412 the binding container returned from the builder implements
413 IDataItemContainer (for 2.0+ profiles) and looks for one more
414 property, Rows, if no Items property is found.
416 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
418 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
419 "raw" appsetting value if targetType is null.
421 2008-02-07 Marek Habersack <mhabersack@novell.com>
423 * CompilationException.cs: added new constructor which takes
424 CompilerResults as one of the parameters.
425 Added CompilerOutput property.
427 * AssemblyBuilder.cs: use the new CompilationError constructor.
429 * BuildManager.cs: check for virtualPath existence before
430 attempting to compile the assemblies. Fixes bug #359465
432 2008-02-06 Marek Habersack <mhabersack@novell.com>
434 * GenericBuildProvider.cs: GetGeneratedType may return a type even
435 though the results are null.
437 * AssemblyBuilder.cs: if there are no units, no source files, no
438 resources and no embedded resources in the passed options then
439 do not attempt to compile the assembly. Fixes bug #359325
441 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
442 BuildAssembly may return null results.
444 * BuildManager.cs: protect non-page builds from endless recursion
445 if a non-page file recursively references/includes another file
446 from the same batch. If such case is detected, the recursively
447 referenced file is compiled into a separate assembly and removed
448 from the previous compilation batch. Fixes bug #358742.
449 If AssemblyBuilder returns no results from BuildAssembly, it might
450 mean we're dealing with a compilation of empty .as[hm]x files,
451 with no code and only code-behind in bin/. Do not report an error
452 in that case, only add the compiled types to the cache. Fixes bug
455 2008-02-05 Marek Habersack <mhabersack@novell.com>
457 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
458 non-rooted relative paths to absolute ones now. Fixes bug
461 * GenericBuildProvider.cs: introduced a new abstract method,
462 GetReferencedAssemblies, which is called on descendant builders to
463 get a list of assemblies referenced by the parsed file. Fixes bug
466 * AssemblyBuilder.cs: added a new overload of the
467 AddAssemblyReference method, to be used by build providers to
468 register assemblies collected by the corresponding parser.
470 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
471 overload of the new abstract method GetReferencedAssemblies.
473 * AspGenerator.cs: introduced a new overload for the Parse method
474 which accepts a bool indicating whether or not to initialize the
475 parser. The overload is used when parsing server-side
476 includes. Fixes bug #357498
478 2008-02-04 Marek Habersack <mhabersack@novell.com>
480 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
481 generating source code files. Fixes bug #357053.
483 * AspGenerator.cs: set isApplication before parsing. Fixes bug
486 2008-01-31 Jb Evain <jbevain@novell.com>
488 * AspGenerator.cs: correct typo. Fix #357547.
490 2008-01-27 Marek Habersack <mhabersack@novell.com>
492 * BuildManager.cs: GetReferencedAssemblies includes the extra
493 assemblies and the App_Code assemblies. Patch from Mike Morano
494 <mmorano@mikeandwan.us>, thanks!
496 2008-01-24 Marek Habersack <mhabersack@novell.com>
498 * WebHandlerBuildProvider.cs: derive from the new
499 SimpleBuildProvider class.
501 * BuildManager.cs: full implementation of the batch compilation
502 for the 2.0 profile. The implementation is most probably different
503 to MS.NET's but the effects are the same (or nearly the same -
504 there are some minor differences). There are missing bits and
505 pieces, but minor ones - to be added later.
507 * SimpleBuildProvider.cs: new build provider abstract class
508 deriving from the GenericBuildProvider that implements common code
509 for building web handlers and web services.
511 * GenericBuildProvider.cs: new generic abstract class used to
512 implement base builder code for all the build provider types and
515 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
516 class and implement all the necessary abstract members.
517 Handle "fake" virtual paths, to properly support generating of the
520 * BuildProvider.cs: SetVirtualPath now converts the passed path to
522 Added internal virtual method GenerateCode, used by derived
524 SetCommonParameters no longer sets the referenced assemblies, this
525 is done in BuildManager now.
526 Added an internal virtual property CodeUnit which returns the
527 build provider's compilation unit.
529 * PageCompiler.cs: fix assignment of base types for asynchronous
530 pages, to match MS.NET.
531 For asynchronous pages, add the necessary methods generation.
533 * BaseCompiler.cs: default namespace is now set using a constant.
534 Renamed the Init method into ConstructType, to better reflect its
535 purpose and made the method internal - it is used by the build
537 Added several CreateProvider overloads for easier and more unified
538 compilation provider creation.
539 Added an internal MainClassType property to enable class type name
540 retrieval from other parts of the class hierarchy.
542 * ApplicationFileBuildProvider.cs: new build provider deriving
543 from the TemplateBuildProvider class to compile the global.asax
546 * AspGenerator.cs: properly handle parsers which have no input
547 file path given, but use TextReader instead.
548 Dependencies are virtual paths now, convert them to physical ones
549 before creating cache dependency.
551 * CachingCompiler.cs: parser dependencies are virtual paths now,
552 convert them to physical ones before creating cache dependency.
554 * AssemblyBuilder.cs: full implementation of the documented
555 functionality as well as a lot of internal build code
556 added. Produces assemblies using the same style what MS.NET for
557 temporary and target file naming. Handles partial type squashing
558 if the same partial type is used by several code compile units
559 added to the same builder instance.
561 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
562 base class and add implementation of all the abstract methods
565 * ThemeDirectoryBuildProvider.cs: new build provider to compile
566 theme directories. Replaces the old ThemeDirectoryCompiler class.
568 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
569 base class and add implementation of all the abstract methods
572 * TemplateBuildProvider.cs: new internal abstract class which
573 implements the common tasks for all the template control build
576 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
577 type to implement building.
579 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
581 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
583 2008-01-08 Marek Habersack <mhabersack@novell.com>
585 * TemplateControlCompiler.cs: statements to assign
586 fields/properties from resources must be processed at the very end
587 of the control creation method. Some controls (like HyperLink) can
588 set their Text attribute using literal content. In such cases, in
589 order to properly localize the control, the value read from the
590 local page resources must be assigned after the literal value has
591 been added to the control. Fixes bug #323494
593 2008-01-07 Marek Habersack <mhabersack@novell.com>
595 * CachingCompiler.cs: added an overload to the Compile method
596 which accepts a flag whether or not to include debug information
597 in the generated assembly.
599 2008-01-02 Marek Habersack <mhabersack@novell.com>
601 * TemplateControlCompiler.cs: add line pragma wherever necessary.
603 * PageCompiler.cs: reorder the statements to match MS.NET output.
604 Output line pragma information for directive attributes.
606 * BaseCompiler.cs: add a set of AddLinePragma methods for various
608 Output line pragmas when adding server-side scripts to the CodeDOM
611 * AspGenerator.cs: use ServerSideScript to store script location
612 in the original file.
614 * UserControlCompiler.cs: output line pragmas for the init
617 2007-12-28 Marek Habersack <mhabersack@novell.com>
619 * PageCompiler.cs: MS.NET compatibility: added the
620 __fileDependencies object to the generated class.
621 Refactored the output to match MS.NET more closely.
622 IHttpHandler or IHttpAsyncHandler are now added to the generated
623 class list of implemented interfaces.
625 * BaseCompiler.cs: Main class field references are prefixed with
627 Refactored the output to match MS.NET more closely.
629 2007-12-27 Marek Habersack <mhabersack@novell.com>
631 * BaseCompiler.cs: check for base type globality in all the
634 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
636 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
639 2007-12-21 Marek Habersack <mhabersack@novell.com>
641 * BaseCompiler.cs: Refactoring. Move the provider creation code to
642 an internal static method, so that other piece of code which need
643 to create the provider can do it using the same code.
644 Added setters to several internal properties, so that they can be
645 shared with derivative classes.
647 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
650 * CachingCompiler.cs: adjust to the changes above. Also some
653 2007-12-15 Marek Habersack <mhabersack@novell.com>
655 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
657 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
658 profile, it's obsoleted. CachingCompiler will use the
659 CodeDomProvider methods directly in that case.
661 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
662 compiler information for the 2.0 profile from system.codeDom.
664 * CachingCompiler.cs: the Compile overloads do not use the
665 compiler instance, but call appropriate methods on the
666 CodeDomProvider instance directly.
667 Updated some Compile overloads to acquire compiler information for
668 the 2.0 profile from system.codeDom.
670 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
672 * TemplateControlCompiler.cs (AddExpressionAssign):
673 Make sure expression does not contain prefix.
675 * AppSettingsExpressionBuilder.cs: Pass type of property to
676 GetAppSetting, not type of declaring type.
678 2007-12-13 Marek Habersack <mhabersack@novell.com>
680 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
681 AssemblyBuilder.cs, AppResourcesCompiler.cs,
682 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
683 optimization - use String.Concat instead of String.Format in some
686 2007-11-22 Marek Habersack <mhabersack@novell.com>
688 * PageCompiler.cs: use
689 pageParser.OutputCacheVaryByContentEncodings when initializing the
690 output cache in the 2.0 profile.
692 2007-11-06 Marek Habersack <mhabersack@novell.com>
694 * BuildManager.cs: properly retrieve the BuildProviderCollection
695 from configuration files.
697 2007-11-03 Marek Habersack <mhabersack@novell.com>
699 * TemplateControlCompiler.cs: do not call converters specified in
700 the member custom attributes if 'str' is null in
701 GetExpressionFromString.
703 2007-10-23 Marek Habersack <mhabersack@novell.com>
705 * AppResourcesAssemblyBuilder.cs: do not output preservation files
706 for satellite assemblies, just for the main assembly. Also, don't
707 add the satellite assemblies to the list of top-level assemblies.
709 2007-10-17 Marek Habersack <mhabersack@novell.com>
711 * PageCompiler.cs: added code to set the AsyncMode and
712 AsyncTimeout Page properties.
714 2007-10-15 Marek Habersack <mhabersack@novell.com>
716 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
717 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
718 HttpApplication.LoadType instead of Type.GetType.
720 2007-10-10 Marek Habersack <mhabersack@novell.com>
722 * TemplateControlCompiler.cs: be careful when using type
723 converters taken from attributes attached to class members. They
724 may come from the System.Design namespace, which is mostly not
727 2007-10-01 Marek Habersack <mhabersack@novell.com>
729 * AppResourcesCompiler.cs: resources are no longer compiled into a
730 single assembly. Instead, the common assembly construction code
731 has been moved to AppResourcesAssemblyBuilder to use satellite
734 * AppResourcesAssemblyBuilder.cs: new resource assembly
735 construction code which takes care of outputting satellite
738 2007-09-27 Marek Habersack <mhabersack@novell.com>
740 * TemplateControlCompiler.cs: support nullable types in
741 GenerateExpressionFromString.
743 2007-09-21 Marek Habersack <mhabersack@novell.com>
745 * TemplateControlCompiler.cs: if we're running on a platform with
746 the directory separator character that's different to the Unix
747 style '/' one, convert the input file path to the virtual path
748 style string, with path parts separated by '/'. Patch from Robert
749 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
751 2007-09-20 Marek Habersack <mhabersack@novell.com>
753 * TemplateControlCompiler.cs: if a member passed to
754 GetExpressionFromString has a TypeConverter attribute set, try to
755 use the named type converter to convert the string value into the
756 target type. Fixes bug #325489.
758 2007-09-14 Marek Habersack <mhabersack@novell.com>
760 * AppResourcesCompiler.cs: use _culture and _resourceManager
761 instead of culture and resourceManger in the generated code, to
762 avoid case problems for languages that are case-insensitive.
764 2007-09-10 Marek Habersack <mhabersack@novell.com>
766 * TemplateControlCompiler.cs: cast the expression to the field
767 type whenever appropriate in GetExpressionFromString.
768 When generating an object instance and one of the parameters is
769 System.Type, return a typeof expression.
771 2007-09-07 Marek Habersack <mhabersack@novell.com>
773 * TemplateControlCompiler.cs: another modification to the way
774 TemplateInstance.Single templates are treated. The search for
775 parent with this attribute set stops as soon as the first
776 TemplateBuilder is encountered, no matter what the value of its
777 TemplateInstance attribute is.
779 2007-09-06 Marek Habersack <mhabersack@novell.com>
781 * TemplateControlCompiler.cs: ID must be assigned as soon as
782 possible, before any other attributes of the control are
783 accessed. The control code may rely on ID being set.
784 Extend the process of checking if a control is located within a
785 template with the TemplateInstance.Single attribute set, to all
786 the parents of the current builder.
788 2007-09-05 Marek Habersack <mhabersack@novell.com>
790 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
791 batch must share the same component foundry. Under MS.NET if any
792 earlier .skin file registers a control prefix any later .skin
793 files may use it without registering.
795 2007-09-04 Marek Habersack <mhabersack@novell.com>
797 * TemplateControlCompiler.cs: make sure that base class doesn't
798 contain a field of the same name which is accessible from the
799 current control if we're within a singleton template.
800 When generating code for a property or field, use the name
801 retrieved from the metadata by reflection instead of the one
802 parsed from html. Fixes bug #82687. Patch from SunHo Kim
803 <zsunno@gmail.com>, thanks!
805 2007-08-29 Marek Habersack <mhabersack@novell.com>
807 * CachingCompiler.cs: consider contents of the
808 <compilation><assemblies> section when constructing a list of
809 assemblies during compilation.
811 * TemplateControlCompiler.cs: mark fields corresponding to the
812 controls as global references.
813 When control tree is constructed and the parent of the current
814 builder is a TemplateBuilder marked with the TemplateInstance
815 attribute set to Single, use the control's ID as the field
816 name. This makes it possible to refer to controls inside templates
817 by name instead of by using FindControl.
819 2007-08-23 Marek Habersack <mhabersack@novell.com>
821 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
822 and HttpApplication.LoadTypeFromBin.
824 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
827 2007-08-21 Marek Habersack <mhabersack@novell.com>
829 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
830 to look up assemblies in the binary path(s).
832 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
834 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
835 for scope case insensitive. Fixes bug #82479.
837 2007-08-14 Marek Habersack <mhabersack@novell.com>
839 * TemplateControlCompiler.cs: remove dead code.
841 * AssemblyBuilder.cs: include actual exception information when
842 reporting inability to load a compiled assembly.
844 * AppCodeCompiler.cs: remove unused variables.
846 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
847 component collections, instead of the old Queue which implemented
848 FIFO. Fixes situations when a control registered later for a
849 certain prefix would not be used in preference to a previously
850 registered one of the same name.
852 2007-08-06 Marek Habersack <mhabersack@novell.com>
854 * AspComponentFoundry.cs: properly add new foundry if the
855 corresponding entry in the foundries collection is a Queue. Patch
856 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
858 2007-07-31 Marek Habersack <mhabersack@novell.com>
860 * AspComponentFoundry.cs: do not overwrite previously registered
861 foundries when a new one is registered with the same prefix. Fixes
864 2007-07-18 Marek Habersack <mhabersack@novell.com>
866 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
867 does not look up the Item/Items properties to determine the
868 container type, instead it just returns the type reported by the
869 builder passed to this method. This change makes the generated
870 code match MS.NET. Fixes bug #82119.
872 2007-07-02 Marek Habersack <mhabersack@novell.com>
874 * TemplateControlCompiler.cs: don't use StartWith to see if a
875 variable's value is a bind expression, as it erroneously renames
876 all calls to methods starting with the string Bind. Use a regular
877 expression now instead. Fixes bug #81928.
879 2007-06-20 Marek Habersack <mhabersack@novell.com>
881 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
883 * CachingCompiler.cs: as above
884 * AspGenerator.cs: as above
886 2007-06-13 Marek Habersack <mhabersack@novell.com>
888 * TemplateControlCompiler.cs: make sure control has a writable
889 TemplateControl property prior to assigning values to it.
891 2007-06-09 Marek Habersack <mhabersack@novell.com>
893 * TemplateControlCompiler.cs: TemplateControl is assigned for
894 controls that are placed within ContentPlaceHolder and not for the
895 ContentPlaceHolder itself.
896 No longer add the overriden version of TemplateSourceDirectory to
897 the generated source, all the work is now done in
898 Control.TemplateSourceDirectory.
900 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
901 slash, for compatibility with MS.NET
903 2007-06-05 Marek Habersack <mhabersack@novell.com>
905 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
906 profile uses the TemplateControl property instead of Parent. This
907 allows to return the correct path.
909 2007-06-01 Marek Habersack <mhabersack@novell.com>
911 * TemplateControlCompiler.cs: be case-insensitive when looking for
914 2007-05-29 Marek Habersack <mhabersack@novell.com>
916 * ThemeDirectoryCompiler.cs: pass the skin file's
917 virtual path to the skin file parser as its first paramenter, and
920 2007-05-28 Marek Habersack <mhabersack@novell.com>
922 * ResourceExpressionBuilder.cs: properly cast
923 GetGlobalResourceObject calls to the type of the property being
926 2007-05-25 Marek Habersack <mhabersack@novell.com>
928 * TemplateControlCompiler.cs: Changed a few incorrect
929 ObjectCreationExpression to the correct DelegateCreationExpression.
932 2007-05-24 Marek Habersack <mhabersack@novell.com>
934 * PageCompiler.cs: added support for the PreviousPageType directive.
936 * Directive.cs: as above.
938 2007-05-22 Marek Habersack <mhabersack@novell.com>
940 * UserControlCompiler.cs: the Profile property should be present
941 also in user controls.
943 2007-05-15 Marek Habersack <mhabersack@novell.com>
945 * ResourceExpressionBuilder.cs: added a static method to generate
946 a GetLocalResourceObject call which properly handles types which
947 cannot be converted from strings.
949 * TemplateControlCompiler.cs: use code described above to generate
950 code for properties assigned from resources.
952 * WsdlBuildProvider.cs: make the code actually work - get the
953 physical path of VirtualPath instead of converting it to absolute
955 Do not generate source, add the code unit to assembly builder
958 * XsdBuildProvider.cs: added
960 2007-05-08 Marek Habersack <mhabersack@novell.com>
962 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
963 so use a delegate create expression - it may make difference for
964 languages other than C# (e.g. VisualBasic).
966 2007-05-07 Marek Habersack <mhabersack@novell.com>
968 * AspGenerator.cs: if the parser's language is implicit (i.e. set
969 from the default configuration), the first script with the
970 language attribute present sets the language of the parser.
972 2007-05-04 Marek Habersack <mhabersack@novell.com>
974 * TemplateControlCompiler.cs: do not query the parent for
975 TemplateSourceDirectory if we are generating code for a Master
978 2007-04-30 Marek Habersack <mhabersack@novell.com>
980 * ConnectionStringsExpressionBuilder.cs: support expressions with
981 suffixes .ProviderName and .ConnectionString (case-insensitie) and
982 generate a call to GetConnectionStringProviderName in the former
983 case. Fixes bug #81490
985 * AppCodeCompiler.cs: support for cases when there exists a custom
986 profile class but there is no App_Code directory or it's
987 empty. Fixes bug #81489.
989 * TemplateControlCompiler.cs: fix generation of code for
990 declarative attribute assignments of the form Font-Size="small"
991 (i.e. when a font size is assigned a symbolic, relative size
992 value). This fixes for example rendering of the 0th level of
995 2007-04-27 Marek Habersack <mhabersack@novell.com>
997 * AppCodeCompiler.cs: do not look at the number of errors, check
998 the compiler return code instead.
999 Resolve assembly names from the global web.config to their
1000 locations before passing them to the compiler provider.
1002 * AssemblyBuilder.cs: as above
1004 * AppResourcesCompiler.cs: as above
1006 * AspComponentFoundry.cs: formatting changes.
1007 AssemblyFoundry looks for the specified namespace+type in the
1008 top-level assemblies if necessary.
1010 2007-04-26 Marek Habersack <mhabersack@novell.com>
1012 * AssemblyBuilder.cs: handle compilation failures in a better
1015 * PageCompiler.cs: the Master property must be in the partial
1016 class if present. Fixes bug #81442
1018 2007-04-20 Marek Habersack <mhabersack@novell.com>
1020 * AppCodeCompiler.cs: fix App_Code build when the directory
1021 contains both known and unknown files.
1023 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1025 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1028 2007-04-19 Marek Habersack <mhabersack@novell.com>
1030 * AppCodeCompiler.cs: yet another method of detecting if we have a
1033 * BaseCompiler.cs: as above
1035 * AspComponentFoundry.cs: implemented delayed loading of control
1036 assemblies. Fixes bug #81058.
1038 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1040 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
1041 then use it instead of the default ASP namespace. Fixes part of bug
1044 2007-04-19 Marek Habersack <mhabersack@novell.com>
1046 * BaseCompiler.cs: don't look at the number of profile properties
1047 when deciding if we have a custom profile. It is possible to have
1048 a profile that just inherits from a base class and does not list
1049 any custom properties. Fixes bug #81396.
1051 * AppCodeCompiler.cs: as above
1053 2007-04-15 Marek Habersack <mhabersack@novell.com>
1055 * AppCodeCompiler.cs: properly convert physical file path to
1056 virtual path for build providers.
1057 Make sure there's actually anything to compile.
1059 2007-04-11 Marek Habersack <mhabersack@novell.com>
1061 * AppCodeCompiler.cs: move custom profile type check till after
1062 the App_Code compilation is done. That way we can have custom
1063 profile providers in there. Fixes bug #81307.
1065 2007-04-10 Marek Habersack <mhabersack@novell.com>
1067 * AppResourceFilesCollection.cs: watch App_LocalResources for
1070 2007-04-06 Marek Habersack <mhabersack@novell.com>
1072 * BaseCompiler.cs: display the source of the file in which the
1073 error actually happened if the file exists, or the unit
1076 2007-04-03 Marek Habersack <mhabersack@novell.com>
1078 * AppResourcesCompiler.cs: global resources are put in the
1079 "Resources." namespace while local ones are not. Fixes bug #81174
1080 which was reopened after r75261.
1082 2007-03-26 Marek Habersack <mhabersack@novell.com>
1084 * TemplateControlCompiler.cs: refactor assining properties from
1085 resources a bit to support pages and user controls. Fixes bug
1087 Process meta:resourcekey after all the field/attribute assignments
1088 are done. Fixes bug #80809.
1089 Clean the code up a bit.
1090 Use GetExpressionFromString to generate a correct expression for
1091 custom page/control attributes. Fixes bug #81132.
1093 2007-03-21 Marek Habersack <mhabersack@novell.com>
1095 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1096 AssignAppRelativeVirtualPath if the attribute was defined.
1098 * TemplateControlCompiler.cs: added support for setting custom
1099 attributes of a base class from the Page or Control directive
1102 2007-03-20 Marek Habersack <mhabersack@novell.com>
1104 * ResourceExpressionBuilder.cs: if the resource class key is null
1105 or empty, call GetLocalResourceObject, if not,
1106 GetGlobalResourceObject. Fixes bug #81174.
1108 2007-03-16 Marek Habersack <mhabersack@novell.com>
1110 * AppCodeCompiler.cs: produce message that makes more sense.
1112 2007-03-15 Marek Habersack <mhabersack@novell.com>
1114 * AppResourcesCompiler.cs: handle global resource keys with dots
1115 the way MS.NET does. All the dots are replaced with underscores
1116 when generating the stronly-typed property.
1118 2007-03-14 Marek Habersack <mhabersack@novell.com>
1120 * AppResourcesCompiler.cs: Fix a bug with global resources file
1121 grouping where no translated resources were processed due to base
1124 * TemplateControlCompiler.cs: hadle situations when there exist a
1125 control in the page with id matching the name of a field/property
1126 in the parent class. In this case we use 'protected new' to
1127 override the parent.
1129 2007-03-13 Marek Habersack <mhabersack@novell.com>
1131 * AspParser.cs: fix an off-by-one parsing bug with server-side
1134 * PageThemeCompiler.cs: let property builders through, stop the
1135 builders that have no control type. Fixes bug #81092
1137 * PageCompiler.cs: interfaces are to be implemented by the parent
1138 partial class, not the generated one.
1140 * AppResourceFilesCollection.cs: added separate constructor for
1141 local resources handling.
1143 * TemplateControlCompiler.cs: request the local resource object
1144 with proper virtual path.
1145 Put field declarations for controls in the partial class.
1146 Make sure builders are in valid state before trying to use them.
1148 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1149 property in the page/control constructor.
1150 Change the generated code model for pages/controls to comply with
1151 the way MS.NET does (partial class contains only two properties
1152 plus declarations of all the controls, the actual control/page
1153 class inherits from the partial class). Fixes bug #81001.
1155 * AppResourcesCompiler.cs: does not require specifying manually
1156 whether it's a global or local resource compiler anymore. New
1157 constructors take care of that.
1158 Changed to compile local resources on demand, when a control/page
1161 2007-03-12 Marek Habersack <mhabersack@novell.com>
1163 * AspParser.cs: revert r73587 as it breaks more than it fixes.
1165 * AspComponentFoundry.cs: try to register foundries from App_Code
1166 assemblies if tag prefix and its namespace are defined. Fixes bug
1169 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1170 of Assembly instances, not strings.
1172 * CachingCompiler.cs: make sure items in the CodeAssemblies and
1173 TopLevelAssemblies are really instances of the Assembly class
1174 before trying to use them.
1175 CodeAssemblies is a collection of Assembly instances, not
1178 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1179 assemblies, not paths to assemblies.
1181 2007-03-10 Marek Habersack <mhabersack@novell.com>
1183 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1184 CreateProfileProperty and InternalCreatePageProperty to
1185 BaseCompiler from PageCompiler.
1187 * GlobalAsaxCompiler.cs: generate the Profile property for the
1190 2007-03-09 Marek Habersack <mhabersack@novell.com>
1192 * AppCodeCompiler.cs: Add the GetProfile method to the
1193 ProfileCommon auto-generated class.
1195 * AppResourcesCompiler.cs: attempt to load the resource file
1196 earlier in the process, to gracefully handle empty files.
1198 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1199 .skin and .css files composing the theme.
1201 2007-03-05 Marek Habersack <mhabersack@novell.com>
1203 * PageThemeCompiler.cs: Use correct theme path for
1204 AppRelativeTemplateSourceDirectory.
1205 Do not process builders of type CodeRenderBuilder.
1206 Make sure builder.ControlType is not null before depending on it.
1208 * ThemeDirectoryCompiler.cs: theme parser should be passed the
1209 virtual directory of the theme.
1211 2007-03-03 Marek Habersack <mhabersack@novell.com>
1213 * PageCompiler.cs: Added support for setting the
1214 MaintainScrollPositionOnPostBack property if the corresponding
1215 page directive attribute is found.
1217 * Directive.cs: added the MaintainScrollPositionOnPostBack and
1218 LinePragmas directives.
1220 2007-03-02 Marek Habersack <grendello@gmail.com>
1222 * AppCodeCompiler.cs: Correctly process App_Code directories which
1223 have no compilable files in the top-level directory. Fixes bug
1225 Write preservation files for the App_Code assemblies.
1227 2007-03-01 Marek Habersack <grendello@gmail.com>
1229 * AspParser.cs: fix GetVerbatim for cases when the end is
1230 e.g. --> or --%> and the string matched is ---> or ---%>
1231 respectively. The new code always backs out to make sure the end is
1234 2007-02-27 Marek Habersack <grendello@gmail.com>
1236 * TemplateControlCompiler.cs: ParseExpression returns an object,
1237 don't assume any concrete type.
1238 Use the current culture when converting the expression to a
1241 * ConnectionStringsExpressionBuilder.cs: Implement support for
1242 expressions of the <%$ ConnectionStrings:StringName %> form
1244 2007-02-19 Marek Habersack <grendello@gmail.com>
1246 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1248 2007-02-16 Marek Habersack <grendello@gmail.com>
1250 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1251 is referenced twice by the compiler(s).
1253 * TemplateControlCompiler.cs: Fix the problem with cultures which
1254 have a comma as their decimal separator and font/whatever
1255 units. New code does not reparse the text representation of the
1256 unit on the runtime (e.g. 0.9em) but instead it constructs the
1257 property using the FontUnit/Unit constructors which take,
1258 respectively, Unit and double/unittype parameters. This avoids
1259 culture-specific parsing.
1260 Also fix converting from invariant strings in a culture-aware
1261 environment (e.g. in a page that uses Culture="auto") during the
1264 2007-02-12 Marek Habersack <grendello@gmail.com>
1266 * PreservationFile.cs: Support preservation (assembly mapping)
1267 files (the ones with .compiled extension in the ASP.NET temporary
1268 directory). This one implements a loader/saver class.
1270 * AppResourcesCompiler.cs: support for assembly name mapping.
1272 * AppCodeCompiler.cs: support for assembly name mapping.
1274 2007-02-08 Marek Habersack <grendello@gmail.com>
1276 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1278 * AspComponentFoundry.cs: Avoid duplicate control registration
1281 * ResourceExpressionBuilder.cs: Make sure all the global resources
1282 are looked up using the "Resources." prefix.
1284 * AppResourcesCompiler.cs: Make sure all the global resources are
1285 embedded with the "Resources." prefix.
1287 2007-02-02 Marek Habersack <grendello@gmail.com>
1289 * AspGenerator.cs: Move the cache insert code to a separate method, for
1290 use from other places.
1292 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1293 defer their compilation to the moment when they are actually requested.
1295 2007-01-22 Marek Habersack <grendello@gmail.com>
1297 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1299 2007-01-20 Miguel de Icaza <miguel@novell.com>
1301 * ClientBuildManager.cs: Remove unused variable (this could be a
1302 real problem, we never use the appPhysicalTargetDir)
1304 * AssemblyBuilder.cs: Remove unused field.
1306 * AppResourceFilesCollection.cs: Remove unused field.
1308 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1311 * AppResourcesCompiler.cs: Remove unused variable.
1313 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1316 * PageCompiler.cs: Put InternalCreatePageProperty inside the
1317 NET_2_0 block to eliminate warnings.
1319 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
1321 * BaseCompiler.cs: Fixed build on 1.0 profile.
1323 2007-01-20 Marek Habersack <grendello@gmail.com>
1325 * BaseCompiler.cs: If the control base type is in the root
1326 namespace, make sure global:: is prepended to it.
1328 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1329 mark it as such in the generated code as well.
1331 * AppCodeCompiler.cs: Include debug information if configured in
1332 web.config. Fixes bug #80096.
1334 2007-01-17 Marek Habersack <grendello@gmail.com>
1336 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1337 App_GlobalResources) when compiling App_Code sources.
1339 * CachingCompiler.cs: Reference toplevel assemblies when compiling
1342 * AppResourcesCompiler.cs: Close the streams properly.
1344 * AspGenerator.cs: Don't ignore thead/tbody anymore.
1346 2007-01-15 Marek Habersack <grendello@gmail.com>
1348 * WsdlBuildProvider.cs: New build provider for WSDL files.
1349 Compile only when System.Web.Services are present.
1351 * TemplateControlCompiler.cs: Forgotten in the previous commit -
1352 don't pass the current culture to GetLocalResourceObject, let the
1353 method figure it out on its own.
1355 2007-01-05 Marek Habersack <grendello@gmail.com>
1357 * AppResourceFilesCollection.cs: new class to keep and manage
1358 collection of resource files for the App_{Global,Local}Resources
1361 * TemplateControlCompiler.cs: rely on
1362 HttpContext.GetLocalResourceObject to select the correct culture.
1364 * AppResourceFileInfo.cs: new class for keeping resource files
1367 * AppResourcesCompiler.cs: new implementation.
1369 2006-12-20 Marek Habersack <grendello@gmail.com>
1371 * AssemblyBuilder.cs: add an internal version of the
1372 AddCodeCompileUnit method.
1374 * AppCodeCompiler.cs: implement support for ProfileCommon
1375 generation from properties named in the <profile> element in
1378 * PageCompiler.cs: create the Profile property in 2.0 code.
1380 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
1382 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
1384 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
1386 * ThemeDirectoryCompiler.cs: refactoring.
1388 2006-11-28 Marek Habersack <grendello@gmail.com>
1390 * BuildManager.cs: Add an internal property to signal whether or
1391 not we have any resources from App_{Global,Local}Resources
1393 * AspGenerator.cs: Register controls from
1394 system.web/pages/controls collection before parsing.
1396 * AppResourcesCompiler.cs: Let the build process know if we have
1397 compiled any resources from App_{Global,Local}Resources
1399 2006-11-27 Marek Habersack <grendello@gmail.com>
1401 * CachingCompiler.cs: Automatically reference App_Code
1404 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
1407 2006-11-25 Marek Habersack <grendello@gmail.com>
1409 * AppResourcesCompiler.cs: small optimizations.
1411 * AppResourceFilesCompiler.cs: small optimizations.
1413 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1415 * WebServiceCompiler.cs: add the type to the cache after getting it
1416 from the compiled assembly.
1418 2006-11-20 Marek Habersack <grendello@gmail.com>
1420 * AppCodeCompiler.cs: Reference assemblies listed in
1421 system.web/compilation/assemblies.
1422 Don't create empty assemblies.
1424 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
1426 * TemplateControlCompiler.cs: fixed:
1427 When <%# Bind(...) %>-expression is used more then once for same control
1428 The variable associated with this control is declared only once.
1430 2006-11-18 Marek Habersack <grendello@gmail.com>
1432 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
1433 files with names like File.resources or File.resx are found in the
1434 resource directories.
1436 2006-11-16 Marek Habersack <grendello@gmail.com>
1438 * ForceCopyBuildProvider.cs: Added the build provider for
1441 * MasterPageBuildProvider.cs: Added the build provider for Master
1444 * IgnoreFileBuildProvider.cs: Make the class sealed.
1446 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
1447 correctly uses the BuildProviderCollection to retrieve the
1448 appropriate builder and maps the physical input file path into
1449 application relative path when setting the virtual path of the
1452 2006-11-13 Marek Habersack <grendello@gmail.com>
1454 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
1455 constructor with just the CodeDomProvider argument. CreateCodeFile
1456 now uses the code provider's file extension. Added internal method
1457 to add pre-generated source code files. Added a BuildAssembly
1458 overload that takes no virtual path as the
1459 parameter. BuildAssembly now uses an array of source files instead
1460 of compile units and also handles embedded resources and
1461 referenced assemblies. BuildAssembly deletes the temporary files
1462 if MONO_ASPNET_NODELET isn't set in the environment.
1464 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
1465 creation. Use the build providers collection to build unknown
1466 files in App_Code. Use AssemblyBuilder to compile the assembly.
1468 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
1469 temporary file creation.
1471 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
1474 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
1477 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
1480 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
1483 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
1486 2006-11-08 Marek Habersack <grendello@gmail.com>
1488 * BuildProvider.cs: Implemented the GetCustomString
1489 method. Removed the necessity to retrieve the CompilationSection
1490 twice when GetDefaultCompilerType is called.
1492 * AppResourcesCompiler.cs: Added resource compiler results
1495 * AppCodeCompiler.cs: The App_Code compiler classes
1497 * BuildManager.cs: Implement the CodeAssemblies property.
1498 Added an internal TopLevelTypes property to be used in the custom
1499 GetType methods. Implemented the GetCompiledCustomString method.
1500 Implemented the GetType method overloads. Implemented the
1501 GetVirtualPathDependencies method.
1503 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
1505 2006-10-18 Marek Habersack <grendello@gmail.com>
1507 * TemplateControlCompiler.cs: add support for resource
1508 expressions in tag attributes.
1510 * ResourceExpressionBuilder.cs: add support for resource
1511 expressions in tag attributes.
1513 * BaseCompiler.cs: add global/local resource assemblies to
1514 compilation references, if present.
1516 * AppResourcesCompiler.cs: global/local resources compiler.
1518 * AppResourceFilesCompiler.cs: compiler of resource files.
1520 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
1522 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
1523 At run time, the Bind method calls the Eval method, if there is DataItem
1525 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
1526 method don't raise exception and works properly to extract data from
1527 bounded controls on postback.
1529 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1531 * AspGenerator.cs: if we are tracking non-server tags for
1532 well-formedness, handle tags that do not need to be closed (br, img,...)
1535 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1537 * PageCompiler.cs: support the EnableEventValidation attribute.
1539 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1541 * AspGenerator.cs: after parsing an include file, don't error out if we
1542 still have opened tags unless this was the last file to parse. Fixes
1545 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
1547 * ParseException.cs: Ensure the source file stream is closed.
1549 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1551 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
1552 * ConnectionStringsExpressionBuilder.cs: Use name reference
1554 * ResourceExpressionBuilder.cs: Use assembly name constants.
1556 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1558 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
1560 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1562 * ClientBuildManager.cs: handle domain shutdown and unload.
1563 Implemented some properties. Commented.
1565 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
1567 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
1569 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1571 * added ThemeDirectoryCompiler.jvm.cs
1573 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1575 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
1576 the property Items does not exist. Patch by Marek Habersack that fixes
1579 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1581 * TemplateControlCompiler.cs: support assigning nullable types.
1582 Patch by Marek Habersack that fixes bug #78970.
1584 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1586 * TemplateControlCompiler.cs: make password work again.
1588 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
1590 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1591 MS.NET handles nested quotes differently for server controls and
1592 for "normal" controls. Add a property "AlternatingQuotes" to the
1593 tokenizer and let the parser decide whether it is well-formed or not.
1595 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
1597 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
1598 UrlPropertyAttribute.
1600 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
1602 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
1603 generating code for assignment statement and DataBind event.
1605 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
1607 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
1608 Don't allow an attribute value to contain the same quote characters
1609 as the ones used for delimiting the value itself. Add a token
1610 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
1612 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
1614 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
1616 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
1618 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
1620 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
1622 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
1623 array of style sheets from the parser
1624 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
1625 put them in LinkedStyleSheets of PageThemeParser
1627 2006-04-20 Chris Toshok <toshok@ximian.com>
1629 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
1630 names in the case where you use "NS.ClassName" in the Inherits
1631 attribute. Fixes bug #78135.
1633 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1635 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
1636 already acquired the lock even when we might have not created the 'key'
1637 to the compilation ticket.
1639 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
1641 * ThemeDirectoryCompiler.cs: add to the directory parser all the
1642 assemblies found by PageThemeFileParsers
1644 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
1646 * TemplateControlCompiler.cs: Properly read all content of
1649 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1651 * TemplateControlCompiler.cs : fix for partial parsers
1653 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1655 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
1658 2006-04-08 Miguel de Icaza <miguel@novell.com>
1660 * TemplateControlCompiler.cs: An attempt to fix the regression
1661 introduced in r58505 (a bug fix for 77762). This was reported in
1662 the mailing list with a batch of new 2.0 failures.
1664 We really need a test suite in NUnit to check on ASP.NET aspx
1667 2006-03-27 Robert Jordan <robertj@gmx.net>
1669 * CachingCompiler.cs: change the compilation locking scheme
1670 from "one mcs per process" to "one mcs per file".
1672 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1674 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
1675 StringPropertyBuilder.
1677 2006-03-24 Chris Toshok <toshok@ximian.com>
1679 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
1680 if system.web/compilation doesn't list a compiler for our
1683 2006-03-13 Chris Toshok <toshok@ximian.com>
1685 * TemplateControlCompiler.cs (InitMethod): when generating the
1686 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
1687 argument to it. Only do that if the class we're compiling is
1688 actually a subclass of Page. If it's not, pass this.Page.
1690 2006-03-07 Chris Toshok <toshok@ximian.com>
1692 * AspGenerator.cs: refactor the parsing code so that we can
1693 initiate parsing from outside this class.
1695 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
1696 method, add our StyleSheetTheme assignment here.
1697 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
1700 * TemplateControlCompiler.cs (EnsureID): make protected.
1701 (CreateAssignStatementsFromAttributes): same
1702 (AddChildCall): same.
1703 (CreateControlTree): same.
1704 (CreateFrameworkInitializeMethod): change
1705 "AddStatementsToFrameworkInitialize" to
1706 "AppendStatementsToFrameworkInitialize", and add call to
1707 "PrependStatementsToFrameworkInitialize" before the generation of
1708 "base.FrameworkInitialize()."
1710 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
1712 2006-03-07 Chris Toshok <toshok@ximian.com>
1714 * ThemeDirectoryCompiler.cs: new file.
1716 * PageThemeCompiler.cs: new file.
1718 2006-03-07 Chris Toshok <toshok@ximian.com>
1720 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
1721 (Init): move the CreateMethods call here.
1723 2006-03-02 Chris Toshok <toshok@ximian.com>
1725 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
1726 SkinID just after the creation of our object, and right after that
1727 call "_ctrl.ApplyStyleSheetSkin (page)".
1728 (CreateAssignStatementsFromAttributes): split out the majority of
1729 this code to CreateAssignStatementFromAttribute, and change this
1730 method to simply a loop over the attribute keys. In the 2.0 case,
1731 skip the SkinID property, since that's handled explicitly in
1734 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
1735 for Theme and StyleSheetTheme.
1737 2006-02-23 Chris Toshok <toshok@ximian.com>
1739 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
1740 change from ContentControlBuilderInternal to
1741 ContentBuilderInternal.
1742 (AddCodeRender): same.
1744 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1746 * AssemblyBuilder.cs:
1747 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
1748 GetGeneratedType() on the BuildProvider instead of loading the assembly
1749 and trying a wild guess at the type name.
1751 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1753 * GlobalAsaxCompiler.cs:
1755 * TemplateControlCompiler.cs: CreateMethods is now internal.
1757 * WebServiceBuildProvider.cs:
1758 * PageBuildProvider.cs:
1759 * UserControlBuildProvider.cs:
1760 * WebHandlerBuildProvider.cs: new build providers.
1762 * BuildProvider.cs: add assemblies.
1764 * BaseCompiler.cs: expose the provider and the compile unit through
1767 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1769 * CompilerType.cs: implemented.
1771 * AssemblyBuilder.cs: implemented most of it.
1773 * WebServiceCompiler.cs:
1774 * CachingCompiler.cs: update 2.0 compiler instance creation code.
1776 * ClientBuildManager.cs: implemented some of its methods. Not yet
1779 * BuildManager.cs: the more interesting methods are implemented now.
1781 * BaseCompiler.cs: delete the temporary files in case of error.
1783 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
1785 2006-02-07 Chris Toshok <toshok@ximian.com>
1787 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
1788 calls to AddParsedSubObject to a special statement collection --
1789 builder.flushOutputStatements -- not to builder.method.Statements.
1790 (InitMethod): initially, set flushOutputStatements to
1791 method.Statements. If we're dealing with a ContentPlaceHolder,
1792 set flushOutputStatements to be the else block of a conditional we
1793 create. This causes the compiled control to fall back to the
1794 ContentPlaceHolder's child controls in case there's no
1795 corresponding Content template.
1796 (AddChildCall): use methodStatements instead of method.Statements.
1797 (CreateControlTree): same.
1799 * PageCompiler.cs (CreatePropertyAssign): factor out the
1800 string,string implementation and add one that also takes a
1801 CodeExpression; make the string,string implementation call the
1802 three arg one with thisRef.
1803 (AddStatementsToInitMethod): make use of the 3-arg form of
1804 CreatePropertyAssign to reduce code. Also, add support for
1805 setting the page's Title from the parser's Title.
1807 2006-02-07 Chris Toshok <toshok@ximian.com>
1809 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
1810 assign __ctrl.MasterPageFile to our master page, if we have one.
1812 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
1813 assignment from here.
1814 (AddStatementsToInitMethod): and move it here.
1816 * TemplateControlCompiler.cs (InitMethod): in the case where
1817 builder is a RootBuilder (we're building the __BuildControlTree
1818 method), call a virtual method so that subclasses can add their
1819 own statements to the method (used by both Page and MasterPage);
1820 Also, in the RootBuilder case, the argument should be the
1821 parser.ClassName type (the class we're building); lastly, expand
1822 the ContentPlaceHolder logic to include all the
1823 ContentTemplates/InstantiateIn magic.
1824 (AddStatementsToInitMethod): empty virtual method.
1825 (AddContentTemplateInvocation): ContentControlBuilder ->
1826 ContentControlBuilderInternal.
1827 (CreateControlTree): same.
1828 (CallBaseFrameworkInitialize): new function, create call to
1829 base.FrameworkInitialize.
1830 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
1832 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1834 * IgnoreFileBuildProvider.cs: it's not public.
1835 * BuildProvider.cs: mostly implemented.
1837 2006-02-01 Chris Toshok <toshok@ximian.com>
1839 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
1840 GetSection instead of GetWebApplicationSection.
1842 * CachingCompiler.cs: same.
1844 * AspGenerator.cs: same.
1846 * BaseCompiler.cs: same.
1848 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1850 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
1852 2006-01-22 Chris Toshok <toshok@ximian.com>
1854 * IgnoreFileBuildProvider.cs: build provider which does nothing.
1856 2006-01-22 Chris Toshok <toshok@ximian.com>
1858 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
1859 Hashtable ctor to silence a couple of warning.
1860 (CompoundFoundry.ctor): same
1862 * Directive.cs (InitHash): use a 2.0 friendly form of the
1863 Hashtable ctor to silence a couple of warning.
1865 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
1866 Hashtable ctor to silence a warning.
1867 (GetDictionary): same.
1869 2006-01-22 Chris Toshok <toshok@ximian.com>
1871 * AppSettingsExpressionBuilder.cs: implement this, patterning it
1872 after an example on msdn. Also, enable the ExpressionEditor
1873 attribute, but use the string rather than the Type overload so we
1874 won't have yet another circular dep.
1876 * ConnectionStringsExpressionBuilder.cs: partial implementation.
1877 Same deal with the ExpressionEditor attribute.
1879 * ResourceExpressionBuilder.cs: same deal with the
1880 ExpressionEditor attribute.
1882 2006-01-20 Chris Toshok <toshok@ximian.com>
1884 * ResourceExpressionBuilder.cs (ParseExpression): implement.
1886 * ResourceExpressionFields.cs: implement.
1888 2006-01-20 Chris Toshok <toshok@ximian.com>
1890 * ClientBuildManagerParameter.cs: implement.
1892 * ClientBuildManagerCallback.cs: this class contains an empty
1893 default implementation.
1895 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1897 * AspGenerator.cs: add support for 'src' in <script runat="server">.
1900 2006-01-04 Chris Toshok <toshok@ximian.com>
1902 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
1905 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
1907 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1909 * AspGenerator.cs: fix yesterday's fix.
1911 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1913 * AspGenerator.cs: only do special processing for <script> if it has
1914 the runat="server" attribute. Fixes bug #76918.
1916 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1918 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
1921 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1923 * TemplateControlCompiler.cs: handle data bound attributes for html
1924 controls. Fixes bug #76785.
1926 2005-11-28 Chris Toshok <toshok@ximian.com>
1928 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
1930 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
1932 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1934 * WebServiceCompiler.cs: fixed caching for web handlers.
1936 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1938 * AspParser.cs: don't change case for verbatim IDs.
1941 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1943 * AspParser.cs: when processing verbatim input, throw if we reach EOF
1944 before the expected end of the data.
1946 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1948 * CachingCompiler.cs:
1949 * WebServiceCompiler.cs: when caching a type loaded from an assembly
1950 that we didn't compile, make it depend on the file itself, not on a
1951 non-existing cache key. This problem affected performance of web
1952 services and .ashx, making unnecessary extra calls to LoadFrom every
1953 time the cache was cleared.
1955 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1957 * BaseCompiler.cs: set the domain's DynamicBase property instead of
1958 guessing it in BaseCompiler.
1960 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1962 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
1963 75146 for pages/controls.
1965 2005-08-09 Miguel de Icaza <miguel@novell.com>
1967 * WebServiceCompiler.cs: Use the new DynamicDir method.
1969 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
1970 since this value is null most of the time, compute the real value.
1972 Added Bonus: if the directory has some kind of permission problem,
1973 try a different directory name.
1975 2005-07-13 Miguel de Icaza <miguel@novell.com>
1977 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
1978 BaseParser.Context for the context.
1980 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1984 * TemplateControlCompiler.cs: use invariant culture versions of starts/
1987 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1989 * TemplateControlCompiler.cs: comparison between member name and the
1990 first part of the id provided by the user should also be
1991 case-insensitive. Fixes bug #75379.
1993 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1995 * CachingCompiler.cs: use cache.InsertPrivate.
1996 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
1999 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2001 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2002 as all the others, when compiling an assembly from a Src file. Fixes
2005 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2007 * TemplateControlCompiler.cs: if the property is not found, don't forget
2008 about trying the field.
2010 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
2012 * Directive.cs: Register the MasterType directive.
2013 * PageCompiler.cs: If a MasterType is specified, add a type specific
2014 Master property. All this fixes bug #75192.
2016 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2018 * TemplateControlCompiler.cs: when mapping an attribute name to a field
2019 or property name, there's no need to try with every property and field,
2020 but just the one found when searching by name (no case). There was one
2021 call to ProcessPropertiesAndFields per property or field until found,
2022 now only one if the property/field is found, none otherwise.
2024 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2027 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2030 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2032 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
2033 the assembly file there and be able to load it. Thanks to Rogerio and
2036 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2038 * AspParser.cs: InvariantCulture love.
2040 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2042 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2043 as the one in Master is protected. Fixes bug #75157.
2045 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2047 * AspComponentFoundry.cs: tagnames have precedence over types in
2048 assemblies when they use the same prefix. Fixes bug #71855.
2050 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
2052 * WebServiceCompiler.cs: Create the temp directory before
2053 creating the web service source code file.
2055 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2057 * AspGenerator.cs: when checking languages, try to match other aliases
2058 too (ie, 'cs' == 'c#').
2060 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2062 * BaseCompiler.cs: check that DynamicBase directory exists before
2063 creating the TempFileCollection.
2065 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2067 * AspGenerator.cs: use a stack for non-server tags even before getting
2068 to a form. Fixes bug #70274.
2070 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2072 * AspParser.cs: don't error out on ill formed tags if it's not a server
2073 tag (ie, allow something like '<table align="left cellpadding="0">' to
2074 work, as MS does. Fixes bug #67909.
2076 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
2077 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
2078 @Page/@Control directives to CodeDOM (VB.NET support)
2080 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
2082 * AspParser.cs: Fixed parsing of data binding tags in server
2083 tag attributes. Allow <%...%> blocks not assigned to
2084 attributes in client tags.
2085 * TagAttributes.cs: Make sure that data binding blocks in server
2086 tags are always assigned to attributes.
2088 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
2090 * TemplateControlCompiler.cs: Implemented support for two-way
2093 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
2095 * TemplateControlCompiler.cs: Use the new BindingContainerType
2096 property to find the type of the binding container.
2098 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
2100 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
2101 for primitive types. Parse an empty color string as Color.Empty.
2102 Get the converter for a property using its PropertyDescriptor.
2104 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
2106 * TemplateControlCompiler.cs: Don't autogenerate IDs for
2107 controls inside Content template.
2109 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2111 * TemplateControlCompiler.cs: make typedesc.aspx work again.
2113 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2115 * ExpressionBuilderContext.cs:
2116 * ExpressionBuilder.cs: implemented.
2118 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2120 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2122 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
2124 * TemplateControlCompiler.cs: When generating a property value,
2125 check for TypeConverterAttribute in the PropertyInfo, not only in the
2127 Implemented code generation using InstanceDescriptor, when the type
2128 converter supports conversion to that type.
2130 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
2132 * Directive.cs: Added MASTER directive.
2133 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2134 * PageCompiler.cs: Set the master file name when generating the page.
2135 * TemplateControlCompiler.cs: When generating the method for a
2136 content holder, register the content holder in the base MasterPage.
2137 Added method for registering a Content control for a MasterPage.
2138 Generate code for Content controls.
2140 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
2142 * TemplateControlCompiler.cs: Get the container type from the
2143 template (if it was defined using TemplateContainerAttribute.
2145 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2147 * AspGenerator.cs: correctly process script tags that self-closing.
2150 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2152 * CachingCompiler.cs: when compiling a single .cs file, add the file
2153 itself to dependencies. Fixes bug #68788.
2155 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2157 * ControlBuilder.cs: don't close server tags when we get to a closing
2158 tag that is not applied to a server control. Fixes bug #60323.
2160 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2162 * WebServiceCompiler.cs: fix buglet in my last commit.
2164 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2167 * CachingCompiler.cs:
2168 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2169 for ashx/asmx. Otherwise we need to open the file and check for the
2170 class name in there. Thanks to Ben for pointing this out.
2172 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2175 * AspTokenizer.cs: prevent quotes from being swallowed when we're
2176 inside a server tag and they are the next non-whitespace character.
2179 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2181 * CachingCompiler.cs: don't try to watch for changes in system
2182 assemblies. Fixes bug #64871.
2184 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2186 * AspGenerator.cs: handle builders that need to process inner text
2189 * Location.cs: added setters for the properties.
2191 2004-08-02 Duncan Mak <duncan@ximian.com>
2193 * BuildProviderResultFlags.cs:
2194 * IImplicitResourceProvider.cs:
2195 * ImplicitResourceKey.cs:
2196 * IResourceReader.cs: Added.
2198 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2200 * AspGenerator.cs: the path for file was treated as virtual, but it's
2201 physical. Fixes bug #61524.
2203 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205 * AspParser.cs: fixed case-sensitivity issues with #include and its
2206 attributes. Closes #61429.
2208 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2211 * WebServiceCompiler.cs: really create the dlls under DynamicBase
2213 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2215 * TemplateControlCompiler.cs: for system colors, use SystemColors class
2216 instead of Color. Fixes bug #60249.
2218 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2220 * BaseCompiler.cs: try getting the Type from the cache before doing the
2221 real work. Remove temporary files right after successful compilation.
2223 * CachingCompiler.cs: added GetTypeFromCache.
2225 * UserControlCompiler.cs: nothing interesting.
2227 * WebServiceCompiler.cs: try getting the Type from the cache before
2228 doing anything else. Remove temp files on sucessful compilation.
2230 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2233 * CachingCompiler.cs: use a different prefix when caching compiler
2236 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2238 * BaseCompiler.cs: dynamicBase is now protected. Check
2239 MONO_ASPNET_NODELETE here.
2241 * TemplateControlCompiler.cs: if the type is not known but has a
2242 TypeConverter, invoke ConvertFromString in the generated code.
2244 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2245 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2247 * CachingCompiler.cs: updated compilation of web services and simple
2250 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2252 * CSCompiler.cs: removed.
2254 * CachingCompiler.cs: language independent compilation for single files.
2256 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2259 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2260 * CachingCompiler.cs: use HttpRuntime.Cache.
2262 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2264 * PageCompiler.cs: fixed Trace and add support for Buffer.
2266 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2268 * PageCompiler.cs: override CreateConstructor to add assignment for
2271 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2273 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2274 of CodeObjectCreateExpression for the render method delegate. Thanks
2277 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2279 * BaseCompiler.cs: use DynamicBase for the output assemblies.
2281 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2283 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2285 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2287 * AspParser.cs: indent a few lines.
2288 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2289 attribute value. This way we can simulate reading 2 characters ahead
2290 (one in ungetc and the other in Peek) and work with values like
2291 text/javascript. Fixes bug #57302.
2293 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2295 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2297 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
2299 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2301 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2303 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2305 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2307 * AspGenerator.cs: error out when <object> server tag is not closed.
2308 Ignore any content inside it.
2310 2004-02-10 Jackson Harper <jackson@ximian.com>
2312 * AspTokenizer.cs: Collect discarded characters that might be used
2313 in client side scripts. Patch by Liyu Liu.
2314 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2316 2004-02-10 Jackson Harper <jackson@ximian.com>
2318 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2321 2004-01-30 Jackson Harper <jackson@ximian.com>
2323 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2324 the build method takes strings not ints.
2326 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2328 * AspGenerator.cs: handle more possible errors in global.asax file.
2330 * BaseCompiler.cs: added utility methods for creating <object> related
2331 properties and fields.
2333 * GlobalAsaxCompiler.cs: keep around applications and session scope
2334 objects builders. Also a list of imports and assemblies added in
2337 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2339 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2341 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2342 pages more than once. Thanks to Eric Lindvall for pointing this out.
2344 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2346 * TemplateControlCompiler.cs: allow handling subproperties for other
2347 types than Style and Font. Fixes bug #53217.
2349 2004-01-16 Jackson Harper <jackson@ximian.com>
2351 * TagAttribute.cs: attributes can be stored as encoded html so we
2354 2004-01-14 Jackson Harper <jackson@ximian.com>
2356 * TemplateControlCompiler.cs: Is a user control is cached and
2357 shared use the controls type hashcode for the GUID so it will be
2358 the same across instances.
2360 2004-01-13 Jackson Harper <jackson@ximian.com>
2362 * TemplateControlCompiler.cs: If an item has the partial caching
2363 attribute build a PartialCachingControl in the parents __Build method.
2364 * BaseCompiler.cs: Add a method for adding class attributes to the
2366 * UserControlCompiler.cs: If caching is enabled on a user control
2367 add the PartialCachingAttribute to it.
2369 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2371 * PageCompiler.cs: invoke Request.ValidateInput if required.
2373 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2375 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
2376 #52521. Patch by liyul@hotmail.com.
2378 2003-12-25 Jackson Harper <jackson@ximian.com>
2380 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
2383 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385 * PageCompiler.cs: assign the ErrorPage property if provided.
2387 2003-12-15 Jackson Harper <jackson@ximian.com>
2389 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
2390 method if they are set.
2392 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2394 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
2395 fail when runat="server" is applied to <tbody> with a parse error
2396 instead of waiting for a compilation error. Fixes bug #52157.
2398 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2400 * AspGenerator.cs: basic checking of ID validity. Throw a
2401 ParseException when mixing languages.
2403 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2405 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
2406 FrameworInitialize() if provided in @Page.
2410 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2412 * TemplateControlCompiler.cs: support for expressions of
2413 System.Drawing.Size type. Allow getting Color from comma separated
2414 numbers, which is not allowed by ColorConverter.
2416 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
2418 2003-11-13 Jackson Harper <jackson@ximian.com>
2420 * PageCompiler.cs: Call InitOutputCache when the OutputCache
2423 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2425 * AspGenerator.cs: use fileEncoding from configuration files.
2427 * PageCompiler.cs: add assign statements for ContentType,
2428 ResponseEncoding and CodePage if supplied.
2430 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2432 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
2433 a return statement for user controls with 'void' return type.
2435 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2437 * AspParser.cs: fixed bug #49627.
2439 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2441 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
2443 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2445 * Directive.cs: new attribute for @Page directive in 1.1.
2447 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2450 * TagAttributes.cs: allow duplicated runat=server attributes and display
2451 error page when duplicated attributes and runat is specified.
2453 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2455 * AspTokenizer.cs: moved token numbers above unicode.
2457 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2459 * AspGenerator.cs: don't process code render tags inside scripts. Check
2460 the language of the script and treat javascript as verbatim input.
2463 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2465 * TemplateControlCompiler.cs: fixed bug #48212.
2467 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2469 * WebServiceCompiler.cs: remove the temporary files here too.
2471 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2473 * AspGenerator.cs: fixed bug #46429.
2475 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2477 * Directive.cs: support @WebHandler.
2479 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2481 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
2483 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2485 * BaseCompiler.cs: first look for cached items, then generate the tree.
2486 This should speed things up.
2488 * CachingCompiler.cs: when compiling web services, use the full path of
2489 the .asmx file as key when caching.
2491 * WebServiceCompiler.cs: first look for cached items, then generate
2494 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2496 * AspParser.cs: more useful error information,
2499 * CachingCompiler.cs: honor the debug="true" option.
2501 * TemplateControlCompiler.cs: small fixes for templates.
2503 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2505 * BaseCompiler.cs: made Compiler property virtual.
2507 * CachingCompiler.cs: added support for compiling web services.
2509 * WebServiceCompiler.cs: implemented.
2511 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2513 * CachingCompiler.cs: fixed bug #43477.
2515 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2518 * AspTokenizer.cs: fixed bugs #43206 and #43371.
2520 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2522 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
2523 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
2526 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2528 * CompilationException.cs: don't add duplicated lines in the case that
2529 mcs reports several errors for the same one.
2531 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2533 * AspGenerator.cs: fully support including files, ie., treat them just
2534 as C treats #includes.
2536 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2540 * TagType.cs: Added support for server side includes.
2542 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2544 * CSCompiler.cs: actually add the list of referenced assemblies to the
2545 compiler options. Throw a CompilationException if there's an error.
2547 * CachingCompiler.cs: added a method to compile directly from a source
2550 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2552 * AspGenerator.cs: copy the location before setting the value for the
2555 * BaseCompiler.cs: changed parameters for CompilationException.
2557 * CompilationException.cs: it takes now line numbers and error
2558 descriptions from the CompilerErrorCollection.
2560 * Location.cs: used when a copy of an ILocation is needed.
2562 * ParseException.cs: implemented new methods to provide line numbers
2565 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
2567 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2569 * AspGenerator.cs: also support data bind syntax inside tags not
2570 processed as controls. Added debugging method.
2572 * TemplateControlCompiler.cs: reset the number of data binding handlers
2573 in the proper place. Small fix when getting the container type.
2575 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2577 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
2580 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2582 * AspGenerator.cs: handle code render syntax in tag attributes.
2584 * AspParser.cs: the constructor now takes a TextReader.
2586 * TemplateControlCompiler.cs: removed comment.
2588 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2590 * TemplateControlCompiler.cs: added support for data bound properties.
2592 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2594 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
2595 instead of their names.
2597 * AspElements.cs: removed. No longer needed.
2599 * AspGenerator.cs: this file is now in charge of interfacing between
2600 the parser and the compiler. It manages the creation of the
2601 ControlBuilder tree and the compilation of the CodeDOM tree.
2603 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
2604 of different Types, tags are just and id and a set of attributes.
2605 Implement ILocation interface.
2607 * AspTokenizer.cs: added a few methods to help the parser implementing
2610 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
2611 common to appliaction, page and user control, including the actual
2612 compilation and error handling.
2614 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
2616 * CachingCompiler.cs: simplified to use the new interfaces.
2618 * CompilationException.cs: it's now using CompilationResult to report
2621 * CompilationResult.cs: Removed file.
2623 * Directive.cs: to check for the validity of a directive.
2625 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
2628 * ILocation.cs: interface used to now the exact place where a parse
2631 * PageCompiler.cs: generates a couple of methods that are only used in
2634 * ParseException.cs: use the ILocation interface.
2636 * TagAttributes.cs: handles the attributes of the tags parsed.
2638 * TagType.cs: an enum for the different kinds of tags.
2640 * TemplateControlCompiler.cs: this is the one that does most of the
2641 conversion from teh ControlBuilder tree into a CodeDOM tree.
2643 * UserControlCompiler.cs: simplified as most of the work is done in
2646 * WebServiceCompiler.cs: dummy.
2648 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2650 * AspComponentFoundry.cs: added GetComponentType method.
2652 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2654 * AspTokenizer.cs: allow quotes inside server tags that are part of
2657 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
2660 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2662 * AspGenerator.cs: generate correct appbase path. It was working with
2663 mcs but not with csc.
2665 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
2667 * CachingCompiler.cs: quote source file.
2669 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2671 * AspGenerator.cs: now the Inherits attribute works as expected for
2674 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2676 * CompilationException.cs:
2677 * ParseException.cs: display the correct line number in error messages.
2679 * AspElements.cs: added TargetSchema attribute for control. It's
2682 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2684 * BaseCompiler.cs: fixed the hack to work under windows.
2685 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
2687 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2689 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
2691 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
2693 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
2694 app's private bin path
2696 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2700 * CachingCompiler.cs:
2701 * CompilationResult.cs:
2702 * GlobalAsaxCompiler.cs:
2704 * UserControlCompiler.cs: recompile the page if dependencies change.
2706 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2708 * AspGenerator.cs: corrected typo and wrong fix.
2710 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2712 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
2713 when used explicitly.
2715 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2717 * AspElements.cs: get the property Type for controls that use
2718 ParseChildren with a property name.
2720 * AspGenerator.cs: generate correct signature for the method that
2721 adds controls to the default property in ParseChildren.
2723 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2725 * AspGenerator.cs: rethrow exceptions that may come from parsing or
2726 compilation if a user control.
2728 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2730 * AspGenerator.cs: throw ParseException on parse
2733 * AspParser.cs: added Line and Column props.
2735 * CompilationException.cs: derives now from HtmlizedException.
2737 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
2739 * GlobalAsaxCompiler.cs:
2741 * UserControlCompiler.cs: pass the file name in the CompilationResult.
2743 * ParseException.cs: new exception.
2746 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2748 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
2751 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2753 * AspParser.cs: the parser fires events when it parses an element.
2755 * GlobalAsaxCompiler.cs:
2757 * UserControlCompiler.cs:
2758 * AspElements.cs: modified to use the new parser interface.
2760 * AspGenerator.cs: modified to use the new parser. Merge multiple text
2761 strings into one single LiteralControl.
2763 * AspTokenizer.cs: added Line and Column properties.
2765 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2767 * AspParser.cs: fixed bug #36929.
2769 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
2773 * CachingCompiler.cs: changes to work around spaces and
2774 directory-separators in the local filesystem.
2776 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2778 * AspGenerator.cs: make the generated file compile with csc after last
2781 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2783 * AspGenerator.cs: removed unused variable. Added support for
2784 properties/fields of type string [].
2786 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2788 * AspGenerator.cs: modified loading of the parent type now that
2789 Type.GetType is fixed.
2791 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2793 * AspGenerator.cs: cast to Control if the container does not implement
2796 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2798 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
2800 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2802 * AspElements.cs: attributes without value lacked a space afterwards.
2804 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2806 * AspGenerator.cs: functions for columns don't return anything. Fixed
2809 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2811 * AspGenerator.cs: add data bound controls to code render function.
2813 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2815 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
2816 controls. You can register 1 assembly plus any number of user controls
2817 under the same prefix.
2819 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
2820 Hack to allow @Register access to assemblies in other places than bin
2823 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2825 * AspElements.cs: added 'codebehind' attribute for page, control and
2826 application. It's ignored by MS, but allowed. Fixed typo.
2828 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2830 * AspGenerator.cs: fixed EnableSesssionState handling.
2832 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2834 * AspGenerator.cs: don't generate instance fields for pages/controls
2835 when the base class specified in the Inherits attribute already has
2836 them. Closes bug #36262.
2838 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2840 * AspGenerator.cs: generate code like 'control.XXX = value' also for
2841 public fields (properties were being handled in that way too).
2843 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2845 * AspGenerator.cs: now it uses the current HttpContext when creating
2846 user controls. TemplateSourceDirectory is no longer a dummy value.
2848 * GlobalAsaxCompiler.cs:
2850 * UserControlCompiler.cs: set the context which will be used to locate
2853 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2855 * AspGenerator.cs: added support for AutoEventWireup attribute in
2858 * CompilationResult.cs:
2859 * GlobalAsaxCompiler.cs:
2861 * UserControlCompiler.cs: store the options.
2863 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2865 * AspElements.cs: new method Tag.GetElements
2866 used to parse the inner contents of a tag looking for data binding or
2869 New property HtmlControlTag.ParseChildren allows
2870 differentiation of a couple of HtmlControls that has children as
2871 properties (namely HtmlTable and HtmlTableRow).
2873 * AspGenerator.cs: fixed container semantics to
2874 match BindingContainer one. Implemented Inherits attribute for page and
2877 Support HtmlControls that has ChildrenAsProperties.
2879 Generate code for data binding functions that matches the semantic of
2882 Handle data bound and code render attribute values.
2884 Set proper value return for TemplateSourceDirectory. Should be relative
2887 * BaseCompiler.cs: moved CompilerOptions and
2888 References handling here.
2890 * CachingCompiler.cs: copy result of compilation.
2892 * CompilationException.cs: simple ToString () implementation.
2894 * CompilationResult.cs: implemented CopyFrom and ToString.
2896 * GlobalAsaxCompiler.cs:
2898 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
2899 in the base class. Get all the types in the generated assembly and
2900 look for one that derives from the correct Type.
2902 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2904 * AspElements.cs: added @Application directive.
2906 * AspGenerator.cs: make it work also with application files. We
2907 currently generate an extra private function.
2909 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2911 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
2912 exists, it will be compiled into an HttpApplication derived class
2913 (directly or through a user-provided class).
2915 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917 * AspGenerator.cs: fixed target file name and generated class name.
2918 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
2920 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2922 * AspGenerator.cs: reworked user control
2923 compilation. Provide the options as a Hashtable for use in compilation.
2924 Create the user controls in the private bin path of the domain.
2926 * BaseCompiler.cs: base class for the various compiler types.
2928 * CachingCompiler.cs: actually executes mcs and do some poor caching
2929 (it will use Cache when finished).
2931 * CompilationException.cs: this exception has enough information to
2932 generate a nice error page.
2933 * CompilationResult.cs: used in caching.
2935 * PageCompiler.cs: now derives from BaseCompiler
2937 * TemplateFactory.cs: no longer needed.
2939 * UserControlCompiler.cs: new class used when compiling user controls.
2940 * WebServiceCompiler.cs: derives from BaseCompiler.
2942 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2944 * AspElements.cs: added ServerComment class.
2945 * AspParser.cs: ignore ServerComments tags. Remove server comments when
2950 * PageCompiler.cs: check if the type is already cached before generating
2952 * TemplateFactory.cs: if csFile parameter is null, only checks if we
2953 already have the page compiled.
2955 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2957 * AspGenerator.cs: undo one-liner change.
2959 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2961 * AspGenerator.cs: removed a few hacks no longer needed.
2963 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2965 * PageCompiler.cs: tracing.
2966 * TemplateFactory.cs: cache compiled types and tracing.
2967 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
2969 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2971 * AspComponentFoundry.cs: fixed typo.
2972 * TemplateFactory.cs: use csc style options.
2973 * AspGenerator.cs: don't use FileDependencies property of base class.
2975 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2977 * System.Web.Compilation/AspElements.cs:
2978 * System.Web.Compilation/AspGenerator.cs:
2979 * System.Web.Compilation/AspParser.cs:
2980 * System.Web.Compilation/PageCompiler.cs:
2981 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
2982 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
2984 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2986 * AspElements.cs: added WebService directive.
2987 * WebServiceCompiler.cs: New file.
2989 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2991 * PageCompiler.cs: fixed compilation.
2993 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2995 * PageCompiler.cs: generate C# file using AspGenerator.
2997 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2999 * AspComponentFoundry.cs: LookupFoundry now returns bool.
3000 * AspGenerator.cs: New file.
3002 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3004 * AspComponentFoundry.cs: New file.
3005 * AspElements.cs: renamed Component to Aspcomponent.
3007 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3014 * TemplateFactory.cs: first steps to move xsp into System.Web.