1 2009-07-21 Veerapuram Varadhan <vvaradhan@novell.com>
3 * XsdBuildProvider.cs: Use System.Data.Design version of
4 TypedDataSetGenerator instead of System.Data's.
6 2009-07-21 Marek Habersack <mhabersack@novell.com>
8 * AspTokenizer.cs: in put_back, store inTag value as well.
10 * AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"
12 * BuildManager.cs: GetReferencedAssemblies unconditionally
13 includes all assemblies from bin/ for precompiled sites. Fixes bug
16 2009-07-18 Marek Habersack <mhabersack@novell.com>
18 * DefaultResourceProvider.cs: if GetResourceObject is passed a
19 null or empty classKey it just returns null.
21 * AppResourcesAssemblyBuilder.cs: satellite assemblies are now
22 built using al instead of gmcs - makes the build slightly faster.
24 2009-07-13 Marek Habersack <mhabersack@novell.com>
26 * AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
27 try/catch, so that we can wrap the possible exception in
30 2009-07-09 Marek Habersack <mhabersack@novell.com>
32 * DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
35 2009-07-08 Marek Habersack <mhabersack@novell.com>
37 * AspParser.cs: GetServerTag mustn't treat <% # ... %> as
38 data-binding directives. Fixes bug #520024
40 * AssemblyBuilder.cs: if debugging information is on, append
41 /d:DEBUG to the compiler's command line.
43 2009-06-30 Marek Habersack <mhabersack@novell.com>
45 * AspGenerator.cs: TextParsed must remove client-side comments
46 from the passed text before attempting to parse the text for
47 server side controls and expressions. Fixes bug #517656
49 2009-06-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
51 * TemplateControlCompiler.cs: use the 'Empty' field for Unit and
54 2009-06-15 Marek Habersack <mhabersack@novell.com>
56 * AspGenerator.cs: CreateRootBuilder quits when root builder
57 already exist. This can happen when recursively parsing an include
58 file. Fixes bug #512028
60 2009-06-12 Marek Habersack <mhabersack@novell.com>
62 * BuildManager.cs: avoid a NREX in FixVirtualPath
64 2009-06-11 Marek Habersack <mhabersack@novell.com>
66 * PageCompiler.cs: if generating code to assign output cache
67 parameters, use special case for generating OutputCacheLocation
68 enum reference. Fixes bug #512037
70 2009-06-04 Marek Habersack <mhabersack@novell.com>
72 * AspGenerator.cs: if plain text is parsed and it contains
73 server-side controls, parse and process them. Fixes bug #508888
75 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
77 * BuildManager.cs: allow deployment of precompiled applications under
78 any virtual path, not just the default one used when precompiling.
81 2009-06-01 Marek Habersack <mhabersack@novell.com>
83 * BuildManager.cs: when throwing a 404 exception, pass the virtual
84 path to the exception constructor.
86 * AspGenerator.cs: fix mapping of our tag types into
87 CodeConstructType. Fixes bug #508570
89 2009-05-26 Marek Habersack <mhabersack@novell.com>
91 * AspGenerator.cs: before including a file specified with the
92 <!--#include file="" --> directive, check if it's within the
93 current application's root.
95 2009-05-18 Marek Habersack <mhabersack@novell.com>
97 * BuildManager.cs: GetPrecompiledApplicationType () uses
98 VirtualPathUtility.Combine to build global.asax virtual
99 path. Patch from Robert Jordan <robertj@gmx.net>, thanks! Fixes
102 2009-05-10 Marek Habersack <mhabersack@novell.com>
104 * AspGenerator.cs: keep processing the tag if it is not a server
105 one and contains expressions and no code render blocks.
107 2009-05-05 Marek Habersack <mhabersack@novell.com>
109 * BuildManager.cs: RemoveFailedAssemblies wraps the compilation
110 exception to be rethrown in a HttpException instance.
112 * AspGenerator.cs: create a Location and pass it to the parser
113 before calling AddDirective from GetInheritedType, so that we get
114 meaningful exception messages with source, line information etc.
116 2009-05-04 Marek Habersack <mhabersack@novell.com>
118 * ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
119 which takes AspComponentFoundery as its
120 parameter. AspGenerator.RootBuilder isn't initialized until after
121 the parser is initialized.
123 * TemplateControlCompiler.cs: make sure to call
124 ProcessGeneratedCode on each instance of ControlBuilder after it's
125 fully generated. Fixes bug #500075
127 * TemplateBuildProvider.cs: moved the directive regex to
130 * BaseCompiler.cs: added two internal properties, BaseType and
131 DerivedType, which are used in calls to
132 ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
134 * AspGenerator.cs: implemented a work around for our parser
135 limitation which is unable to extract the page/control's base type
136 before parsing the actual file contents. This is necessary to
137 support ASP.NET MVC's "generic" Inherits attribute. The reason we
138 need to find out what the base type is before parsing the file is
139 that we need to look at the type's custom attributes to see if a
140 root control builder type is specified (which is what ASP.NET MVC
141 does) and, if yes, use it instead of the default type. Fixes bug
144 2009-04-30 Marek Habersack <mhabersack@novell.com>
146 * BuildManager.cs: when BuildInner catches a compilation
147 exception, wrap it in HttpException before re-throwing.
149 2009-04-28 Marek Habersack <mhabersack@novell.com>
151 * AspGenerator.cs: ProcessTag doesn't process a tag which is not
152 server-side and which has declarative expressions embedded. Fixes
155 2009-04-24 Marek Habersack <mhabersack@novell.com>
157 * AspGenerator.cs: ProcessCode should _not_ stop processing the
158 passed code string if the filter's ProcessCodeConstruct returns
159 false. Fixes bug #497775
161 2009-04-21 Marek Habersack <mhabersack@novell.com>
163 * PageCompiler.cs: implemented new way of setting output cache
164 parameters in the 2.0 profile. The generated code is now the same
165 as on .NET and uses the OutputCacheParameters class to pass
166 settings to InitOutputCache.
168 2009-04-17 Marek Habersack <mhabersack@novell.com>
170 * AspGenerator.cs: if thead/tbody are parsed as children of a
171 server-side table control, ignore them. Fixes bug #481622
173 2009-04-16 Marek Habersack <mhabersack@novell.com>
175 * TemplateControlCompiler.cs: using a regexp to check whether an
176 expression is a Bind one. Fixes bug #493639
177 AssignPropertyFromResources now checks whether the field/property
178 passed to it is decorated with the Localizable custom attribute
179 and whether the resource provider contains an entry for that
182 2009-04-15 Marek Habersack <mhabersack@novell.com>
184 * BuildManager.cs: do not add all assemblies in bin/ when serving
185 a precompiled site. Fixes bug #493873
186 When serving a precompiled site, check if the bin/ directory
187 contains certain well-known assemblies and load them if present.
189 2009-04-07 Marek Habersack <mhabersack@novell.com>
191 * TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
192 assume that the passed member is a property anymore. Fixes bug
195 2009-04-06 Marek Habersack <mhabersack@novell.com>
197 * BuildManager.cs: make sure that precompiled is not null before
198 using it in GetPrecompiledType.
200 2009-04-03 Marek Habersack <mhabersack@novell.com>
202 * AspParser.cs: local copy of checksum generated by the tokenizer
203 is made right after parsing is done.
205 * AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
206 InitParser. Avoids empty checksums in #pragma checksum.
208 2009-04-02 Marek Habersack <mhabersack@novell.com>
210 * CompilationException.cs: skip warnings in ErrorMessage and
213 * BuildManager.cs: when an error occurs while compiling the
214 requested virtual path, throw the exception, do not attempt to
217 * TemplateControlCompiler.cs: implemented missing converter for
218 the ExpandDepth property. Fixes bug #490860
220 2009-04-01 Marek Habersack <mhabersack@novell.com>
222 * AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
223 added the 2 extra chars to pragmaChecksumStaticCount constant (the
224 ones added by Gonzalo below) and removed one NewLine to account
225 for Martin's change below.
226 VBCodePragmaGenerator.ReserveSpace - one newline follows
228 VBCodePragmaGenerator.DecorateFile - one newline follows
231 2009-04-01 Martin Baulig <martin@ximian.com>
233 * AssemblyBuilder.cs: Don't emit a blank line after the #line as
234 thid'd cause all line numbers to be off by 1.
236 2009-03-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
238 * AssemblyBuilder.cs: the guid has to be quoted.
240 2009-03-31 Marek Habersack <mhabersack@novell.com>
242 * All of the below are part of the fix for bug #489687
244 * ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
247 * BuildProvider.cs: associated virtual path is stored internally
248 as an instance of VirtualPath, accessible via new
249 VirtualPathInternal property.
251 * BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
252 detect fake virtual paths.
253 GetBuildProvider now takes a VirtualPath instead of string for the
254 virtualPath parameter. The passed VirtualPath instance is passed
255 unchanged to BuildProvider.
257 * BuildManager.cs: AssertVirtualPathExists now uses
258 VirtualPath.IsFake to check for fake virtual paths.
260 * ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
261 MasterPageBuildProvider.cs, PageBuildProvider.cs,
262 ThemeBuildProvider.cs, UserControlBuildProvider.cs,
263 WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
264 CreateParser overloads now take a VirtualPath instead of a string
265 for the virtualPath parameter.
267 * ThemeBuildProvider.cs: use new parser constructors which take
268 VirtualPath instances instead of strings.
270 2009-03-30 Marek Habersack <mhabersack@novell.com>
272 * AspTokenizer.cs: UpdateChecksum - fixed off-by-one bug when
273 processing the checksum buffer.
275 * AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
276 and #pragma lines (or its vb equivalent - #ExternalSource) to
277 code-behind files named in the CodeFile/Src directives while
278 copying them to the dynamic directory for compilation. The kludge
279 works by recognizing the .cs and .vb extensions and wrapping the
280 file contents in the appropriate directives. This is done in this
281 way because the other possible way, using the
282 CodeSnippetCompileUnit, requires the entire file to be read in
283 memory and then passed to CodeDOM. We fall back to this way when
284 the file being copied is neither C# or VB.
286 2009-03-25 Marek Habersack <mhabersack@novell.com>
288 * AspTokenizer.cs: MD5 checksum calculation happens here. It's
289 done incrementally as characters are read.
291 * AspParser.cs: the MD5 checksum is no longer computed here. Moved
293 After parsing, both the tokenizer and the string reader are
296 * AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
297 prepration for future inclusion of checksum and line pragmas in
298 the file being copied.
299 Files are copied chunk by chunk, not by reading the entire
302 2009-03-23 Zoltan Varga <vargaz@gmail.com>
304 * PageCompiler.cs: Fix the build.
306 2009-03-23 Marek Habersack <mhabersack@novell.com>
308 * TemplateBuildProvider.cs: add values of the CodeFile and Src
309 page/master/control directives to the list of file dependencies.
310 Extract language also for master/page, not only for controls.
312 * PageCompiler.cs: CreateConstructors now triggers master page
313 build, if the current page is using one. Fixes bug #487857
315 2009-03-16 Marek Habersack <mhabersack@novell.com>
317 * AspGenerator.cs: when parsing nested tags (includes tags inside
318 client-side javascript script blocks) pass the closing tag up to
319 the containing parser.
320 Instead of parsing the whole plain text contents, plus the two
321 constructs we're interested in from it using regexs. This is
322 necessary as we might be passed JavaScript code and without
323 understanding its syntax we'll confuse the '<' character for the
325 TagParsed now better handles <script> tags. For both server and
326 client tags ProcessScript is called and the input text, in case of
327 client tags, is read verbatim to be processed when ProcessScript
328 is called to close the tag. At this point the verbatim text is
329 checked whether it contains server-side tags and/or expressions.
331 2009-03-12 Marek Habersack <mhabersack@novell.com>
333 * BuildManager.cs, BuildManagerDirectoryBuilder.cs,
334 BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
335 returned as an IDictionary <string, bool>. Dependencies must be
336 compared case-insensitively.
338 * TemplateBuildProvider.cs: ExtractReferenceDependencies must also
339 extract the value of the Page attribute.
341 2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
343 * AppResourcesAssemblyBuilder.cs:
344 * BuildManagerDirectoryBuilder.cs:
345 * AspComponentFoundry.cs:
346 * AssemblyBuilder.cs:
347 * CachingCompiler.cs:
349 * WsdlBuildProvider.cs:
352 * AppWebReferencesCompiler.cs:
353 * TemplateControlCompiler.cs:
355 * AppCodeCompiler.cs: settings that have to be in
356 machine.config or the root level web.config now call
357 GetWebApplicationSection.
359 2009-02-26 Marek Habersack <mhabersack@novell.com>
361 * TagAttributes.cs: modified ToString to return string formatted
362 in a more helpful way.
364 * AspParser.cs: added ToString, helpful when debugging.
366 * AspGenerator.cs: properly print leading and trailing plain text
367 when looking for embedded tags in ProcessTagsInAttributes.
369 2009-02-25 Marek Habersack <mhabersack@novell.com>
371 * AspTokenizer.cs: put_back now uses a stack and allows more than
372 one invocation when called inside a tag.
374 * AspGenerator.cs: when a nested parser is used, pay attention to
375 server tags found inside client tags and add them to the control
378 2009-02-24 Marek Habersack <mhabersack@novell.com>
380 * BuildManager.cs: Path.Combine must not be passed null first
383 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
385 * System.Web.Compilation/BuildManager.cs: updated comment.
387 2009-02-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
389 * TemplateControlCompiler.cs: lowercase place holder names
390 * BuildManager.cs: initial support for precompiled sites.
392 2009-02-13 Marek Habersack <mhabersack@novell.com>
394 * AspParser.cs: added an event raised when parsing is complete.
396 * AspGenerator.cs: added support for PageParserFilter which, if
397 found, is used to control certain aspects of code parsing
398 (accepting/rejecting control types, accepting/rejecting code
399 snippets, parsing completion)
400 Added the AddControl method, used by PageParserFilter when a
401 custom filter wants to inject a control in the current control
404 2009-02-05 Marek Habersack <mhabersack@novell.com>
406 * AppResourcesCompiler.cs: implemented a type resolver for
407 ResXResourceReader so that it can correctly resolve
408 System.Resources types which are normally found in
409 System.Windows.Forms but are included by System.Web
410 directly. Without the type resolver, code comparing types inside
411 ResXResourceReader when file references are used in side the .resx
412 file will not work correctly. The reason for that is that .resx
413 files will name "System.Resources.ResXFileRef,
414 System.Windows.Forms" as the file reference handler, while inside
415 System.Web ResXFileRef will be of type
416 "System.Resources.ResXFileRef, System.Web". Fixes bug #466059
418 * GenericBuildProvider.cs: added a new virtual method, MapPath,
419 which can be overriden by builders which need special handling of
420 virtual path mapping.
422 * PageBuildProvider.cs: provide implementation of
423 GenericBuildProvider.MapPath which takes into account fake virtual
424 paths. Fixes bug #463950
426 2009-01-26 Marek Habersack <mhabersack@novell.com>
428 * BuildManagerDirectoryBuilder.cs: added support for fake virtual
431 * CompilationException.cs: added a Message override to make error
432 messages more useful.
434 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
436 * AspComponentFoundry.cs: no need to throw. Caller handles a null
439 2009-01-23 Marek Habersack <mhabersack@novell.com>
441 * BuildManager.cs: use -1 for infinite wait in calls to
442 Acquire{Reader,Writer}Lock ().
444 2009-01-22 Marek Habersack <mhabersack@novell.com>
446 * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
449 * BuildProvider.cs: added new internal virtual method,
450 ExtractDependencies() whose purpose is to extract virtual path
451 dependencies without compiling the code, if possible.
453 * TemplateBuildProvider.cs: implemented the new
454 ExtractDependencies () method which uses regular expressions to
455 extract file dependencies from the source without having to
458 * CompilationException.cs: added a new public property, Results,
459 which returns the compilation results.
461 * BuildProviderGroup.cs: added. A simple class descending from
462 List <BuildProvider> which is used to hold a compilation batch -
463 that is a collection of BuildProvider instances.
465 * BuildManagerDirectoryBuilder.cs: new class which takes care of
466 generating compilation batches for the requested virtual path. A
467 set of batches is generated from files found in the same virtual
468 directory as the requested virtual path and all of the
469 dependencies of those files. All files are grouped in batches
470 within which no file depends upon its siblings. An attempt is made
471 to sort the batches from the "least dependent" to the "most
472 dependent" batches - i.e. the batches which do not depend on other
473 batches go to the top.
474 Code generating the batches now correctly detects dependency loops
475 and throws an exception when one is encountered.
476 Batches are represented as instances of a new class -
479 * BuildManagerCacheItem.cs: added. Contains all the compilation
480 result information needed by BuildManager. See below.
482 * BuildManager.cs: complete batch building rewrite:
483 - only one build lock is held instead of a set of compilation
484 tickets. Only one thread can compile anything at one given
486 - retrieving types from the build cache now uses a slim rw lock,
487 so that readers aren't blocked while compilation is in
488 progress. Writer lock is acquired only when adding a newly
489 compiled type to the build cache and when removing it after its
490 dependencies made it invalid.
491 - assembly references for each compilation are now collected
492 dynamically as the source is being compiled, this removed a lot
493 of complexity in dealing with assembles containing conflicting
494 types. As a consequence right now there may exist several
495 loaded assemblies containing the same type, but only the latest
496 of them will be used in new compiles.
497 - the thread compiling code can recurse into the Build method
498 which causes the recursively referenced code to be compiled
499 into a separate, uniquely named, assembly. This deals with all
500 recursion loops and dependency problems.
501 - automatic app domain restart after a certain number of compiles
503 - improved compilation error handling. If a compilation error
504 occurs, the code attempts to recompile the assembly up to 3
505 times, each time removing from the batch the files/virtual
506 paths which failed parsing/compilation. If the attempts failed,
507 another one is made to compile only the virtual path requested
508 by the calling code. Only should that fail a compilation
509 exception is thrown. All the compilation errors are written to
510 stdout if the application is in the debug mode.
511 - changed assembly naming. It now generates assembly names based
512 on whether the compilation is recursive and whether the batch
513 being compiled contains more than one code unit or
515 - compilation results are now stored in the cache as instances of
516 the new BuildManagerCacheItem class, which contains all the
517 information required by BuildManager to return types,
518 assemblies, dependencies etc.
519 - GetReferencedAssemblies now correctly returns only the
520 assemblies defined in the .config files.
521 - GetVirtualPathDependencies does not need to compile code
522 anymore in order to extract virtual path dependencies. New code
523 in BuildProvider.ExtractDependencies () takes care of that.
524 - a BuildManagerDirectoryBuilder class instance is used to
525 generate compilation batches.
526 - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
529 * AssemblyBuilder.cs: added support for keeping track of which
530 code unit was generated by which BuildProvider andr which
531 BuildProvider produced a given source file. Both changes serve the
532 purpose of dealing with compilation errors in BuildManager.
534 * ApplicationFileBuildProvider.cs: added missing
535 BuildProviderAppliesTo attribute
537 2009-01-14 Marek Habersack <mhabersack@novell.com>
539 * AspGenerator.cs: implemented a work around which allows the
540 server controls embedded in client tag attributes to be parsed and
543 2009-01-13 Marek Habersack <mhabersack@novell.com>
545 * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
546 GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
547 ControlBuilder cleanup.
549 2009-01-12 Marek Habersack <mhabersack@novell.com>
551 * TemplateControlCompiler.cs: do not generate #line pragmas for
552 plain strings. Fixes bug #461214
554 2008-12-11 Marek Habersack <mhabersack@novell.com>
556 * BaseCompiler.cs: added a new method, InitializeType, to be
557 overriden in child classes when any class initialization needs to
558 be performed before methods, constructors and fields are created.
560 * TemplateControlCompiler.cs: if the parser has any custom
561 controls registered, compile them here - in the InitializeType
564 2008-12-10 Marek Habersack <mhabersack@novell.com>
566 * ParseException.cs: made serializable.
568 * PageCompiler.cs: CreateStronglyTypedProperty calls
569 AddReferencedAssembly to add type's assembly to the unit's
570 references after the typed property has been created.
572 * BaseCompiler.cs: added a new helper method,
573 AddReferencedAssembly to be used whenever an assembly location
574 needs to be added to the compilation unit's list after the parsing
575 is done (e.g. when processing PreviousPageType or MasterPageType
576 properties in PageParser)
578 2008-12-08 Marek Habersack <mhabersack@novell.com>
580 * TemplateControlCompiler.cs: use the correct regex match group
581 index in SanitizeBindCall (), fixes bug #457011
583 2008-12-05 Marek Habersack <mhabersack@novell.com>
585 * BuildManager.cs: attempt to enter the compilation critical
586 section with a timeout up to 3 times before giving up. This avoids
587 deadlocks in situations where there are two virtual directores
588 each containing user controls referencing user controls from the
591 2008-12-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
593 * AspParser.cs: reset to the next character in a partial match in case
594 of failure. Fixes bug #314688.
596 2008-12-01 Marek Habersack <mhabersack@novell.com>
598 * TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
599 instances to the ContentPlaceHolders collection when the
600 placeholder is instantiated in the control build method, collect
601 the ids and store them in ContentPlaceHolders inside the
602 constructor. Fixes bug #449970
603 For each content placeholder generate a public virtual property
604 named "Template_PLACEHOLDERID", this is compatible with what .NET
607 * BaseCompiler.cs: added new virtual method,
608 AddStatementsToConstructor, which is called just before
609 CreateConstructor returns.
611 2008-11-25 Marek Habersack <mhabersack@novell.com>
613 * AspComponentFoundry.cs: GetComponentType methods replaced with
614 GetComponent returning an instance of AspComponent which fully
615 describes the registered item. Components are cached, indexed by
618 * AspComponent.cs: added
620 2008-11-21 Marek Habersack <mhabersack@novell.com>
622 * CompilationException.cs: made serializable.
624 * TemplateControlCompiler.cs: make the Bind regex stricter.
625 When creating Eval expression from Bind, replace single quotes
626 with double quotes. Fixes bug #447597
627 When processing Bind expressions and the regex doesn't match,
630 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
632 * AspTokenizer.cs: if there's a newline between the opening server tag
633 and any other special character, treat the block as a code-render
637 2008-11-14 Marek Habersack <mhabersack@novell.com>
639 * TemplateControlCompiler.cs: treat Eval and Bind expressions as
640 verbatim code. The only difference between the two is that in the
641 latter case Bind is replaced with Eval in the output code. Fixes
643 If BindingDirection of the parent template builder is OneWay in
644 RegisterBindingInfo, do not throw an exception but simply do not
645 register the binding.
647 2008-10-29 Marek Habersack <mhabersack@novell.com>
649 * BuildManager.cs: seal the internal classes.
650 Remove unused BuildCacheItem.ValidBuild property.
652 2008-10-16 Marek Habersack <mhabersack@novell.com>
654 * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
655 use PropertyInfo.CanWrite to check whether the property is
656 writable anymore, it calls GetSetMethod (false) instead.
658 2008-10-10 Marek Habersack <mhabersack@novell.com>
660 * TemplateControlCompiler.cs: allow whitespace around parentheses
661 in the Bind and Eval expressions.
663 2008-10-09 Marek Habersack <mhabersack@novell.com>
665 * BuildManager.cs: if monoSettings section is found in the
666 system.web section in web.config, use its contents to augment
667 compiler configuration. Used to work around the issue reported in
670 2008-10-08 Marek Habersack <mhabersack@novell.com>
672 * TemplateControlCompiler.cs: templates must be instantiated even
673 for builders which process children as properties.
675 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
677 * AssemblyBuilder.cs: use CodeBase to get to the original assembly
678 path because Location might point the the shadow copy. Bug #409646
681 2008-10-03 Marek Habersack <mhabersack@novell.com>
683 * BuildManager.cs: if an assembly fails to build out of a batch of
684 files, extract the virtual path that was requested by the client
685 and attempt to compile it alone.
687 2008-09-29 Marek Habersack <mhabersack@novell.com>
689 * BuildManagerRemoveEntryEventHandler.cs: added
691 * BuildManager.cs: added a static event to notify interested
692 parties when an entry is removed from the buildCache. Fixes bug
695 2008-09-26 Marek Habersack <mhabersack@novell.com>
697 * BuildManager.cs: when creating a cache entry for a virtual path,
698 make it depend on a list of files built recursively from all the
699 virtual path's dependencies. Fixes bug #430114
701 2008-09-24 Andreia Gaita <avidigal@novell.com>
703 * AspParser.cs: When parsing text which contain xml tags that resemble
704 the end string, append the original text instead of the end string,
705 because the casing might not match between the two. Fixes #320445
707 2008-09-23 Marek Habersack <mhabersack@novell.com>
709 * AspGenerator.cs: ignore whitespace only if it's between
710 CodeRender blocks, not between DataBinding and
711 CodeRenderExpression.
713 2008-09-01 Marek Habersack <mhabersack@novell.com>
715 * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
716 null/empty parser.InputFile now.
718 * AspGenerator.cs: AddTypeToCache works checks whether inputFile
719 is null or empty and does not assume the dependencies ArrayList is
721 CloseControl uses ControlBuilder's OriginalTagName property,
722 should the property/tag name be prefixed with 'prefix:'
724 * CachingCompiler.cs: expect the dependencies ArrayList to be null
727 2008-08-31 Marek Habersack <mhabersack@novell.com>
729 * TemplateControlCompiler.cs: trust builder.BindingContainerType
730 in the 2.0+ profile - do not use container properties to detect
732 Added a helper method, compiled only when DEBUG is defined, to
733 generate Console.WriteLine CodeDOM calls.
734 Templates are processed before anything else, so that children
735 which may depend on parent's templates can get access to them.
737 * BaseCompiler.cs: add line pragmas only if enabled for the
740 2008-08-29 Marek Habersack <mhabersack@novell.com>
742 * AppCodeCompiler.cs: properly handle profile base class
743 specifications which refer to full type names.
745 2008-08-26 Marek Habersack <mhabersack@novell.com>
747 * BuildManager.cs: use VirtualPathUtility.Combine in
748 GetAbsoluteVirtualPath for non-rooted paths.
750 2008-08-19 Marek Habersack <mhabersack@novell.com>
752 * ThemeDirectoryBuildProvider.cs: theme directory dependencies
753 should use only virtual paths for CSS files. Fixes bug #397187
755 2008-08-18 Marek Habersack <mhabersack@novell.com>
757 * TemplateControlCompiler.cs: process expression when they are
758 used used in values of attributes without associated
759 properties. Fixes bug #417883
761 * ResourceExpressionBuilder.cs: added two overloads of
762 CreateGetLocalResourceObject to encompass cases when the generated
763 expression is not assigned to a property but rather used as a
764 parameter to the SetAttribute method. Fixes bug #417883
766 2008-08-14 Marek Habersack <mhabersack@novell.com>
768 * AspGenerator.cs: do not ignore directives inside HTML comments.
770 * TemplateControlCompiler.cs: .NET allows for whitespace between
771 the directive start (<%) and the directive type character. Added
772 code which copes with such situations correctly.
774 2008-08-13 Marek Habersack <mhabersack@novell.com>
776 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
777 to allow for single quotes and an optional second parameter to the
779 Added an Eval regular expression.
780 Both Bind and Eval calls in data expressions are now converted
781 into a CodeDOM method invocations, to allow support for possible
782 languages which use a different call format (previously code
784 Added a method to construct the Eval invoke expression which
785 simplifies code in other areas.
788 2008-08-06 Marek Habersack <mhabersack@novell.com>
790 * TemplateControlCompiler.cs: handle situation when a property of
791 a control for which we're generating the code is of type
792 'Type'. In such case, variable.GetType() will return
793 System.MonoType, which must not be output to the generated
794 source. Thanks to Robert Jordan for giving the idea for the hack!
796 2008-06-30 Marek Habersack <mhabersack@novell.com>
798 * AspGenerator.cs: hush the warnings and fix invalid type
801 * AssemblyBuilder.cs: hush the warnings and add some debugging
804 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
805 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
806 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
808 2008-06-18 Marek Habersack <mhabersack@novell.com>
810 * TemplateControlCompiler.cs: AddChildCall properly processes the
811 PartialCachingAttribute now.
813 2008-06-11 Marek Habersack <mhabersack@novell.com>
815 * BuildManager.cs: if an error occurs while assigning the
816 requested path to an assembly builder inside BuildAssembly, throw
819 * BaseCompiler.cs: do not generate #line pragma for code which
820 exists only in memory.
822 2008-05-30 Marek Habersack <mhabersack@novell.com>
824 * ClientBuildManager.cs: do not use synthetized event accessors
827 2008-05-28 Marek Habersack <mhabersack@novell.com>
829 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
832 2008-05-19 Marek Habersack <mhabersack@novell.com>
834 * AspGenerator.cs: if the last tag parsed was a code directive,
835 ignore any accumulated text if it's 100% whitespace.
836 Do not parse code render directives inside comments.
838 2008-05-15 Marek Habersack <mhabersack@novell.com>
840 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
841 when adding a foundry to the array list. AssemblyFoundry instances
842 are stacked at the end of the array list in a LIFO manner. That
843 way TagNameFoundry takes precedence over AssemblyFoundry should
844 the two contain the same type.
846 2008-05-14 Marek Habersack <mhabersack@novell.com>
848 * ParseException.cs: location can be null in the FileText property
851 2008-05-07 Marek Habersack <mhabersack@novell.com>
853 * AspGenerator.cs: push the include file directory to the parser
854 include directory stack and pop it after parsing the include, so
855 that the relative file paths are resolved correctly. Fixes bug
858 2008-05-06 Marek Habersack <mhabersack@novell.com>
860 * TemplateControlCompiler.cs: compatibility - added the
861 __stringResource static field to the generated class and a call to
862 SetStringResourcePointer to the FrameworkInitialize method.
864 * PageCompiler.cs: __fileDependencies should also be defined in
866 Page properties assigned in the page directive should be set
867 inside BuildControlTree in the 2.0 profile.
869 2008-04-29 Marek Habersack <mhabersack@novell.com>
871 * WebServiceCompiler.cs: if compiling a body-less web service, try
872 to load the class type from the loaded assemblies before
873 attempting to find it in the assemblies on disk.
875 2008-04-28 Marek Habersack <mhabersack@novell.com>
877 * BuildManager.cs: ignore bad assemblies in the bin/
878 directory. Fixes bug #315816
880 2008-04-26 Marek Habersack <mhabersack@novell.com>
882 * GenericBuildProvider.cs: the Parse () method should reuse the
883 previously opened TextReader when calling generator.Parse (), to
884 avoid opening the input file multiple times. Fixes bug #383881
886 2008-04-25 Marek Habersack <mhabersack@novell.com>
888 * AspGenerator.cs: put some safeguards in, to make sure streams
889 are closed in any case.
891 2008-04-24 Marek Habersack <mhabersack@novell.com>
893 * AspComponentFoundry.cs: added a new GetComponentType overload
894 which returns component source and a boolean flag whether the
895 control was registered from web.config (2.0).
897 2008-04-22 Marek Habersack <mhabersack@novell.com>
899 * BuildManager.cs: ignore also arbitrary exceptions when
900 batch-building an assembly. Fixes bug #323556
902 2008-04-19 Marek Habersack <mhabersack@novell.com>
904 * BuildManager.cs: use absolute virtual path to query the
905 VirtualPathProvider for path existence.
906 When ASP.NET is self-hosted, force
907 non-batch compilation. Fixes bug #380985
909 * ILocation.cs: added a new property, FileText.
911 * Location.cs: added implementation of the ILocation.FileText
914 * ParseException.cs: use the new ILocation.FileText, if defined,
915 to get the file source.
917 * AspGenerator.cs: when TextReader is present, use it to read with
918 the VirtualPathProvider to read the file source. Fixes bug #381364
920 * AspParser.cs: added a new property FileText to provide the file
921 contents which was read in the constructor.
923 2008-04-18 Marek Habersack <mhabersack@novell.com>
925 * BuildManager.cs: when any parsing error occurs during batch
926 building, ignore the file which caused it. If the file with
927 parsing error is the one requested by user, throw the parsing
928 exception. Fixes bug #323742
930 2008-04-15 Marek Habersack <mhabersack@novell.com>
932 * CachingCompiler.cs: dispose of streams the way it should
935 2008-04-09 Marek Habersack <mhabersack@novell.com>
937 * BuildManager.cs: refactoring - the SetCommonParameters and
938 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
939 and made internal static.
940 Do not catch compilation exceptions and wrap them in
941 HttpException, let the CompilationException pass through. Fixes
944 * AppWebReferencesCompiler.cs: added - support for compiling of
945 wsdl files found in the App_WebResources directory. Fixes bug
948 * BuildProvider.cs: refactoring - moved the SetCommonParameters
949 and GetDefaultCompilerTypeForLanguage to BuildManager
951 * WsdlBuildProvider.cs: added the CodeCompilerType property
953 Namespace for the generated code is taken from the wsdl path,
954 relative to App_Code or App_WebReferences, if the wsdl in question
955 is under on of those directories.
956 GenerateCode uses OpenReader () so that VirtualPathProvider works
959 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
960 when generating source from code unit and use
961 WebEncoding.FileEncoding when adding code files to the unit. Fixes
963 Cope with virtualPath being null in BuildAssembly.
964 Reference assemblies specified in web.config when linking.
966 2008-04-08 Marek Habersack <mhabersack@novell.com>
968 * AspComponentFoundry.cs: add loaded assembly to the
969 BuildManager's list of referenced assemblies instead to
970 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
972 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
974 * BuildManager.cs: switched to VirtualPath instead of a string
975 path in several methods.
976 Batch compilation is turned off if we have a custom
977 VirtualPathProvider which implements only the VirtualFile and
978 falls back to DefaultVirtualDirectory implementation for directory
980 Added an internal method AddToReferencedAssemblies.
981 Remove invalidated entry from
982 WebConfigurationManager.ExtraAssemblies.
984 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
986 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
988 * AssemblyBuilder.cs: constructors use the new VirtualPath class
990 AddCodeFile can use the VirtualPathProvider if necessary now.
991 BuildAssembly overloads accept VirtualPath parameter instead of a
994 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
997 2008-03-31 Marek Habersack <mhabersack@novell.com>
999 * AppCodeCompiler.cs: implemented support for AppInitialize (a
1000 static method in any class defined in the App_Code source files),
1001 ran just after the App_Code assemblies are compiled in order to
1002 perform any application initialization actions.
1004 2008-03-27 Marek Habersack <mhabersack@novell.com>
1006 * BuildManager.cs: AssertVirtualPathExists now queries the
1007 VirtualPathProvider for path existence if physical path check
1008 fails, before throwing the 404 exception.
1010 2008-03-13 Marek Habersack <mhabersack@novell.com>
1012 * BuildManager.cs: if we're running in a case-insensitive
1013 environment, use case-insensitive comparer for the build caches.
1015 2008-02-29 Marek Habersack <mhabersack@novell.com>
1017 * BuildManager.cs: implement a mechanism to ignore certain virtual
1018 paths when batch compiling. Helps applications which may have
1019 .as?x files which won't work on mono for various reasons (one such
1020 sample is mojoportal).
1022 2008-02-28 Marek Habersack <mhabersack@novell.com>
1024 * TemplateControlCompiler.cs: make sure that data-bound attribute
1025 assignments properly convert the Bind expression to the Eval
1026 one. Fixes bug #362039
1028 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
1029 controls can contain only them, whitespace and directives. Fixes
1032 2008-02-27 Marek Habersack <mhabersack@novell.com>
1034 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
1035 LoadType method for the 2.0 profile.
1037 * CompilationException.cs: use a different format of ErrorMessage
1038 for the 2.0+ profile.
1040 2008-02-26 Marek Habersack <mhabersack@novell.com>
1042 * BuildManager.cs: known file types extensions are now matched
1045 2008-02-25 Marek Habersack <mhabersack@novell.com>
1047 * TemplateControlCompiler.cs: GetContainerType now checks whether
1048 the binding container returned from the builder implements
1049 IDataItemContainer (for 2.0+ profiles) and looks for one more
1050 property, Rows, if no Items property is found.
1052 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
1054 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
1055 "raw" appsetting value if targetType is null.
1057 2008-02-07 Marek Habersack <mhabersack@novell.com>
1059 * CompilationException.cs: added new constructor which takes
1060 CompilerResults as one of the parameters.
1061 Added CompilerOutput property.
1063 * AssemblyBuilder.cs: use the new CompilationError constructor.
1065 * BuildManager.cs: check for virtualPath existence before
1066 attempting to compile the assemblies. Fixes bug #359465
1068 2008-02-06 Marek Habersack <mhabersack@novell.com>
1070 * GenericBuildProvider.cs: GetGeneratedType may return a type even
1071 though the results are null.
1073 * AssemblyBuilder.cs: if there are no units, no source files, no
1074 resources and no embedded resources in the passed options then
1075 do not attempt to compile the assembly. Fixes bug #359325
1077 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
1078 BuildAssembly may return null results.
1080 * BuildManager.cs: protect non-page builds from endless recursion
1081 if a non-page file recursively references/includes another file
1082 from the same batch. If such case is detected, the recursively
1083 referenced file is compiled into a separate assembly and removed
1084 from the previous compilation batch. Fixes bug #358742.
1085 If AssemblyBuilder returns no results from BuildAssembly, it might
1086 mean we're dealing with a compilation of empty .as[hm]x files,
1087 with no code and only code-behind in bin/. Do not report an error
1088 in that case, only add the compiled types to the cache. Fixes bug
1091 2008-02-05 Marek Habersack <mhabersack@novell.com>
1093 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
1094 non-rooted relative paths to absolute ones now. Fixes bug
1097 * GenericBuildProvider.cs: introduced a new abstract method,
1098 GetReferencedAssemblies, which is called on descendant builders to
1099 get a list of assemblies referenced by the parsed file. Fixes bug
1102 * AssemblyBuilder.cs: added a new overload of the
1103 AddAssemblyReference method, to be used by build providers to
1104 register assemblies collected by the corresponding parser.
1106 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
1107 overload of the new abstract method GetReferencedAssemblies.
1109 * AspGenerator.cs: introduced a new overload for the Parse method
1110 which accepts a bool indicating whether or not to initialize the
1111 parser. The overload is used when parsing server-side
1112 includes. Fixes bug #357498
1114 2008-02-04 Marek Habersack <mhabersack@novell.com>
1116 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
1117 generating source code files. Fixes bug #357053.
1119 * AspGenerator.cs: set isApplication before parsing. Fixes bug
1122 2008-01-31 Jb Evain <jbevain@novell.com>
1124 * AspGenerator.cs: correct typo. Fix #357547.
1126 2008-01-27 Marek Habersack <mhabersack@novell.com>
1128 * BuildManager.cs: GetReferencedAssemblies includes the extra
1129 assemblies and the App_Code assemblies. Patch from Mike Morano
1130 <mmorano@mikeandwan.us>, thanks!
1132 2008-01-24 Marek Habersack <mhabersack@novell.com>
1134 * WebHandlerBuildProvider.cs: derive from the new
1135 SimpleBuildProvider class.
1137 * BuildManager.cs: full implementation of the batch compilation
1138 for the 2.0 profile. The implementation is most probably different
1139 to MS.NET's but the effects are the same (or nearly the same -
1140 there are some minor differences). There are missing bits and
1141 pieces, but minor ones - to be added later.
1143 * SimpleBuildProvider.cs: new build provider abstract class
1144 deriving from the GenericBuildProvider that implements common code
1145 for building web handlers and web services.
1147 * GenericBuildProvider.cs: new generic abstract class used to
1148 implement base builder code for all the build provider types and
1149 maximize code reuse.
1151 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
1152 class and implement all the necessary abstract members.
1153 Handle "fake" virtual paths, to properly support generating of the
1156 * BuildProvider.cs: SetVirtualPath now converts the passed path to
1158 Added internal virtual method GenerateCode, used by derived
1160 SetCommonParameters no longer sets the referenced assemblies, this
1161 is done in BuildManager now.
1162 Added an internal virtual property CodeUnit which returns the
1163 build provider's compilation unit.
1165 * PageCompiler.cs: fix assignment of base types for asynchronous
1166 pages, to match MS.NET.
1167 For asynchronous pages, add the necessary methods generation.
1169 * BaseCompiler.cs: default namespace is now set using a constant.
1170 Renamed the Init method into ConstructType, to better reflect its
1171 purpose and made the method internal - it is used by the build
1173 Added several CreateProvider overloads for easier and more unified
1174 compilation provider creation.
1175 Added an internal MainClassType property to enable class type name
1176 retrieval from other parts of the class hierarchy.
1178 * ApplicationFileBuildProvider.cs: new build provider deriving
1179 from the TemplateBuildProvider class to compile the global.asax
1182 * AspGenerator.cs: properly handle parsers which have no input
1183 file path given, but use TextReader instead.
1184 Dependencies are virtual paths now, convert them to physical ones
1185 before creating cache dependency.
1187 * CachingCompiler.cs: parser dependencies are virtual paths now,
1188 convert them to physical ones before creating cache dependency.
1190 * AssemblyBuilder.cs: full implementation of the documented
1191 functionality as well as a lot of internal build code
1192 added. Produces assemblies using the same style what MS.NET for
1193 temporary and target file naming. Handles partial type squashing
1194 if the same partial type is used by several code compile units
1195 added to the same builder instance.
1197 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
1198 base class and add implementation of all the abstract methods
1201 * ThemeDirectoryBuildProvider.cs: new build provider to compile
1202 theme directories. Replaces the old ThemeDirectoryCompiler class.
1204 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
1205 base class and add implementation of all the abstract methods
1208 * TemplateBuildProvider.cs: new internal abstract class which
1209 implements the common tasks for all the template control build
1212 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
1213 type to implement building.
1215 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
1217 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
1219 2008-01-08 Marek Habersack <mhabersack@novell.com>
1221 * TemplateControlCompiler.cs: statements to assign
1222 fields/properties from resources must be processed at the very end
1223 of the control creation method. Some controls (like HyperLink) can
1224 set their Text attribute using literal content. In such cases, in
1225 order to properly localize the control, the value read from the
1226 local page resources must be assigned after the literal value has
1227 been added to the control. Fixes bug #323494
1229 2008-01-07 Marek Habersack <mhabersack@novell.com>
1231 * CachingCompiler.cs: added an overload to the Compile method
1232 which accepts a flag whether or not to include debug information
1233 in the generated assembly.
1235 2008-01-02 Marek Habersack <mhabersack@novell.com>
1237 * TemplateControlCompiler.cs: add line pragma wherever necessary.
1239 * PageCompiler.cs: reorder the statements to match MS.NET output.
1240 Output line pragma information for directive attributes.
1242 * BaseCompiler.cs: add a set of AddLinePragma methods for various
1244 Output line pragmas when adding server-side scripts to the CodeDOM
1247 * AspGenerator.cs: use ServerSideScript to store script location
1248 in the original file.
1250 * UserControlCompiler.cs: output line pragmas for the init
1253 2007-12-28 Marek Habersack <mhabersack@novell.com>
1255 * PageCompiler.cs: MS.NET compatibility: added the
1256 __fileDependencies object to the generated class.
1257 Refactored the output to match MS.NET more closely.
1258 IHttpHandler or IHttpAsyncHandler are now added to the generated
1259 class list of implemented interfaces.
1261 * BaseCompiler.cs: Main class field references are prefixed with
1263 Refactored the output to match MS.NET more closely.
1265 2007-12-27 Marek Habersack <mhabersack@novell.com>
1267 * BaseCompiler.cs: check for base type globality in all the
1268 location it is used.
1270 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1272 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
1275 2007-12-21 Marek Habersack <mhabersack@novell.com>
1277 * BaseCompiler.cs: Refactoring. Move the provider creation code to
1278 an internal static method, so that other piece of code which need
1279 to create the provider can do it using the same code.
1280 Added setters to several internal properties, so that they can be
1281 shared with derivative classes.
1283 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
1286 * CachingCompiler.cs: adjust to the changes above. Also some
1289 2007-12-15 Marek Habersack <mhabersack@novell.com>
1291 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
1293 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
1294 profile, it's obsoleted. CachingCompiler will use the
1295 CodeDomProvider methods directly in that case.
1297 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
1298 compiler information for the 2.0 profile from system.codeDom.
1300 * CachingCompiler.cs: the Compile overloads do not use the
1301 compiler instance, but call appropriate methods on the
1302 CodeDomProvider instance directly.
1303 Updated some Compile overloads to acquire compiler information for
1304 the 2.0 profile from system.codeDom.
1306 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
1308 * TemplateControlCompiler.cs (AddExpressionAssign):
1309 Make sure expression does not contain prefix.
1311 * AppSettingsExpressionBuilder.cs: Pass type of property to
1312 GetAppSetting, not type of declaring type.
1314 2007-12-13 Marek Habersack <mhabersack@novell.com>
1316 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
1317 AssemblyBuilder.cs, AppResourcesCompiler.cs,
1318 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
1319 optimization - use String.Concat instead of String.Format in some
1322 2007-11-22 Marek Habersack <mhabersack@novell.com>
1324 * PageCompiler.cs: use
1325 pageParser.OutputCacheVaryByContentEncodings when initializing the
1326 output cache in the 2.0 profile.
1328 2007-11-06 Marek Habersack <mhabersack@novell.com>
1330 * BuildManager.cs: properly retrieve the BuildProviderCollection
1331 from configuration files.
1333 2007-11-03 Marek Habersack <mhabersack@novell.com>
1335 * TemplateControlCompiler.cs: do not call converters specified in
1336 the member custom attributes if 'str' is null in
1337 GetExpressionFromString.
1339 2007-10-23 Marek Habersack <mhabersack@novell.com>
1341 * AppResourcesAssemblyBuilder.cs: do not output preservation files
1342 for satellite assemblies, just for the main assembly. Also, don't
1343 add the satellite assemblies to the list of top-level assemblies.
1345 2007-10-17 Marek Habersack <mhabersack@novell.com>
1347 * PageCompiler.cs: added code to set the AsyncMode and
1348 AsyncTimeout Page properties.
1350 2007-10-15 Marek Habersack <mhabersack@novell.com>
1352 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
1353 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
1354 HttpApplication.LoadType instead of Type.GetType.
1356 2007-10-10 Marek Habersack <mhabersack@novell.com>
1358 * TemplateControlCompiler.cs: be careful when using type
1359 converters taken from attributes attached to class members. They
1360 may come from the System.Design namespace, which is mostly not
1361 implemented on Mono.
1363 2007-10-01 Marek Habersack <mhabersack@novell.com>
1365 * AppResourcesCompiler.cs: resources are no longer compiled into a
1366 single assembly. Instead, the common assembly construction code
1367 has been moved to AppResourcesAssemblyBuilder to use satellite
1370 * AppResourcesAssemblyBuilder.cs: new resource assembly
1371 construction code which takes care of outputting satellite
1374 2007-09-27 Marek Habersack <mhabersack@novell.com>
1376 * TemplateControlCompiler.cs: support nullable types in
1377 GenerateExpressionFromString.
1379 2007-09-21 Marek Habersack <mhabersack@novell.com>
1381 * TemplateControlCompiler.cs: if we're running on a platform with
1382 the directory separator character that's different to the Unix
1383 style '/' one, convert the input file path to the virtual path
1384 style string, with path parts separated by '/'. Patch from Robert
1385 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
1387 2007-09-20 Marek Habersack <mhabersack@novell.com>
1389 * TemplateControlCompiler.cs: if a member passed to
1390 GetExpressionFromString has a TypeConverter attribute set, try to
1391 use the named type converter to convert the string value into the
1392 target type. Fixes bug #325489.
1394 2007-09-14 Marek Habersack <mhabersack@novell.com>
1396 * AppResourcesCompiler.cs: use _culture and _resourceManager
1397 instead of culture and resourceManger in the generated code, to
1398 avoid case problems for languages that are case-insensitive.
1400 2007-09-10 Marek Habersack <mhabersack@novell.com>
1402 * TemplateControlCompiler.cs: cast the expression to the field
1403 type whenever appropriate in GetExpressionFromString.
1404 When generating an object instance and one of the parameters is
1405 System.Type, return a typeof expression.
1407 2007-09-07 Marek Habersack <mhabersack@novell.com>
1409 * TemplateControlCompiler.cs: another modification to the way
1410 TemplateInstance.Single templates are treated. The search for
1411 parent with this attribute set stops as soon as the first
1412 TemplateBuilder is encountered, no matter what the value of its
1413 TemplateInstance attribute is.
1415 2007-09-06 Marek Habersack <mhabersack@novell.com>
1417 * TemplateControlCompiler.cs: ID must be assigned as soon as
1418 possible, before any other attributes of the control are
1419 accessed. The control code may rely on ID being set.
1420 Extend the process of checking if a control is located within a
1421 template with the TemplateInstance.Single attribute set, to all
1422 the parents of the current builder.
1424 2007-09-05 Marek Habersack <mhabersack@novell.com>
1426 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
1427 batch must share the same component foundry. Under MS.NET if any
1428 earlier .skin file registers a control prefix any later .skin
1429 files may use it without registering.
1431 2007-09-04 Marek Habersack <mhabersack@novell.com>
1433 * TemplateControlCompiler.cs: make sure that base class doesn't
1434 contain a field of the same name which is accessible from the
1435 current control if we're within a singleton template.
1436 When generating code for a property or field, use the name
1437 retrieved from the metadata by reflection instead of the one
1438 parsed from html. Fixes bug #82687. Patch from SunHo Kim
1439 <zsunno@gmail.com>, thanks!
1441 2007-08-29 Marek Habersack <mhabersack@novell.com>
1443 * CachingCompiler.cs: consider contents of the
1444 <compilation><assemblies> section when constructing a list of
1445 assemblies during compilation.
1447 * TemplateControlCompiler.cs: mark fields corresponding to the
1448 controls as global references.
1449 When control tree is constructed and the parent of the current
1450 builder is a TemplateBuilder marked with the TemplateInstance
1451 attribute set to Single, use the control's ID as the field
1452 name. This makes it possible to refer to controls inside templates
1453 by name instead of by using FindControl.
1455 2007-08-23 Marek Habersack <mhabersack@novell.com>
1457 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
1458 and HttpApplication.LoadTypeFromBin.
1460 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
1463 2007-08-21 Marek Habersack <mhabersack@novell.com>
1465 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
1466 to look up assemblies in the binary path(s).
1468 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
1470 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
1471 for scope case insensitive. Fixes bug #82479.
1473 2007-08-14 Marek Habersack <mhabersack@novell.com>
1475 * TemplateControlCompiler.cs: remove dead code.
1477 * AssemblyBuilder.cs: include actual exception information when
1478 reporting inability to load a compiled assembly.
1480 * AppCodeCompiler.cs: remove unused variables.
1482 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
1483 component collections, instead of the old Queue which implemented
1484 FIFO. Fixes situations when a control registered later for a
1485 certain prefix would not be used in preference to a previously
1486 registered one of the same name.
1488 2007-08-06 Marek Habersack <mhabersack@novell.com>
1490 * AspComponentFoundry.cs: properly add new foundry if the
1491 corresponding entry in the foundries collection is a Queue. Patch
1492 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
1494 2007-07-31 Marek Habersack <mhabersack@novell.com>
1496 * AspComponentFoundry.cs: do not overwrite previously registered
1497 foundries when a new one is registered with the same prefix. Fixes
1500 2007-07-18 Marek Habersack <mhabersack@novell.com>
1502 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
1503 does not look up the Item/Items properties to determine the
1504 container type, instead it just returns the type reported by the
1505 builder passed to this method. This change makes the generated
1506 code match MS.NET. Fixes bug #82119.
1508 2007-07-02 Marek Habersack <mhabersack@novell.com>
1510 * TemplateControlCompiler.cs: don't use StartWith to see if a
1511 variable's value is a bind expression, as it erroneously renames
1512 all calls to methods starting with the string Bind. Use a regular
1513 expression now instead. Fixes bug #81928.
1515 2007-06-20 Marek Habersack <mhabersack@novell.com>
1517 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
1519 * CachingCompiler.cs: as above
1520 * AspGenerator.cs: as above
1522 2007-06-13 Marek Habersack <mhabersack@novell.com>
1524 * TemplateControlCompiler.cs: make sure control has a writable
1525 TemplateControl property prior to assigning values to it.
1527 2007-06-09 Marek Habersack <mhabersack@novell.com>
1529 * TemplateControlCompiler.cs: TemplateControl is assigned for
1530 controls that are placed within ContentPlaceHolder and not for the
1531 ContentPlaceHolder itself.
1532 No longer add the overriden version of TemplateSourceDirectory to
1533 the generated source, all the work is now done in
1534 Control.TemplateSourceDirectory.
1536 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
1537 slash, for compatibility with MS.NET
1539 2007-06-05 Marek Habersack <mhabersack@novell.com>
1541 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
1542 profile uses the TemplateControl property instead of Parent. This
1543 allows to return the correct path.
1545 2007-06-01 Marek Habersack <mhabersack@novell.com>
1547 * TemplateControlCompiler.cs: be case-insensitive when looking for
1550 2007-05-29 Marek Habersack <mhabersack@novell.com>
1552 * ThemeDirectoryCompiler.cs: pass the skin file's
1553 virtual path to the skin file parser as its first paramenter, and
1554 not a physical path.
1556 2007-05-28 Marek Habersack <mhabersack@novell.com>
1558 * ResourceExpressionBuilder.cs: properly cast
1559 GetGlobalResourceObject calls to the type of the property being
1562 2007-05-25 Marek Habersack <mhabersack@novell.com>
1564 * TemplateControlCompiler.cs: Changed a few incorrect
1565 ObjectCreationExpression to the correct DelegateCreationExpression.
1568 2007-05-24 Marek Habersack <mhabersack@novell.com>
1570 * PageCompiler.cs: added support for the PreviousPageType directive.
1572 * Directive.cs: as above.
1574 2007-05-22 Marek Habersack <mhabersack@novell.com>
1576 * UserControlCompiler.cs: the Profile property should be present
1577 also in user controls.
1579 2007-05-15 Marek Habersack <mhabersack@novell.com>
1581 * ResourceExpressionBuilder.cs: added a static method to generate
1582 a GetLocalResourceObject call which properly handles types which
1583 cannot be converted from strings.
1585 * TemplateControlCompiler.cs: use code described above to generate
1586 code for properties assigned from resources.
1588 * WsdlBuildProvider.cs: make the code actually work - get the
1589 physical path of VirtualPath instead of converting it to absolute
1591 Do not generate source, add the code unit to assembly builder
1594 * XsdBuildProvider.cs: added
1596 2007-05-08 Marek Habersack <mhabersack@novell.com>
1598 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
1599 so use a delegate create expression - it may make difference for
1600 languages other than C# (e.g. VisualBasic).
1602 2007-05-07 Marek Habersack <mhabersack@novell.com>
1604 * AspGenerator.cs: if the parser's language is implicit (i.e. set
1605 from the default configuration), the first script with the
1606 language attribute present sets the language of the parser.
1608 2007-05-04 Marek Habersack <mhabersack@novell.com>
1610 * TemplateControlCompiler.cs: do not query the parent for
1611 TemplateSourceDirectory if we are generating code for a Master
1614 2007-04-30 Marek Habersack <mhabersack@novell.com>
1616 * ConnectionStringsExpressionBuilder.cs: support expressions with
1617 suffixes .ProviderName and .ConnectionString (case-insensitie) and
1618 generate a call to GetConnectionStringProviderName in the former
1619 case. Fixes bug #81490
1621 * AppCodeCompiler.cs: support for cases when there exists a custom
1622 profile class but there is no App_Code directory or it's
1623 empty. Fixes bug #81489.
1625 * TemplateControlCompiler.cs: fix generation of code for
1626 declarative attribute assignments of the form Font-Size="small"
1627 (i.e. when a font size is assigned a symbolic, relative size
1628 value). This fixes for example rendering of the 0th level of
1631 2007-04-27 Marek Habersack <mhabersack@novell.com>
1633 * AppCodeCompiler.cs: do not look at the number of errors, check
1634 the compiler return code instead.
1635 Resolve assembly names from the global web.config to their
1636 locations before passing them to the compiler provider.
1638 * AssemblyBuilder.cs: as above
1640 * AppResourcesCompiler.cs: as above
1642 * AspComponentFoundry.cs: formatting changes.
1643 AssemblyFoundry looks for the specified namespace+type in the
1644 top-level assemblies if necessary.
1646 2007-04-26 Marek Habersack <mhabersack@novell.com>
1648 * AssemblyBuilder.cs: handle compilation failures in a better
1651 * PageCompiler.cs: the Master property must be in the partial
1652 class if present. Fixes bug #81442
1654 2007-04-20 Marek Habersack <mhabersack@novell.com>
1656 * AppCodeCompiler.cs: fix App_Code build when the directory
1657 contains both known and unknown files.
1659 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1661 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
1664 2007-04-19 Marek Habersack <mhabersack@novell.com>
1666 * AppCodeCompiler.cs: yet another method of detecting if we have a
1669 * BaseCompiler.cs: as above
1671 * AspComponentFoundry.cs: implemented delayed loading of control
1672 assemblies. Fixes bug #81058.
1674 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
1676 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
1677 then use it instead of the default ASP namespace. Fixes part of bug
1680 2007-04-19 Marek Habersack <mhabersack@novell.com>
1682 * BaseCompiler.cs: don't look at the number of profile properties
1683 when deciding if we have a custom profile. It is possible to have
1684 a profile that just inherits from a base class and does not list
1685 any custom properties. Fixes bug #81396.
1687 * AppCodeCompiler.cs: as above
1689 2007-04-15 Marek Habersack <mhabersack@novell.com>
1691 * AppCodeCompiler.cs: properly convert physical file path to
1692 virtual path for build providers.
1693 Make sure there's actually anything to compile.
1695 2007-04-11 Marek Habersack <mhabersack@novell.com>
1697 * AppCodeCompiler.cs: move custom profile type check till after
1698 the App_Code compilation is done. That way we can have custom
1699 profile providers in there. Fixes bug #81307.
1701 2007-04-10 Marek Habersack <mhabersack@novell.com>
1703 * AppResourceFilesCollection.cs: watch App_LocalResources for
1706 2007-04-06 Marek Habersack <mhabersack@novell.com>
1708 * BaseCompiler.cs: display the source of the file in which the
1709 error actually happened if the file exists, or the unit
1712 2007-04-03 Marek Habersack <mhabersack@novell.com>
1714 * AppResourcesCompiler.cs: global resources are put in the
1715 "Resources." namespace while local ones are not. Fixes bug #81174
1716 which was reopened after r75261.
1718 2007-03-26 Marek Habersack <mhabersack@novell.com>
1720 * TemplateControlCompiler.cs: refactor assining properties from
1721 resources a bit to support pages and user controls. Fixes bug
1723 Process meta:resourcekey after all the field/attribute assignments
1724 are done. Fixes bug #80809.
1725 Clean the code up a bit.
1726 Use GetExpressionFromString to generate a correct expression for
1727 custom page/control attributes. Fixes bug #81132.
1729 2007-03-21 Marek Habersack <mhabersack@novell.com>
1731 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
1732 AssignAppRelativeVirtualPath if the attribute was defined.
1734 * TemplateControlCompiler.cs: added support for setting custom
1735 attributes of a base class from the Page or Control directive
1738 2007-03-20 Marek Habersack <mhabersack@novell.com>
1740 * ResourceExpressionBuilder.cs: if the resource class key is null
1741 or empty, call GetLocalResourceObject, if not,
1742 GetGlobalResourceObject. Fixes bug #81174.
1744 2007-03-16 Marek Habersack <mhabersack@novell.com>
1746 * AppCodeCompiler.cs: produce message that makes more sense.
1748 2007-03-15 Marek Habersack <mhabersack@novell.com>
1750 * AppResourcesCompiler.cs: handle global resource keys with dots
1751 the way MS.NET does. All the dots are replaced with underscores
1752 when generating the stronly-typed property.
1754 2007-03-14 Marek Habersack <mhabersack@novell.com>
1756 * AppResourcesCompiler.cs: Fix a bug with global resources file
1757 grouping where no translated resources were processed due to base
1760 * TemplateControlCompiler.cs: hadle situations when there exist a
1761 control in the page with id matching the name of a field/property
1762 in the parent class. In this case we use 'protected new' to
1763 override the parent.
1765 2007-03-13 Marek Habersack <mhabersack@novell.com>
1767 * AspParser.cs: fix an off-by-one parsing bug with server-side
1770 * PageThemeCompiler.cs: let property builders through, stop the
1771 builders that have no control type. Fixes bug #81092
1773 * PageCompiler.cs: interfaces are to be implemented by the parent
1774 partial class, not the generated one.
1776 * AppResourceFilesCollection.cs: added separate constructor for
1777 local resources handling.
1779 * TemplateControlCompiler.cs: request the local resource object
1780 with proper virtual path.
1781 Put field declarations for controls in the partial class.
1782 Make sure builders are in valid state before trying to use them.
1784 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
1785 property in the page/control constructor.
1786 Change the generated code model for pages/controls to comply with
1787 the way MS.NET does (partial class contains only two properties
1788 plus declarations of all the controls, the actual control/page
1789 class inherits from the partial class). Fixes bug #81001.
1791 * AppResourcesCompiler.cs: does not require specifying manually
1792 whether it's a global or local resource compiler anymore. New
1793 constructors take care of that.
1794 Changed to compile local resources on demand, when a control/page
1797 2007-03-12 Marek Habersack <mhabersack@novell.com>
1799 * AspParser.cs: revert r73587 as it breaks more than it fixes.
1801 * AspComponentFoundry.cs: try to register foundries from App_Code
1802 assemblies if tag prefix and its namespace are defined. Fixes bug
1805 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
1806 of Assembly instances, not strings.
1808 * CachingCompiler.cs: make sure items in the CodeAssemblies and
1809 TopLevelAssemblies are really instances of the Assembly class
1810 before trying to use them.
1811 CodeAssemblies is a collection of Assembly instances, not
1814 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
1815 assemblies, not paths to assemblies.
1817 2007-03-10 Marek Habersack <mhabersack@novell.com>
1819 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
1820 CreateProfileProperty and InternalCreatePageProperty to
1821 BaseCompiler from PageCompiler.
1823 * GlobalAsaxCompiler.cs: generate the Profile property for the
1826 2007-03-09 Marek Habersack <mhabersack@novell.com>
1828 * AppCodeCompiler.cs: Add the GetProfile method to the
1829 ProfileCommon auto-generated class.
1831 * AppResourcesCompiler.cs: attempt to load the resource file
1832 earlier in the process, to gracefully handle empty files.
1834 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
1835 .skin and .css files composing the theme.
1837 2007-03-05 Marek Habersack <mhabersack@novell.com>
1839 * PageThemeCompiler.cs: Use correct theme path for
1840 AppRelativeTemplateSourceDirectory.
1841 Do not process builders of type CodeRenderBuilder.
1842 Make sure builder.ControlType is not null before depending on it.
1844 * ThemeDirectoryCompiler.cs: theme parser should be passed the
1845 virtual directory of the theme.
1847 2007-03-03 Marek Habersack <mhabersack@novell.com>
1849 * PageCompiler.cs: Added support for setting the
1850 MaintainScrollPositionOnPostBack property if the corresponding
1851 page directive attribute is found.
1853 * Directive.cs: added the MaintainScrollPositionOnPostBack and
1854 LinePragmas directives.
1856 2007-03-02 Marek Habersack <grendello@gmail.com>
1858 * AppCodeCompiler.cs: Correctly process App_Code directories which
1859 have no compilable files in the top-level directory. Fixes bug
1861 Write preservation files for the App_Code assemblies.
1863 2007-03-01 Marek Habersack <grendello@gmail.com>
1865 * AspParser.cs: fix GetVerbatim for cases when the end is
1866 e.g. --> or --%> and the string matched is ---> or ---%>
1867 respectively. The new code always backs out to make sure the end is
1870 2007-02-27 Marek Habersack <grendello@gmail.com>
1872 * TemplateControlCompiler.cs: ParseExpression returns an object,
1873 don't assume any concrete type.
1874 Use the current culture when converting the expression to a
1877 * ConnectionStringsExpressionBuilder.cs: Implement support for
1878 expressions of the <%$ ConnectionStrings:StringName %> form
1880 2007-02-19 Marek Habersack <grendello@gmail.com>
1882 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
1884 2007-02-16 Marek Habersack <grendello@gmail.com>
1886 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
1887 is referenced twice by the compiler(s).
1889 * TemplateControlCompiler.cs: Fix the problem with cultures which
1890 have a comma as their decimal separator and font/whatever
1891 units. New code does not reparse the text representation of the
1892 unit on the runtime (e.g. 0.9em) but instead it constructs the
1893 property using the FontUnit/Unit constructors which take,
1894 respectively, Unit and double/unittype parameters. This avoids
1895 culture-specific parsing.
1896 Also fix converting from invariant strings in a culture-aware
1897 environment (e.g. in a page that uses Culture="auto") during the
1900 2007-02-12 Marek Habersack <grendello@gmail.com>
1902 * PreservationFile.cs: Support preservation (assembly mapping)
1903 files (the ones with .compiled extension in the ASP.NET temporary
1904 directory). This one implements a loader/saver class.
1906 * AppResourcesCompiler.cs: support for assembly name mapping.
1908 * AppCodeCompiler.cs: support for assembly name mapping.
1910 2007-02-08 Marek Habersack <grendello@gmail.com>
1912 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
1914 * AspComponentFoundry.cs: Avoid duplicate control registration
1917 * ResourceExpressionBuilder.cs: Make sure all the global resources
1918 are looked up using the "Resources." prefix.
1920 * AppResourcesCompiler.cs: Make sure all the global resources are
1921 embedded with the "Resources." prefix.
1923 2007-02-02 Marek Habersack <grendello@gmail.com>
1925 * AspGenerator.cs: Move the cache insert code to a separate method, for
1926 use from other places.
1928 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
1929 defer their compilation to the moment when they are actually requested.
1931 2007-01-22 Marek Habersack <grendello@gmail.com>
1933 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
1935 2007-01-20 Miguel de Icaza <miguel@novell.com>
1937 * ClientBuildManager.cs: Remove unused variable (this could be a
1938 real problem, we never use the appPhysicalTargetDir)
1940 * AssemblyBuilder.cs: Remove unused field.
1942 * AppResourceFilesCollection.cs: Remove unused field.
1944 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
1947 * AppResourcesCompiler.cs: Remove unused variable.
1949 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
1952 * PageCompiler.cs: Put InternalCreatePageProperty inside the
1953 NET_2_0 block to eliminate warnings.
1955 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
1957 * BaseCompiler.cs: Fixed build on 1.0 profile.
1959 2007-01-20 Marek Habersack <grendello@gmail.com>
1961 * BaseCompiler.cs: If the control base type is in the root
1962 namespace, make sure global:: is prepended to it.
1964 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
1965 mark it as such in the generated code as well.
1967 * AppCodeCompiler.cs: Include debug information if configured in
1968 web.config. Fixes bug #80096.
1970 2007-01-17 Marek Habersack <grendello@gmail.com>
1972 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
1973 App_GlobalResources) when compiling App_Code sources.
1975 * CachingCompiler.cs: Reference toplevel assemblies when compiling
1978 * AppResourcesCompiler.cs: Close the streams properly.
1980 * AspGenerator.cs: Don't ignore thead/tbody anymore.
1982 2007-01-15 Marek Habersack <grendello@gmail.com>
1984 * WsdlBuildProvider.cs: New build provider for WSDL files.
1985 Compile only when System.Web.Services are present.
1987 * TemplateControlCompiler.cs: Forgotten in the previous commit -
1988 don't pass the current culture to GetLocalResourceObject, let the
1989 method figure it out on its own.
1991 2007-01-05 Marek Habersack <grendello@gmail.com>
1993 * AppResourceFilesCollection.cs: new class to keep and manage
1994 collection of resource files for the App_{Global,Local}Resources
1997 * TemplateControlCompiler.cs: rely on
1998 HttpContext.GetLocalResourceObject to select the correct culture.
2000 * AppResourceFileInfo.cs: new class for keeping resource files
2003 * AppResourcesCompiler.cs: new implementation.
2005 2006-12-20 Marek Habersack <grendello@gmail.com>
2007 * AssemblyBuilder.cs: add an internal version of the
2008 AddCodeCompileUnit method.
2010 * AppCodeCompiler.cs: implement support for ProfileCommon
2011 generation from properties named in the <profile> element in
2014 * PageCompiler.cs: create the Profile property in 2.0 code.
2016 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
2018 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
2020 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
2022 * ThemeDirectoryCompiler.cs: refactoring.
2024 2006-11-28 Marek Habersack <grendello@gmail.com>
2026 * BuildManager.cs: Add an internal property to signal whether or
2027 not we have any resources from App_{Global,Local}Resources
2029 * AspGenerator.cs: Register controls from
2030 system.web/pages/controls collection before parsing.
2032 * AppResourcesCompiler.cs: Let the build process know if we have
2033 compiled any resources from App_{Global,Local}Resources
2035 2006-11-27 Marek Habersack <grendello@gmail.com>
2037 * CachingCompiler.cs: Automatically reference App_Code
2040 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
2043 2006-11-25 Marek Habersack <grendello@gmail.com>
2045 * AppResourcesCompiler.cs: small optimizations.
2047 * AppResourceFilesCompiler.cs: small optimizations.
2049 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2051 * WebServiceCompiler.cs: add the type to the cache after getting it
2052 from the compiled assembly.
2054 2006-11-20 Marek Habersack <grendello@gmail.com>
2056 * AppCodeCompiler.cs: Reference assemblies listed in
2057 system.web/compilation/assemblies.
2058 Don't create empty assemblies.
2060 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
2062 * TemplateControlCompiler.cs: fixed:
2063 When <%# Bind(...) %>-expression is used more then once for same control
2064 The variable associated with this control is declared only once.
2066 2006-11-18 Marek Habersack <grendello@gmail.com>
2068 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
2069 files with names like File.resources or File.resx are found in the
2070 resource directories.
2072 2006-11-16 Marek Habersack <grendello@gmail.com>
2074 * ForceCopyBuildProvider.cs: Added the build provider for
2077 * MasterPageBuildProvider.cs: Added the build provider for Master
2080 * IgnoreFileBuildProvider.cs: Make the class sealed.
2082 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
2083 correctly uses the BuildProviderCollection to retrieve the
2084 appropriate builder and maps the physical input file path into
2085 application relative path when setting the virtual path of the
2088 2006-11-13 Marek Habersack <grendello@gmail.com>
2090 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
2091 constructor with just the CodeDomProvider argument. CreateCodeFile
2092 now uses the code provider's file extension. Added internal method
2093 to add pre-generated source code files. Added a BuildAssembly
2094 overload that takes no virtual path as the
2095 parameter. BuildAssembly now uses an array of source files instead
2096 of compile units and also handles embedded resources and
2097 referenced assemblies. BuildAssembly deletes the temporary files
2098 if MONO_ASPNET_NODELET isn't set in the environment.
2100 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
2101 creation. Use the build providers collection to build unknown
2102 files in App_Code. Use AssemblyBuilder to compile the assembly.
2104 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
2105 temporary file creation.
2107 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
2110 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
2113 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
2116 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
2119 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
2122 2006-11-08 Marek Habersack <grendello@gmail.com>
2124 * BuildProvider.cs: Implemented the GetCustomString
2125 method. Removed the necessity to retrieve the CompilationSection
2126 twice when GetDefaultCompilerType is called.
2128 * AppResourcesCompiler.cs: Added resource compiler results
2131 * AppCodeCompiler.cs: The App_Code compiler classes
2133 * BuildManager.cs: Implement the CodeAssemblies property.
2134 Added an internal TopLevelTypes property to be used in the custom
2135 GetType methods. Implemented the GetCompiledCustomString method.
2136 Implemented the GetType method overloads. Implemented the
2137 GetVirtualPathDependencies method.
2139 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
2141 2006-10-18 Marek Habersack <grendello@gmail.com>
2143 * TemplateControlCompiler.cs: add support for resource
2144 expressions in tag attributes.
2146 * ResourceExpressionBuilder.cs: add support for resource
2147 expressions in tag attributes.
2149 * BaseCompiler.cs: add global/local resource assemblies to
2150 compilation references, if present.
2152 * AppResourcesCompiler.cs: global/local resources compiler.
2154 * AppResourceFilesCompiler.cs: compiler of resource files.
2156 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
2158 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
2159 At run time, the Bind method calls the Eval method, if there is DataItem
2161 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
2162 method don't raise exception and works properly to extract data from
2163 bounded controls on postback.
2165 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2167 * AspGenerator.cs: if we are tracking non-server tags for
2168 well-formedness, handle tags that do not need to be closed (br, img,...)
2171 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2173 * PageCompiler.cs: support the EnableEventValidation attribute.
2175 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2177 * AspGenerator.cs: after parsing an include file, don't error out if we
2178 still have opened tags unless this was the last file to parse. Fixes
2181 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
2183 * ParseException.cs: Ensure the source file stream is closed.
2185 2006-08-25 Kornél Pál <kornelpal@gmail.com>
2187 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
2188 * ConnectionStringsExpressionBuilder.cs: Use name reference
2190 * ResourceExpressionBuilder.cs: Use assembly name constants.
2192 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
2194 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
2196 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2198 * ClientBuildManager.cs: handle domain shutdown and unload.
2199 Implemented some properties. Commented.
2201 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
2203 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
2205 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
2207 * added ThemeDirectoryCompiler.jvm.cs
2209 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2211 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
2212 the property Items does not exist. Patch by Marek Habersack that fixes
2215 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 * TemplateControlCompiler.cs: support assigning nullable types.
2218 Patch by Marek Habersack that fixes bug #78970.
2220 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2222 * TemplateControlCompiler.cs: make password work again.
2224 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
2226 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2227 MS.NET handles nested quotes differently for server controls and
2228 for "normal" controls. Add a property "AlternatingQuotes" to the
2229 tokenizer and let the parser decide whether it is well-formed or not.
2231 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
2233 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
2234 UrlPropertyAttribute.
2236 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
2238 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
2239 generating code for assignment statement and DataBind event.
2241 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
2243 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2244 Don't allow an attribute value to contain the same quote characters
2245 as the ones used for delimiting the value itself. Add a token
2246 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
2248 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
2250 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
2252 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
2254 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
2256 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
2258 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
2259 array of style sheets from the parser
2260 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
2261 put them in LinkedStyleSheets of PageThemeParser
2263 2006-04-20 Chris Toshok <toshok@ximian.com>
2265 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
2266 names in the case where you use "NS.ClassName" in the Inherits
2267 attribute. Fixes bug #78135.
2269 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2271 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
2272 already acquired the lock even when we might have not created the 'key'
2273 to the compilation ticket.
2275 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
2277 * ThemeDirectoryCompiler.cs: add to the directory parser all the
2278 assemblies found by PageThemeFileParsers
2280 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
2282 * TemplateControlCompiler.cs: Properly read all content of
2285 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
2287 * TemplateControlCompiler.cs : fix for partial parsers
2289 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
2291 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
2294 2006-04-08 Miguel de Icaza <miguel@novell.com>
2296 * TemplateControlCompiler.cs: An attempt to fix the regression
2297 introduced in r58505 (a bug fix for 77762). This was reported in
2298 the mailing list with a batch of new 2.0 failures.
2300 We really need a test suite in NUnit to check on ASP.NET aspx
2303 2006-03-27 Robert Jordan <robertj@gmx.net>
2305 * CachingCompiler.cs: change the compilation locking scheme
2306 from "one mcs per process" to "one mcs per file".
2308 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2310 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
2311 StringPropertyBuilder.
2313 2006-03-24 Chris Toshok <toshok@ximian.com>
2315 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
2316 if system.web/compilation doesn't list a compiler for our
2319 2006-03-13 Chris Toshok <toshok@ximian.com>
2321 * TemplateControlCompiler.cs (InitMethod): when generating the
2322 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
2323 argument to it. Only do that if the class we're compiling is
2324 actually a subclass of Page. If it's not, pass this.Page.
2326 2006-03-07 Chris Toshok <toshok@ximian.com>
2328 * AspGenerator.cs: refactor the parsing code so that we can
2329 initiate parsing from outside this class.
2331 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
2332 method, add our StyleSheetTheme assignment here.
2333 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
2336 * TemplateControlCompiler.cs (EnsureID): make protected.
2337 (CreateAssignStatementsFromAttributes): same
2338 (AddChildCall): same.
2339 (CreateControlTree): same.
2340 (CreateFrameworkInitializeMethod): change
2341 "AddStatementsToFrameworkInitialize" to
2342 "AppendStatementsToFrameworkInitialize", and add call to
2343 "PrependStatementsToFrameworkInitialize" before the generation of
2344 "base.FrameworkInitialize()."
2346 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
2348 2006-03-07 Chris Toshok <toshok@ximian.com>
2350 * ThemeDirectoryCompiler.cs: new file.
2352 * PageThemeCompiler.cs: new file.
2354 2006-03-07 Chris Toshok <toshok@ximian.com>
2356 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
2357 (Init): move the CreateMethods call here.
2359 2006-03-02 Chris Toshok <toshok@ximian.com>
2361 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
2362 SkinID just after the creation of our object, and right after that
2363 call "_ctrl.ApplyStyleSheetSkin (page)".
2364 (CreateAssignStatementsFromAttributes): split out the majority of
2365 this code to CreateAssignStatementFromAttribute, and change this
2366 method to simply a loop over the attribute keys. In the 2.0 case,
2367 skip the SkinID property, since that's handled explicitly in
2370 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
2371 for Theme and StyleSheetTheme.
2373 2006-02-23 Chris Toshok <toshok@ximian.com>
2375 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
2376 change from ContentControlBuilderInternal to
2377 ContentBuilderInternal.
2378 (AddCodeRender): same.
2380 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2382 * AssemblyBuilder.cs:
2383 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
2384 GetGeneratedType() on the BuildProvider instead of loading the assembly
2385 and trying a wild guess at the type name.
2387 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2389 * GlobalAsaxCompiler.cs:
2391 * TemplateControlCompiler.cs: CreateMethods is now internal.
2393 * WebServiceBuildProvider.cs:
2394 * PageBuildProvider.cs:
2395 * UserControlBuildProvider.cs:
2396 * WebHandlerBuildProvider.cs: new build providers.
2398 * BuildProvider.cs: add assemblies.
2400 * BaseCompiler.cs: expose the provider and the compile unit through
2403 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2405 * CompilerType.cs: implemented.
2407 * AssemblyBuilder.cs: implemented most of it.
2409 * WebServiceCompiler.cs:
2410 * CachingCompiler.cs: update 2.0 compiler instance creation code.
2412 * ClientBuildManager.cs: implemented some of its methods. Not yet
2415 * BuildManager.cs: the more interesting methods are implemented now.
2417 * BaseCompiler.cs: delete the temporary files in case of error.
2419 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
2421 2006-02-07 Chris Toshok <toshok@ximian.com>
2423 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
2424 calls to AddParsedSubObject to a special statement collection --
2425 builder.flushOutputStatements -- not to builder.method.Statements.
2426 (InitMethod): initially, set flushOutputStatements to
2427 method.Statements. If we're dealing with a ContentPlaceHolder,
2428 set flushOutputStatements to be the else block of a conditional we
2429 create. This causes the compiled control to fall back to the
2430 ContentPlaceHolder's child controls in case there's no
2431 corresponding Content template.
2432 (AddChildCall): use methodStatements instead of method.Statements.
2433 (CreateControlTree): same.
2435 * PageCompiler.cs (CreatePropertyAssign): factor out the
2436 string,string implementation and add one that also takes a
2437 CodeExpression; make the string,string implementation call the
2438 three arg one with thisRef.
2439 (AddStatementsToInitMethod): make use of the 3-arg form of
2440 CreatePropertyAssign to reduce code. Also, add support for
2441 setting the page's Title from the parser's Title.
2443 2006-02-07 Chris Toshok <toshok@ximian.com>
2445 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
2446 assign __ctrl.MasterPageFile to our master page, if we have one.
2448 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
2449 assignment from here.
2450 (AddStatementsToInitMethod): and move it here.
2452 * TemplateControlCompiler.cs (InitMethod): in the case where
2453 builder is a RootBuilder (we're building the __BuildControlTree
2454 method), call a virtual method so that subclasses can add their
2455 own statements to the method (used by both Page and MasterPage);
2456 Also, in the RootBuilder case, the argument should be the
2457 parser.ClassName type (the class we're building); lastly, expand
2458 the ContentPlaceHolder logic to include all the
2459 ContentTemplates/InstantiateIn magic.
2460 (AddStatementsToInitMethod): empty virtual method.
2461 (AddContentTemplateInvocation): ContentControlBuilder ->
2462 ContentControlBuilderInternal.
2463 (CreateControlTree): same.
2464 (CallBaseFrameworkInitialize): new function, create call to
2465 base.FrameworkInitialize.
2466 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
2468 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470 * IgnoreFileBuildProvider.cs: it's not public.
2471 * BuildProvider.cs: mostly implemented.
2473 2006-02-01 Chris Toshok <toshok@ximian.com>
2475 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
2476 GetSection instead of GetWebApplicationSection.
2478 * CachingCompiler.cs: same.
2480 * AspGenerator.cs: same.
2482 * BaseCompiler.cs: same.
2484 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2486 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
2488 2006-01-22 Chris Toshok <toshok@ximian.com>
2490 * IgnoreFileBuildProvider.cs: build provider which does nothing.
2492 2006-01-22 Chris Toshok <toshok@ximian.com>
2494 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
2495 Hashtable ctor to silence a couple of warning.
2496 (CompoundFoundry.ctor): same
2498 * Directive.cs (InitHash): use a 2.0 friendly form of the
2499 Hashtable ctor to silence a couple of warning.
2501 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
2502 Hashtable ctor to silence a warning.
2503 (GetDictionary): same.
2505 2006-01-22 Chris Toshok <toshok@ximian.com>
2507 * AppSettingsExpressionBuilder.cs: implement this, patterning it
2508 after an example on msdn. Also, enable the ExpressionEditor
2509 attribute, but use the string rather than the Type overload so we
2510 won't have yet another circular dep.
2512 * ConnectionStringsExpressionBuilder.cs: partial implementation.
2513 Same deal with the ExpressionEditor attribute.
2515 * ResourceExpressionBuilder.cs: same deal with the
2516 ExpressionEditor attribute.
2518 2006-01-20 Chris Toshok <toshok@ximian.com>
2520 * ResourceExpressionBuilder.cs (ParseExpression): implement.
2522 * ResourceExpressionFields.cs: implement.
2524 2006-01-20 Chris Toshok <toshok@ximian.com>
2526 * ClientBuildManagerParameter.cs: implement.
2528 * ClientBuildManagerCallback.cs: this class contains an empty
2529 default implementation.
2531 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2533 * AspGenerator.cs: add support for 'src' in <script runat="server">.
2536 2006-01-04 Chris Toshok <toshok@ximian.com>
2538 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
2541 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
2543 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2545 * AspGenerator.cs: fix yesterday's fix.
2547 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2549 * AspGenerator.cs: only do special processing for <script> if it has
2550 the runat="server" attribute. Fixes bug #76918.
2552 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2554 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
2557 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2559 * TemplateControlCompiler.cs: handle data bound attributes for html
2560 controls. Fixes bug #76785.
2562 2005-11-28 Chris Toshok <toshok@ximian.com>
2564 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
2566 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
2568 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2570 * WebServiceCompiler.cs: fixed caching for web handlers.
2572 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2574 * AspParser.cs: don't change case for verbatim IDs.
2577 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2579 * AspParser.cs: when processing verbatim input, throw if we reach EOF
2580 before the expected end of the data.
2582 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2584 * CachingCompiler.cs:
2585 * WebServiceCompiler.cs: when caching a type loaded from an assembly
2586 that we didn't compile, make it depend on the file itself, not on a
2587 non-existing cache key. This problem affected performance of web
2588 services and .ashx, making unnecessary extra calls to LoadFrom every
2589 time the cache was cleared.
2591 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2593 * BaseCompiler.cs: set the domain's DynamicBase property instead of
2594 guessing it in BaseCompiler.
2596 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2598 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
2599 75146 for pages/controls.
2601 2005-08-09 Miguel de Icaza <miguel@novell.com>
2603 * WebServiceCompiler.cs: Use the new DynamicDir method.
2605 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
2606 since this value is null most of the time, compute the real value.
2608 Added Bonus: if the directory has some kind of permission problem,
2609 try a different directory name.
2611 2005-07-13 Miguel de Icaza <miguel@novell.com>
2613 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
2614 BaseParser.Context for the context.
2616 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2620 * TemplateControlCompiler.cs: use invariant culture versions of starts/
2623 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2625 * TemplateControlCompiler.cs: comparison between member name and the
2626 first part of the id provided by the user should also be
2627 case-insensitive. Fixes bug #75379.
2629 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2631 * CachingCompiler.cs: use cache.InsertPrivate.
2632 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
2635 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2637 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2638 as all the others, when compiling an assembly from a Src file. Fixes
2641 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2643 * TemplateControlCompiler.cs: if the property is not found, don't forget
2644 about trying the field.
2646 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
2648 * Directive.cs: Register the MasterType directive.
2649 * PageCompiler.cs: If a MasterType is specified, add a type specific
2650 Master property. All this fixes bug #75192.
2652 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2654 * TemplateControlCompiler.cs: when mapping an attribute name to a field
2655 or property name, there's no need to try with every property and field,
2656 but just the one found when searching by name (no case). There was one
2657 call to ProcessPropertiesAndFields per property or field until found,
2658 now only one if the property/field is found, none otherwise.
2660 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2662 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
2663 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
2666 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
2669 the assembly file there and be able to load it. Thanks to Rogerio and
2672 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2674 * AspParser.cs: InvariantCulture love.
2676 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2678 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
2679 as the one in Master is protected. Fixes bug #75157.
2681 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2683 * AspComponentFoundry.cs: tagnames have precedence over types in
2684 assemblies when they use the same prefix. Fixes bug #71855.
2686 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
2688 * WebServiceCompiler.cs: Create the temp directory before
2689 creating the web service source code file.
2691 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2693 * AspGenerator.cs: when checking languages, try to match other aliases
2694 too (ie, 'cs' == 'c#').
2696 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2698 * BaseCompiler.cs: check that DynamicBase directory exists before
2699 creating the TempFileCollection.
2701 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2703 * AspGenerator.cs: use a stack for non-server tags even before getting
2704 to a form. Fixes bug #70274.
2706 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2708 * AspParser.cs: don't error out on ill formed tags if it's not a server
2709 tag (ie, allow something like '<table align="left cellpadding="0">' to
2710 work, as MS does. Fixes bug #67909.
2712 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
2713 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
2714 @Page/@Control directives to CodeDOM (VB.NET support)
2716 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
2718 * AspParser.cs: Fixed parsing of data binding tags in server
2719 tag attributes. Allow <%...%> blocks not assigned to
2720 attributes in client tags.
2721 * TagAttributes.cs: Make sure that data binding blocks in server
2722 tags are always assigned to attributes.
2724 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
2726 * TemplateControlCompiler.cs: Implemented support for two-way
2729 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
2731 * TemplateControlCompiler.cs: Use the new BindingContainerType
2732 property to find the type of the binding container.
2734 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
2736 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
2737 for primitive types. Parse an empty color string as Color.Empty.
2738 Get the converter for a property using its PropertyDescriptor.
2740 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
2742 * TemplateControlCompiler.cs: Don't autogenerate IDs for
2743 controls inside Content template.
2745 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2747 * TemplateControlCompiler.cs: make typedesc.aspx work again.
2749 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2751 * ExpressionBuilderContext.cs:
2752 * ExpressionBuilder.cs: implemented.
2754 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2756 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
2758 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
2760 * TemplateControlCompiler.cs: When generating a property value,
2761 check for TypeConverterAttribute in the PropertyInfo, not only in the
2763 Implemented code generation using InstanceDescriptor, when the type
2764 converter supports conversion to that type.
2766 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
2768 * Directive.cs: Added MASTER directive.
2769 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
2770 * PageCompiler.cs: Set the master file name when generating the page.
2771 * TemplateControlCompiler.cs: When generating the method for a
2772 content holder, register the content holder in the base MasterPage.
2773 Added method for registering a Content control for a MasterPage.
2774 Generate code for Content controls.
2776 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
2778 * TemplateControlCompiler.cs: Get the container type from the
2779 template (if it was defined using TemplateContainerAttribute.
2781 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2783 * AspGenerator.cs: correctly process script tags that self-closing.
2786 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2788 * CachingCompiler.cs: when compiling a single .cs file, add the file
2789 itself to dependencies. Fixes bug #68788.
2791 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2793 * ControlBuilder.cs: don't close server tags when we get to a closing
2794 tag that is not applied to a server control. Fixes bug #60323.
2796 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2798 * WebServiceCompiler.cs: fix buglet in my last commit.
2800 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2803 * CachingCompiler.cs:
2804 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
2805 for ashx/asmx. Otherwise we need to open the file and check for the
2806 class name in there. Thanks to Ben for pointing this out.
2808 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2811 * AspTokenizer.cs: prevent quotes from being swallowed when we're
2812 inside a server tag and they are the next non-whitespace character.
2815 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2817 * CachingCompiler.cs: don't try to watch for changes in system
2818 assemblies. Fixes bug #64871.
2820 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2822 * AspGenerator.cs: handle builders that need to process inner text
2825 * Location.cs: added setters for the properties.
2827 2004-08-02 Duncan Mak <duncan@ximian.com>
2829 * BuildProviderResultFlags.cs:
2830 * IImplicitResourceProvider.cs:
2831 * ImplicitResourceKey.cs:
2832 * IResourceReader.cs: Added.
2834 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2836 * AspGenerator.cs: the path for file was treated as virtual, but it's
2837 physical. Fixes bug #61524.
2839 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2841 * AspParser.cs: fixed case-sensitivity issues with #include and its
2842 attributes. Closes #61429.
2844 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2847 * WebServiceCompiler.cs: really create the dlls under DynamicBase
2849 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2851 * TemplateControlCompiler.cs: for system colors, use SystemColors class
2852 instead of Color. Fixes bug #60249.
2854 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2856 * BaseCompiler.cs: try getting the Type from the cache before doing the
2857 real work. Remove temporary files right after successful compilation.
2859 * CachingCompiler.cs: added GetTypeFromCache.
2861 * UserControlCompiler.cs: nothing interesting.
2863 * WebServiceCompiler.cs: try getting the Type from the cache before
2864 doing anything else. Remove temp files on sucessful compilation.
2866 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2869 * CachingCompiler.cs: use a different prefix when caching compiler
2872 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2874 * BaseCompiler.cs: dynamicBase is now protected. Check
2875 MONO_ASPNET_NODELETE here.
2877 * TemplateControlCompiler.cs: if the type is not known but has a
2878 TypeConverter, invoke ConvertFromString in the generated code.
2880 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
2881 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
2883 * CachingCompiler.cs: updated compilation of web services and simple
2886 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2888 * CSCompiler.cs: removed.
2890 * CachingCompiler.cs: language independent compilation for single files.
2892 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2895 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
2896 * CachingCompiler.cs: use HttpRuntime.Cache.
2898 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2900 * PageCompiler.cs: fixed Trace and add support for Buffer.
2902 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2904 * PageCompiler.cs: override CreateConstructor to add assignment for
2907 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2909 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
2910 of CodeObjectCreateExpression for the render method delegate. Thanks
2913 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2915 * BaseCompiler.cs: use DynamicBase for the output assemblies.
2917 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2919 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
2921 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2923 * AspParser.cs: indent a few lines.
2924 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
2925 attribute value. This way we can simulate reading 2 characters ahead
2926 (one in ungetc and the other in Peek) and work with values like
2927 text/javascript. Fixes bug #57302.
2929 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2931 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
2933 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
2935 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
2937 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2939 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
2941 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2943 * AspGenerator.cs: error out when <object> server tag is not closed.
2944 Ignore any content inside it.
2946 2004-02-10 Jackson Harper <jackson@ximian.com>
2948 * AspTokenizer.cs: Collect discarded characters that might be used
2949 in client side scripts. Patch by Liyu Liu.
2950 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
2952 2004-02-10 Jackson Harper <jackson@ximian.com>
2954 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
2957 2004-01-30 Jackson Harper <jackson@ximian.com>
2959 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
2960 the build method takes strings not ints.
2962 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2964 * AspGenerator.cs: handle more possible errors in global.asax file.
2966 * BaseCompiler.cs: added utility methods for creating <object> related
2967 properties and fields.
2969 * GlobalAsaxCompiler.cs: keep around applications and session scope
2970 objects builders. Also a list of imports and assemblies added in
2973 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
2975 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2977 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
2978 pages more than once. Thanks to Eric Lindvall for pointing this out.
2980 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2982 * TemplateControlCompiler.cs: allow handling subproperties for other
2983 types than Style and Font. Fixes bug #53217.
2985 2004-01-16 Jackson Harper <jackson@ximian.com>
2987 * TagAttribute.cs: attributes can be stored as encoded html so we
2990 2004-01-14 Jackson Harper <jackson@ximian.com>
2992 * TemplateControlCompiler.cs: Is a user control is cached and
2993 shared use the controls type hashcode for the GUID so it will be
2994 the same across instances.
2996 2004-01-13 Jackson Harper <jackson@ximian.com>
2998 * TemplateControlCompiler.cs: If an item has the partial caching
2999 attribute build a PartialCachingControl in the parents __Build method.
3000 * BaseCompiler.cs: Add a method for adding class attributes to the
3002 * UserControlCompiler.cs: If caching is enabled on a user control
3003 add the PartialCachingAttribute to it.
3005 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3007 * PageCompiler.cs: invoke Request.ValidateInput if required.
3009 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3011 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
3012 #52521. Patch by liyul@hotmail.com.
3014 2003-12-25 Jackson Harper <jackson@ximian.com>
3016 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
3019 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3021 * PageCompiler.cs: assign the ErrorPage property if provided.
3023 2003-12-15 Jackson Harper <jackson@ximian.com>
3025 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
3026 method if they are set.
3028 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3030 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
3031 fail when runat="server" is applied to <tbody> with a parse error
3032 instead of waiting for a compilation error. Fixes bug #52157.
3034 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3036 * AspGenerator.cs: basic checking of ID validity. Throw a
3037 ParseException when mixing languages.
3039 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3041 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
3042 FrameworInitialize() if provided in @Page.
3046 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3048 * TemplateControlCompiler.cs: support for expressions of
3049 System.Drawing.Size type. Allow getting Color from comma separated
3050 numbers, which is not allowed by ColorConverter.
3052 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
3054 2003-11-13 Jackson Harper <jackson@ximian.com>
3056 * PageCompiler.cs: Call InitOutputCache when the OutputCache
3059 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3061 * AspGenerator.cs: use fileEncoding from configuration files.
3063 * PageCompiler.cs: add assign statements for ContentType,
3064 ResponseEncoding and CodePage if supplied.
3066 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3068 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
3069 a return statement for user controls with 'void' return type.
3071 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3073 * AspParser.cs: fixed bug #49627.
3075 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3077 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
3079 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3081 * Directive.cs: new attribute for @Page directive in 1.1.
3083 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3086 * TagAttributes.cs: allow duplicated runat=server attributes and display
3087 error page when duplicated attributes and runat is specified.
3089 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3091 * AspTokenizer.cs: moved token numbers above unicode.
3093 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3095 * AspGenerator.cs: don't process code render tags inside scripts. Check
3096 the language of the script and treat javascript as verbatim input.
3099 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3101 * TemplateControlCompiler.cs: fixed bug #48212.
3103 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3105 * WebServiceCompiler.cs: remove the temporary files here too.
3107 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3109 * AspGenerator.cs: fixed bug #46429.
3111 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3113 * Directive.cs: support @WebHandler.
3115 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3117 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
3119 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3121 * BaseCompiler.cs: first look for cached items, then generate the tree.
3122 This should speed things up.
3124 * CachingCompiler.cs: when compiling web services, use the full path of
3125 the .asmx file as key when caching.
3127 * WebServiceCompiler.cs: first look for cached items, then generate
3130 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3132 * AspParser.cs: more useful error information,
3135 * CachingCompiler.cs: honor the debug="true" option.
3137 * TemplateControlCompiler.cs: small fixes for templates.
3139 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3141 * BaseCompiler.cs: made Compiler property virtual.
3143 * CachingCompiler.cs: added support for compiling web services.
3145 * WebServiceCompiler.cs: implemented.
3147 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3149 * CachingCompiler.cs: fixed bug #43477.
3151 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3154 * AspTokenizer.cs: fixed bugs #43206 and #43371.
3156 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3158 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
3159 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
3162 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3164 * CompilationException.cs: don't add duplicated lines in the case that
3165 mcs reports several errors for the same one.
3167 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3169 * AspGenerator.cs: fully support including files, ie., treat them just
3170 as C treats #includes.
3172 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3176 * TagType.cs: Added support for server side includes.
3178 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3180 * CSCompiler.cs: actually add the list of referenced assemblies to the
3181 compiler options. Throw a CompilationException if there's an error.
3183 * CachingCompiler.cs: added a method to compile directly from a source
3186 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3188 * AspGenerator.cs: copy the location before setting the value for the
3191 * BaseCompiler.cs: changed parameters for CompilationException.
3193 * CompilationException.cs: it takes now line numbers and error
3194 descriptions from the CompilerErrorCollection.
3196 * Location.cs: used when a copy of an ILocation is needed.
3198 * ParseException.cs: implemented new methods to provide line numbers
3201 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
3203 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3205 * AspGenerator.cs: also support data bind syntax inside tags not
3206 processed as controls. Added debugging method.
3208 * TemplateControlCompiler.cs: reset the number of data binding handlers
3209 in the proper place. Small fix when getting the container type.
3211 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3213 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
3216 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3218 * AspGenerator.cs: handle code render syntax in tag attributes.
3220 * AspParser.cs: the constructor now takes a TextReader.
3222 * TemplateControlCompiler.cs: removed comment.
3224 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3226 * TemplateControlCompiler.cs: added support for data bound properties.
3228 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3230 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
3231 instead of their names.
3233 * AspElements.cs: removed. No longer needed.
3235 * AspGenerator.cs: this file is now in charge of interfacing between
3236 the parser and the compiler. It manages the creation of the
3237 ControlBuilder tree and the compilation of the CodeDOM tree.
3239 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
3240 of different Types, tags are just and id and a set of attributes.
3241 Implement ILocation interface.
3243 * AspTokenizer.cs: added a few methods to help the parser implementing
3246 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
3247 common to appliaction, page and user control, including the actual
3248 compilation and error handling.
3250 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
3252 * CachingCompiler.cs: simplified to use the new interfaces.
3254 * CompilationException.cs: it's now using CompilationResult to report
3257 * CompilationResult.cs: Removed file.
3259 * Directive.cs: to check for the validity of a directive.
3261 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
3264 * ILocation.cs: interface used to now the exact place where a parse
3267 * PageCompiler.cs: generates a couple of methods that are only used in
3270 * ParseException.cs: use the ILocation interface.
3272 * TagAttributes.cs: handles the attributes of the tags parsed.
3274 * TagType.cs: an enum for the different kinds of tags.
3276 * TemplateControlCompiler.cs: this is the one that does most of the
3277 conversion from teh ControlBuilder tree into a CodeDOM tree.
3279 * UserControlCompiler.cs: simplified as most of the work is done in
3282 * WebServiceCompiler.cs: dummy.
3284 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3286 * AspComponentFoundry.cs: added GetComponentType method.
3288 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3290 * AspTokenizer.cs: allow quotes inside server tags that are part of
3293 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
3296 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3298 * AspGenerator.cs: generate correct appbase path. It was working with
3299 mcs but not with csc.
3301 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
3303 * CachingCompiler.cs: quote source file.
3305 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3307 * AspGenerator.cs: now the Inherits attribute works as expected for
3310 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3312 * CompilationException.cs:
3313 * ParseException.cs: display the correct line number in error messages.
3315 * AspElements.cs: added TargetSchema attribute for control. It's
3318 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3320 * BaseCompiler.cs: fixed the hack to work under windows.
3321 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
3323 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3325 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
3327 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
3329 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
3330 app's private bin path
3332 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3336 * CachingCompiler.cs:
3337 * CompilationResult.cs:
3338 * GlobalAsaxCompiler.cs:
3340 * UserControlCompiler.cs: recompile the page if dependencies change.
3342 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3344 * AspGenerator.cs: corrected typo and wrong fix.
3346 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3348 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
3349 when used explicitly.
3351 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3353 * AspElements.cs: get the property Type for controls that use
3354 ParseChildren with a property name.
3356 * AspGenerator.cs: generate correct signature for the method that
3357 adds controls to the default property in ParseChildren.
3359 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3361 * AspGenerator.cs: rethrow exceptions that may come from parsing or
3362 compilation if a user control.
3364 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3366 * AspGenerator.cs: throw ParseException on parse
3369 * AspParser.cs: added Line and Column props.
3371 * CompilationException.cs: derives now from HtmlizedException.
3373 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
3375 * GlobalAsaxCompiler.cs:
3377 * UserControlCompiler.cs: pass the file name in the CompilationResult.
3379 * ParseException.cs: new exception.
3382 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3384 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
3387 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3389 * AspParser.cs: the parser fires events when it parses an element.
3391 * GlobalAsaxCompiler.cs:
3393 * UserControlCompiler.cs:
3394 * AspElements.cs: modified to use the new parser interface.
3396 * AspGenerator.cs: modified to use the new parser. Merge multiple text
3397 strings into one single LiteralControl.
3399 * AspTokenizer.cs: added Line and Column properties.
3401 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3403 * AspParser.cs: fixed bug #36929.
3405 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
3409 * CachingCompiler.cs: changes to work around spaces and
3410 directory-separators in the local filesystem.
3412 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3414 * AspGenerator.cs: make the generated file compile with csc after last
3417 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3419 * AspGenerator.cs: removed unused variable. Added support for
3420 properties/fields of type string [].
3422 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3424 * AspGenerator.cs: modified loading of the parent type now that
3425 Type.GetType is fixed.
3427 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3429 * AspGenerator.cs: cast to Control if the container does not implement
3432 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3434 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
3436 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3438 * AspElements.cs: attributes without value lacked a space afterwards.
3440 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3442 * AspGenerator.cs: functions for columns don't return anything. Fixed
3445 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3447 * AspGenerator.cs: add data bound controls to code render function.
3449 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3451 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
3452 controls. You can register 1 assembly plus any number of user controls
3453 under the same prefix.
3455 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
3456 Hack to allow @Register access to assemblies in other places than bin
3459 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3461 * AspElements.cs: added 'codebehind' attribute for page, control and
3462 application. It's ignored by MS, but allowed. Fixed typo.
3464 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3466 * AspGenerator.cs: fixed EnableSesssionState handling.
3468 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3470 * AspGenerator.cs: don't generate instance fields for pages/controls
3471 when the base class specified in the Inherits attribute already has
3472 them. Closes bug #36262.
3474 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3476 * AspGenerator.cs: generate code like 'control.XXX = value' also for
3477 public fields (properties were being handled in that way too).
3479 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3481 * AspGenerator.cs: now it uses the current HttpContext when creating
3482 user controls. TemplateSourceDirectory is no longer a dummy value.
3484 * GlobalAsaxCompiler.cs:
3486 * UserControlCompiler.cs: set the context which will be used to locate
3489 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3491 * AspGenerator.cs: added support for AutoEventWireup attribute in
3494 * CompilationResult.cs:
3495 * GlobalAsaxCompiler.cs:
3497 * UserControlCompiler.cs: store the options.
3499 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3501 * AspElements.cs: new method Tag.GetElements
3502 used to parse the inner contents of a tag looking for data binding or
3505 New property HtmlControlTag.ParseChildren allows
3506 differentiation of a couple of HtmlControls that has children as
3507 properties (namely HtmlTable and HtmlTableRow).
3509 * AspGenerator.cs: fixed container semantics to
3510 match BindingContainer one. Implemented Inherits attribute for page and
3513 Support HtmlControls that has ChildrenAsProperties.
3515 Generate code for data binding functions that matches the semantic of
3518 Handle data bound and code render attribute values.
3520 Set proper value return for TemplateSourceDirectory. Should be relative
3523 * BaseCompiler.cs: moved CompilerOptions and
3524 References handling here.
3526 * CachingCompiler.cs: copy result of compilation.
3528 * CompilationException.cs: simple ToString () implementation.
3530 * CompilationResult.cs: implemented CopyFrom and ToString.
3532 * GlobalAsaxCompiler.cs:
3534 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
3535 in the base class. Get all the types in the generated assembly and
3536 look for one that derives from the correct Type.
3538 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3540 * AspElements.cs: added @Application directive.
3542 * AspGenerator.cs: make it work also with application files. We
3543 currently generate an extra private function.
3545 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3547 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
3548 exists, it will be compiled into an HttpApplication derived class
3549 (directly or through a user-provided class).
3551 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3553 * AspGenerator.cs: fixed target file name and generated class name.
3554 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
3556 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3558 * AspGenerator.cs: reworked user control
3559 compilation. Provide the options as a Hashtable for use in compilation.
3560 Create the user controls in the private bin path of the domain.
3562 * BaseCompiler.cs: base class for the various compiler types.
3564 * CachingCompiler.cs: actually executes mcs and do some poor caching
3565 (it will use Cache when finished).
3567 * CompilationException.cs: this exception has enough information to
3568 generate a nice error page.
3569 * CompilationResult.cs: used in caching.
3571 * PageCompiler.cs: now derives from BaseCompiler
3573 * TemplateFactory.cs: no longer needed.
3575 * UserControlCompiler.cs: new class used when compiling user controls.
3576 * WebServiceCompiler.cs: derives from BaseCompiler.
3578 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3580 * AspElements.cs: added ServerComment class.
3581 * AspParser.cs: ignore ServerComments tags. Remove server comments when
3586 * PageCompiler.cs: check if the type is already cached before generating
3588 * TemplateFactory.cs: if csFile parameter is null, only checks if we
3589 already have the page compiled.
3591 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3593 * AspGenerator.cs: undo one-liner change.
3595 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3597 * AspGenerator.cs: removed a few hacks no longer needed.
3599 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3601 * PageCompiler.cs: tracing.
3602 * TemplateFactory.cs: cache compiled types and tracing.
3603 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
3605 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3607 * AspComponentFoundry.cs: fixed typo.
3608 * TemplateFactory.cs: use csc style options.
3609 * AspGenerator.cs: don't use FileDependencies property of base class.
3611 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3613 * System.Web.Compilation/AspElements.cs:
3614 * System.Web.Compilation/AspGenerator.cs:
3615 * System.Web.Compilation/AspParser.cs:
3616 * System.Web.Compilation/PageCompiler.cs:
3617 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
3618 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
3620 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3622 * AspElements.cs: added WebService directive.
3623 * WebServiceCompiler.cs: New file.
3625 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3627 * PageCompiler.cs: fixed compilation.
3629 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3631 * PageCompiler.cs: generate C# file using AspGenerator.
3633 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3635 * AspComponentFoundry.cs: LookupFoundry now returns bool.
3636 * AspGenerator.cs: New file.
3638 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3640 * AspComponentFoundry.cs: New file.
3641 * AspElements.cs: renamed Component to Aspcomponent.
3643 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3650 * TemplateFactory.cs: first steps to move xsp into System.Web.