1 2010-07-16 Marek Habersack <mhabersack@novell.com>
3 * FolderLevelBuildProviderAppliesTo.cs,
4 FolderLevelBuildProviderAppliesToAttribute.cs: added
6 2010-07-02 Marek Habersack <mhabersack@novell.com>
8 * TemplateControlCompiler.cs: added support for ClientIDMode 4.0
11 * PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
12 must call the base implementation.
14 2010-06-15 Marek Habersack <mhabersack@novell.com>
16 * ResourceExpressionBuilder.cs: cast the return value of
17 GetLocalResourceObject to appropriate type. Fixes bug #607766
19 * TemplateControlCompiler.cs: made CreateConvertToCall internal
20 static, so that it can be used from ResourceExpressionBuilder
22 2010-06-05 Marek Habersack <mhabersack@novell.com>
24 * TemplateControlCompiler.cs: expression evaluation results are
25 wrapped in a Convert.ConvertTo* call or a typecast.
27 * RouteValueExpressionBuilder.cs: implemented
29 * RouteUrlExpressionBuilder.cs: added missing custom attributes
31 2010-06-01 Marek Habersack <mhabersack@novell.com>
33 * TemplateControlCompiler.cs: added new virtual method,
34 AddStatementsToInitMethodBottom and renamed
35 AddStatementsToInitMethod to AddStatementsToInitMethodTop.
37 * PageCompiler.cs: code to set Meta{Description,Keywords}
38 properties, if present.
40 2010-05-19 Marek Habersack <mhabersack@novell.com>
42 * TemplateControlCompiler.cs: IsDirective, IsExpression and
43 IsDataBound methods moved to System.Web.UI.BaseParser.
44 Made CompileExpression and GetFieldOrProperty methods internal.
46 * PageCompiler.cs: check several of the Page directive attributes
47 for expressions. Fixes bug #603532
49 * AspGenerator.cs, TagAttributes.cs: use IDictionary instead of
52 2010-05-17 Marek Habersack <mhabersack@novell.com>
54 * BuildProvider.cs: implemented a 4.0 method RegisterBuildProvider
56 * BuildManager.cs: separated dynamically registered assemblies
57 store from the referenced assemblies cache.
59 2010-05-16 Marek Habersack <mhabersack@novell.com>
61 * BuildManager.cs: do not cache referenced assemblies until it's
64 2010-05-15 Marek Habersack <mhabersack@novell.com>
66 * RouteValueExpressionBuilder.cs: added
68 * RouteUrlExpressionBuilder.cs: implemented
70 2010-05-12 Marek Habersack <mhabersack@novell.com>
72 * BuildManager.cs: implemented a 4.0 feature - pre-application
75 2010-05-07 Marek Habersack <mhabersack@novell.com>
77 * BuildManager.cs: implemented 4.0 methods {Create,Read}CacheFile.
78 Fixed signature of the GetVirtualPathDependencies method.
79 Implemented 4.0 methods GetGlobalAsaxType, AddReferencedAssembly,
80 GetObjectFactory, GetCachedBuildDependencySet and properties
81 BatchCompilationEnabled, TargetFramework
83 2010-04-29 Marek Habersack <mhabersack@novell.com>
85 * AppResourcesAssemblyBuilder.cs: when running on windows,
86 SetAlPath must return al.exe path with a trailing space, or
87 otherwise the process won't start. Fixes bug #600691
89 2010-04-12 Marek Habersack <mhabersack@novell.com>
91 * PageCompiler.cs: if EnableViewStateMac is set in the page
92 source, generate relevant code.
94 2010-03-17 Marek Habersack <mhabersack@novell.com>
96 * AspGenerator.cs, AspParser.cs, TemplateControlCompiler.cs, TagType.cs, CodeRenderBuilder.cs: implemented the new <%: %> 4.0 html-encoded code render expression.
98 2010-03-06 Marek Habersack <mhabersack@novell.com>
100 * TemplateControlCompiler.cs: AssignPropertyForResources localizes
101 a property even if the Localized attribute is absent. If the
102 attribute is present, it checks its IsLocalizable property to
103 decide if localization should be performed. Fixes bug #585933
105 2010-03-04 Marek Habersack <mhabersack@novell.com>
107 * BuildManager.cs: do less work in the static constructor
109 2010-02-27 Marek Habersack <mhabersack@novell.com>
111 * BuildManager.cs: count only builds of updated files before
112 unloading the app domain. Fixes bug #581459
114 2010-02-19 Marek Habersack <mhabersack@novell.com>
116 * TemplateControlCompiler.cs: GetConverterForMember now completely
117 relies on TypeDescriptor and description providers to retrieve
118 converter for a property. Fixes bug #578586
119 If UrlPropertyAttribute is found for a member,
120 GetExpressionFromString uses the preconverted value, if any, as
121 parameter to HandleUrlProperty.
123 2010-02-11 Marek Habersack <mhabersack@novell.com>
125 * AppResourcesCompiler.cs: explicitly dispose all the streams and
126 readers+writers in CompileResource.
128 2010-02-04 Marek Habersack <mhabersack@novell.com>
130 * PreservationFile.cs: updated the BuildResulTypeCode enum
132 * BuildManager.cs: LoadCompiled now adds all the assemblies built
133 from the App_Code directory to the BuildManager.CodeAssemblies
134 collection. Fixes bug #576810
136 2010-01-19 Marek Habersack <mhabersack@novell.com>
138 * AspGenerator.cs: modified the runatServer regex to correctly
139 match embedded server tags which end in a sequence like: "%>"/>
142 2010-01-06 Marek Habersack <mhabersack@novell.com>
144 * BuildManagerDirectoryBuilder.cs: AddVirtualDir properly caches
145 processed directories to prevent endless loops. Fixes bug #568366
146 Patch from Hubert FONGARNAND <informatique.internet@fiducial.fr>,
149 2010-01-05 Marek Habersack <mhabersack@novell.com>
151 * PageCompiler.cs: improved CreatePropertyAssign, it doesn't
152 always use CodePrimitiveExpression now.
154 * BuildManager.cs: in GenerateAssembly, if compilation fails for
155 the requested path and exception thrown is of type
156 CompilationException or ParseException, do not wrap it in
157 HttpException, just rethrow.
159 * AppResourcesCompiler.cs: the culture files dictionary is
160 case-insensitive now. Otherwise culture files with culture name
161 cased differently will cause overlapped i/o on response files
162 while building satellite assemblies and, in effect, compilation
165 2009-12-14 Marek Habersack <mhabersack@novell.com>
167 * BuildManager.cs: RemoveFailedAssemblies ignores warnings to
168 avoid throwing exceptions when the requested virtual path
169 compilation produces warnings and no errors. Fixes bug #561723
171 * AspParser.cs: PlainText should calculate the boundaries of
172 text using character offset, not line offset. Fixes bug #562286
173 InternalLineOffset and Internal properties need not exist.
175 * AspGenerator.cs: AspParser inner parser constructor takes 5
176 parameters now - accepts character offset of the current outer
179 2009-12-08 Marek Habersack <mhabersack@novell.com>
181 * TemplateControlCompiler.cs: GetConverterForMember looks up
182 member type converters using type description providers in
183 addition to custom attributes.
184 Result of GenerateInstance isn't cast to the target type if the
187 2009-11-13 Marek Habersack <mhabersack@novell.com>
189 * TemplateBuildProvider.cs: if directive has empty string as a
190 value and it represents a path, do not create a VirtualPath.
192 2009-11-10 Marek Habersack <mhabersack@novell.com>
194 * BaseCompiler.cs: parser.Imports is a Dictionary <>/Hashtable
197 * AspComponentFoundry.cs: system.web/pages section is not confined
198 to the top-level web.config
200 2009-11-03 Marek Habersack <mhabersack@novell.com>
202 * AppResourcesCompiler.cs: put default culture resources in a
203 separate collection, exposed by the DefaultCultureFiles property.
205 * AppResourcesAssemblyBuilder.cs: compile the default assembly
206 before the satellite ones. Use the default assembly as template
207 for generation of the satellite ones.
209 2009-10-22 Marek Habersack <mhabersack@novell.com>
211 * WsdlBuildProvider.cs: a different way to generate code from
212 wsdl. Code is generated in the top-level namespace to match .NET
214 2009-10-12 Marek Habersack <mhabersack@novell.com>
216 * BuildManager.cs: make sure to construct correct physical path
217 for every precompiled key in FixVirtualPaths. Fixes bug #546053
219 2009-09-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
221 * BuildManager.cs: load/set the global resources assembly for
222 precompiled and merged sites correctly.
224 2009-09-30 Marek Habersack <mhabersack@novell.com>
226 * BuildManager.cs: if precompilation file contains virtual path
227 with trailing slash (e.g. for themes), remove the slash. Fixes bug
230 2009-09-28 Marek Habersack <mhabersack@novell.com>
232 * TemplateControlCompiler.cs: ResourceProviderHasObject calls
233 HttpContext.GetResourceProvider with the current file's path, not
234 current request's. Fixes situations when localized control lives
235 in a master page or user control. Fixes bug #542484
237 * BaseCompiler.cs: introduced a helper property InputVirtualPath
238 which returns a VirtualPath object for the current control's
241 2009-09-22 Marek Habersack <mhabersack@novell.com>
243 * TemplateControlCompiler.cs: ResourceProviderHasObject needs to
244 close ResourceReader instance obtained from resource provider.
246 * DefaultResourceProvider.cs: implemented the ResourceReader
247 property. Fixes bug #520397
249 2009-09-08 Marek Habersack <mhabersack@novell.com>
251 * AppCodeCompiler.cs: HaveCustomProfile returns true for profiles
252 which don't contain top-level properties. Fixes bug #535655
254 * BuildManager.cs: added IsPrecompiled internal property.
256 * AppResourcesCompiler.cs: load precompiled site local and global
257 resource assemblies from static constructor. Fixes bugs #536138
260 2009-09-03 Marek Habersack <mhabersack@novell.com>
262 * AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
263 to attempt to create valid identifiers from resource
264 names. Identifier is also escaped by the CodeDOM provider before
265 returning. Possible fix for bug #536364
267 2009-08-27 Marek Habersack <mhabersack@novell.com>
269 * BuildManager.cs: when HttpRequest.FilePath is '/' in
270 GetAbsoluteVirtualPath, don't try to use
271 VirtualPathUtility.GetDirectory on it. Fixes bug #532679
273 2009-08-26 Marek Habersack <mhabersack@novell.com>
275 * AspTokenizer.cs: when there's put back record and we're in
276 verbatim mode, get_token must be careful with what it returns - it
277 can't return Token.* values, instead it should look at Value and
278 retrieve the next token from it. Fixes bug #400807
280 2009-08-25 Marek Habersack <mhabersack@novell.com>
282 * AspGenerator.cs: correctly parse server-side tags nested in
283 client-side ones. Fixes bug #323719
284 Detect IE conditional comments when processing comment blocks in
285 TextParsed. Fixes bug #367273
287 2009-08-24 Marek Habersack <mhabersack@novell.com>
289 * PageBuildProvider.cs: MapPath now takes a VirtualPath
290 instance. Part of fix for bug #463813
292 * BuildManager.cs: public APIs which take virtual path strings as
293 their parameters got internal counterparts accepting a VirtualPath
294 instance in place of string. Part of fix for bug #463813
296 * TemplateBuildProvider.cs: ExtractDependencies checks if the
297 input has already been parsed/compiled and, if yes, adds
298 dependencies from the TemplateParser to the list of the ones
299 extracted locally. Fixes bug #377915
301 * GenericBuildProvider.cs: added Parsed property.
302 MapPath now takes a VirtualPath instance. Part of fix for bug
305 2009-08-21 Marek Habersack <mhabersack@novell.com>
307 * GenericBuildProvider.cs: added internal property LanguageName
308 override which calls GetParserLanguage to get language name
309 instead of using the application default one.
311 * BuildManagerDirectoryBuilder.cs: removed CodeDOM provider cache,
312 provider types are retrieved from build providers while assigning
313 them to groups. Fixes bug #533166
315 2009-08-18 Marek Habersack <mhabersack@novell.com>
317 * AspParser.cs: added a constructor which creates an internal
318 parser, nested within the outer one, and adjusts its ILocation
319 members to report correct locations in the outer parser for better
320 error reporting. Inner parser also returns the outer's FileText,
323 * AspGenerator.cs: restored part of r138474 reverted in r138657,
324 r138658 and r138659 to fix bug #525104
325 BuilderLocation creates a copy of Location for its own use (since
326 the ILocation passed is actually AspParser, the line numbers
327 change between creating a BuilderLocation and using its Location
329 The end of tag, expression and client comment regular expressions
330 now use lazy quantifiers. This fixes bugs #525104 and #517656
331 Client side comment blocks aren't ignored anymore, they are parsed
332 just as the other parts of the document. Fixes bug #524358
334 2009-08-15 Marek Habersack <mhabersack@novell.com>
336 * AspGenerator.cs: CodeRenderParser.DoParseExpressions - match
337 newline characters inside expressions. Fixes bug #526449
339 2009-08-14 Marek Habersack <mhabersack@novell.com>
341 * BuildManagerDirectoryBuilder.cs: when VirtualPathProvider
342 reports a virtual directory doesn't exist, try to get the
343 requested virtual path using VirtualPathProvider.GetFile. Fixes
346 2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
348 * BuildManager.cs: path fixup should work now for /foo running on
349 /foo. Fixes bug #526563.
351 2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
353 * BuildManager.cs: precompilation setup failed if the precompiled
354 virtual directory was / and it was deployed somewhere else.
356 2009-07-21 Veerapuram Varadhan <vvaradhan@novell.com>
358 * XsdBuildProvider.cs: Use System.Data.Design version of
359 TypedDataSetGenerator instead of System.Data's.
361 2009-07-21 Marek Habersack <mhabersack@novell.com>
363 * AspTokenizer.cs: in put_back, store inTag value as well.
365 * AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"
367 * BuildManager.cs: GetReferencedAssemblies unconditionally
368 includes all assemblies from bin/ for precompiled sites. Fixes bug
371 2009-07-18 Marek Habersack <mhabersack@novell.com>
373 * DefaultResourceProvider.cs: if GetResourceObject is passed a
374 null or empty classKey it just returns null.
376 * AppResourcesAssemblyBuilder.cs: satellite assemblies are now
377 built using al instead of gmcs - makes the build slightly faster.
379 2009-07-13 Marek Habersack <mhabersack@novell.com>
381 * AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
382 try/catch, so that we can wrap the possible exception in
385 2009-07-09 Marek Habersack <mhabersack@novell.com>
387 * DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
390 2009-07-08 Marek Habersack <mhabersack@novell.com>
392 * AspParser.cs: GetServerTag mustn't treat <% # ... %> as
393 data-binding directives. Fixes bug #520024
395 * AssemblyBuilder.cs: if debugging information is on, append
396 /d:DEBUG to the compiler's command line.
398 2009-06-30 Marek Habersack <mhabersack@novell.com>
400 * AspGenerator.cs: TextParsed must remove client-side comments
401 from the passed text before attempting to parse the text for
402 server side controls and expressions. Fixes bug #517656
404 2009-06-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
406 * TemplateControlCompiler.cs: use the 'Empty' field for Unit and
409 2009-06-15 Marek Habersack <mhabersack@novell.com>
411 * AspGenerator.cs: CreateRootBuilder quits when root builder
412 already exist. This can happen when recursively parsing an include
413 file. Fixes bug #512028
415 2009-06-12 Marek Habersack <mhabersack@novell.com>
417 * BuildManager.cs: avoid a NREX in FixVirtualPath
419 2009-06-11 Marek Habersack <mhabersack@novell.com>
421 * PageCompiler.cs: if generating code to assign output cache
422 parameters, use special case for generating OutputCacheLocation
423 enum reference. Fixes bug #512037
425 2009-06-04 Marek Habersack <mhabersack@novell.com>
427 * AspGenerator.cs: if plain text is parsed and it contains
428 server-side controls, parse and process them. Fixes bug #508888
430 2009-06-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
432 * BuildManager.cs: allow deployment of precompiled applications under
433 any virtual path, not just the default one used when precompiling.
436 2009-06-01 Marek Habersack <mhabersack@novell.com>
438 * BuildManager.cs: when throwing a 404 exception, pass the virtual
439 path to the exception constructor.
441 * AspGenerator.cs: fix mapping of our tag types into
442 CodeConstructType. Fixes bug #508570
444 2009-05-26 Marek Habersack <mhabersack@novell.com>
446 * AspGenerator.cs: before including a file specified with the
447 <!--#include file="" --> directive, check if it's within the
448 current application's root.
450 2009-05-18 Marek Habersack <mhabersack@novell.com>
452 * BuildManager.cs: GetPrecompiledApplicationType () uses
453 VirtualPathUtility.Combine to build global.asax virtual
454 path. Patch from Robert Jordan <robertj@gmx.net>, thanks! Fixes
457 2009-05-10 Marek Habersack <mhabersack@novell.com>
459 * AspGenerator.cs: keep processing the tag if it is not a server
460 one and contains expressions and no code render blocks.
462 2009-05-05 Marek Habersack <mhabersack@novell.com>
464 * BuildManager.cs: RemoveFailedAssemblies wraps the compilation
465 exception to be rethrown in a HttpException instance.
467 * AspGenerator.cs: create a Location and pass it to the parser
468 before calling AddDirective from GetInheritedType, so that we get
469 meaningful exception messages with source, line information etc.
471 2009-05-04 Marek Habersack <mhabersack@novell.com>
473 * ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
474 which takes AspComponentFoundery as its
475 parameter. AspGenerator.RootBuilder isn't initialized until after
476 the parser is initialized.
478 * TemplateControlCompiler.cs: make sure to call
479 ProcessGeneratedCode on each instance of ControlBuilder after it's
480 fully generated. Fixes bug #500075
482 * TemplateBuildProvider.cs: moved the directive regex to
485 * BaseCompiler.cs: added two internal properties, BaseType and
486 DerivedType, which are used in calls to
487 ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
489 * AspGenerator.cs: implemented a work around for our parser
490 limitation which is unable to extract the page/control's base type
491 before parsing the actual file contents. This is necessary to
492 support ASP.NET MVC's "generic" Inherits attribute. The reason we
493 need to find out what the base type is before parsing the file is
494 that we need to look at the type's custom attributes to see if a
495 root control builder type is specified (which is what ASP.NET MVC
496 does) and, if yes, use it instead of the default type. Fixes bug
499 2009-04-30 Marek Habersack <mhabersack@novell.com>
501 * BuildManager.cs: when BuildInner catches a compilation
502 exception, wrap it in HttpException before re-throwing.
504 2009-04-28 Marek Habersack <mhabersack@novell.com>
506 * AspGenerator.cs: ProcessTag doesn't process a tag which is not
507 server-side and which has declarative expressions embedded. Fixes
510 2009-04-24 Marek Habersack <mhabersack@novell.com>
512 * AspGenerator.cs: ProcessCode should _not_ stop processing the
513 passed code string if the filter's ProcessCodeConstruct returns
514 false. Fixes bug #497775
516 2009-04-21 Marek Habersack <mhabersack@novell.com>
518 * PageCompiler.cs: implemented new way of setting output cache
519 parameters in the 2.0 profile. The generated code is now the same
520 as on .NET and uses the OutputCacheParameters class to pass
521 settings to InitOutputCache.
523 2009-04-17 Marek Habersack <mhabersack@novell.com>
525 * AspGenerator.cs: if thead/tbody are parsed as children of a
526 server-side table control, ignore them. Fixes bug #481622
528 2009-04-16 Marek Habersack <mhabersack@novell.com>
530 * TemplateControlCompiler.cs: using a regexp to check whether an
531 expression is a Bind one. Fixes bug #493639
532 AssignPropertyFromResources now checks whether the field/property
533 passed to it is decorated with the Localizable custom attribute
534 and whether the resource provider contains an entry for that
537 2009-04-15 Marek Habersack <mhabersack@novell.com>
539 * BuildManager.cs: do not add all assemblies in bin/ when serving
540 a precompiled site. Fixes bug #493873
541 When serving a precompiled site, check if the bin/ directory
542 contains certain well-known assemblies and load them if present.
544 2009-04-07 Marek Habersack <mhabersack@novell.com>
546 * TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
547 assume that the passed member is a property anymore. Fixes bug
550 2009-04-06 Marek Habersack <mhabersack@novell.com>
552 * BuildManager.cs: make sure that precompiled is not null before
553 using it in GetPrecompiledType.
555 2009-04-03 Marek Habersack <mhabersack@novell.com>
557 * AspParser.cs: local copy of checksum generated by the tokenizer
558 is made right after parsing is done.
560 * AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
561 InitParser. Avoids empty checksums in #pragma checksum.
563 2009-04-02 Marek Habersack <mhabersack@novell.com>
565 * CompilationException.cs: skip warnings in ErrorMessage and
568 * BuildManager.cs: when an error occurs while compiling the
569 requested virtual path, throw the exception, do not attempt to
572 * TemplateControlCompiler.cs: implemented missing converter for
573 the ExpandDepth property. Fixes bug #490860
575 2009-04-01 Marek Habersack <mhabersack@novell.com>
577 * AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
578 added the 2 extra chars to pragmaChecksumStaticCount constant (the
579 ones added by Gonzalo below) and removed one NewLine to account
580 for Martin's change below.
581 VBCodePragmaGenerator.ReserveSpace - one newline follows
583 VBCodePragmaGenerator.DecorateFile - one newline follows
586 2009-04-01 Martin Baulig <martin@ximian.com>
588 * AssemblyBuilder.cs: Don't emit a blank line after the #line as
589 thid'd cause all line numbers to be off by 1.
591 2009-03-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
593 * AssemblyBuilder.cs: the guid has to be quoted.
595 2009-03-31 Marek Habersack <mhabersack@novell.com>
597 * All of the below are part of the fix for bug #489687
599 * ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
602 * BuildProvider.cs: associated virtual path is stored internally
603 as an instance of VirtualPath, accessible via new
604 VirtualPathInternal property.
606 * BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
607 detect fake virtual paths.
608 GetBuildProvider now takes a VirtualPath instead of string for the
609 virtualPath parameter. The passed VirtualPath instance is passed
610 unchanged to BuildProvider.
612 * BuildManager.cs: AssertVirtualPathExists now uses
613 VirtualPath.IsFake to check for fake virtual paths.
615 * ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
616 MasterPageBuildProvider.cs, PageBuildProvider.cs,
617 ThemeBuildProvider.cs, UserControlBuildProvider.cs,
618 WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
619 CreateParser overloads now take a VirtualPath instead of a string
620 for the virtualPath parameter.
622 * ThemeBuildProvider.cs: use new parser constructors which take
623 VirtualPath instances instead of strings.
625 2009-03-30 Marek Habersack <mhabersack@novell.com>
627 * AspTokenizer.cs: UpdateChecksum - fixed off-by-one bug when
628 processing the checksum buffer.
630 * AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
631 and #pragma lines (or its vb equivalent - #ExternalSource) to
632 code-behind files named in the CodeFile/Src directives while
633 copying them to the dynamic directory for compilation. The kludge
634 works by recognizing the .cs and .vb extensions and wrapping the
635 file contents in the appropriate directives. This is done in this
636 way because the other possible way, using the
637 CodeSnippetCompileUnit, requires the entire file to be read in
638 memory and then passed to CodeDOM. We fall back to this way when
639 the file being copied is neither C# or VB.
641 2009-03-25 Marek Habersack <mhabersack@novell.com>
643 * AspTokenizer.cs: MD5 checksum calculation happens here. It's
644 done incrementally as characters are read.
646 * AspParser.cs: the MD5 checksum is no longer computed here. Moved
648 After parsing, both the tokenizer and the string reader are
651 * AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
652 prepration for future inclusion of checksum and line pragmas in
653 the file being copied.
654 Files are copied chunk by chunk, not by reading the entire
657 2009-03-23 Zoltan Varga <vargaz@gmail.com>
659 * PageCompiler.cs: Fix the build.
661 2009-03-23 Marek Habersack <mhabersack@novell.com>
663 * TemplateBuildProvider.cs: add values of the CodeFile and Src
664 page/master/control directives to the list of file dependencies.
665 Extract language also for master/page, not only for controls.
667 * PageCompiler.cs: CreateConstructors now triggers master page
668 build, if the current page is using one. Fixes bug #487857
670 2009-03-16 Marek Habersack <mhabersack@novell.com>
672 * AspGenerator.cs: when parsing nested tags (includes tags inside
673 client-side javascript script blocks) pass the closing tag up to
674 the containing parser.
675 Instead of parsing the whole plain text contents, plus the two
676 constructs we're interested in from it using regexs. This is
677 necessary as we might be passed JavaScript code and without
678 understanding its syntax we'll confuse the '<' character for the
680 TagParsed now better handles <script> tags. For both server and
681 client tags ProcessScript is called and the input text, in case of
682 client tags, is read verbatim to be processed when ProcessScript
683 is called to close the tag. At this point the verbatim text is
684 checked whether it contains server-side tags and/or expressions.
686 2009-03-12 Marek Habersack <mhabersack@novell.com>
688 * BuildManager.cs, BuildManagerDirectoryBuilder.cs,
689 BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
690 returned as an IDictionary <string, bool>. Dependencies must be
691 compared case-insensitively.
693 * TemplateBuildProvider.cs: ExtractReferenceDependencies must also
694 extract the value of the Page attribute.
696 2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
698 * AppResourcesAssemblyBuilder.cs:
699 * BuildManagerDirectoryBuilder.cs:
700 * AspComponentFoundry.cs:
701 * AssemblyBuilder.cs:
702 * CachingCompiler.cs:
704 * WsdlBuildProvider.cs:
707 * AppWebReferencesCompiler.cs:
708 * TemplateControlCompiler.cs:
710 * AppCodeCompiler.cs: settings that have to be in
711 machine.config or the root level web.config now call
712 GetWebApplicationSection.
714 2009-02-26 Marek Habersack <mhabersack@novell.com>
716 * TagAttributes.cs: modified ToString to return string formatted
717 in a more helpful way.
719 * AspParser.cs: added ToString, helpful when debugging.
721 * AspGenerator.cs: properly print leading and trailing plain text
722 when looking for embedded tags in ProcessTagsInAttributes.
724 2009-02-25 Marek Habersack <mhabersack@novell.com>
726 * AspTokenizer.cs: put_back now uses a stack and allows more than
727 one invocation when called inside a tag.
729 * AspGenerator.cs: when a nested parser is used, pay attention to
730 server tags found inside client tags and add them to the control
733 2009-02-24 Marek Habersack <mhabersack@novell.com>
735 * BuildManager.cs: Path.Combine must not be passed null first
738 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
740 * System.Web.Compilation/BuildManager.cs: updated comment.
742 2009-02-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
744 * TemplateControlCompiler.cs: lowercase place holder names
745 * BuildManager.cs: initial support for precompiled sites.
747 2009-02-13 Marek Habersack <mhabersack@novell.com>
749 * AspParser.cs: added an event raised when parsing is complete.
751 * AspGenerator.cs: added support for PageParserFilter which, if
752 found, is used to control certain aspects of code parsing
753 (accepting/rejecting control types, accepting/rejecting code
754 snippets, parsing completion)
755 Added the AddControl method, used by PageParserFilter when a
756 custom filter wants to inject a control in the current control
759 2009-02-05 Marek Habersack <mhabersack@novell.com>
761 * AppResourcesCompiler.cs: implemented a type resolver for
762 ResXResourceReader so that it can correctly resolve
763 System.Resources types which are normally found in
764 System.Windows.Forms but are included by System.Web
765 directly. Without the type resolver, code comparing types inside
766 ResXResourceReader when file references are used in side the .resx
767 file will not work correctly. The reason for that is that .resx
768 files will name "System.Resources.ResXFileRef,
769 System.Windows.Forms" as the file reference handler, while inside
770 System.Web ResXFileRef will be of type
771 "System.Resources.ResXFileRef, System.Web". Fixes bug #466059
773 * GenericBuildProvider.cs: added a new virtual method, MapPath,
774 which can be overriden by builders which need special handling of
775 virtual path mapping.
777 * PageBuildProvider.cs: provide implementation of
778 GenericBuildProvider.MapPath which takes into account fake virtual
779 paths. Fixes bug #463950
781 2009-01-26 Marek Habersack <mhabersack@novell.com>
783 * BuildManagerDirectoryBuilder.cs: added support for fake virtual
786 * CompilationException.cs: added a Message override to make error
787 messages more useful.
789 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
791 * AspComponentFoundry.cs: no need to throw. Caller handles a null
794 2009-01-23 Marek Habersack <mhabersack@novell.com>
796 * BuildManager.cs: use -1 for infinite wait in calls to
797 Acquire{Reader,Writer}Lock ().
799 2009-01-22 Marek Habersack <mhabersack@novell.com>
801 * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
804 * BuildProvider.cs: added new internal virtual method,
805 ExtractDependencies() whose purpose is to extract virtual path
806 dependencies without compiling the code, if possible.
808 * TemplateBuildProvider.cs: implemented the new
809 ExtractDependencies () method which uses regular expressions to
810 extract file dependencies from the source without having to
813 * CompilationException.cs: added a new public property, Results,
814 which returns the compilation results.
816 * BuildProviderGroup.cs: added. A simple class descending from
817 List <BuildProvider> which is used to hold a compilation batch -
818 that is a collection of BuildProvider instances.
820 * BuildManagerDirectoryBuilder.cs: new class which takes care of
821 generating compilation batches for the requested virtual path. A
822 set of batches is generated from files found in the same virtual
823 directory as the requested virtual path and all of the
824 dependencies of those files. All files are grouped in batches
825 within which no file depends upon its siblings. An attempt is made
826 to sort the batches from the "least dependent" to the "most
827 dependent" batches - i.e. the batches which do not depend on other
828 batches go to the top.
829 Code generating the batches now correctly detects dependency loops
830 and throws an exception when one is encountered.
831 Batches are represented as instances of a new class -
834 * BuildManagerCacheItem.cs: added. Contains all the compilation
835 result information needed by BuildManager. See below.
837 * BuildManager.cs: complete batch building rewrite:
838 - only one build lock is held instead of a set of compilation
839 tickets. Only one thread can compile anything at one given
841 - retrieving types from the build cache now uses a slim rw lock,
842 so that readers aren't blocked while compilation is in
843 progress. Writer lock is acquired only when adding a newly
844 compiled type to the build cache and when removing it after its
845 dependencies made it invalid.
846 - assembly references for each compilation are now collected
847 dynamically as the source is being compiled, this removed a lot
848 of complexity in dealing with assembles containing conflicting
849 types. As a consequence right now there may exist several
850 loaded assemblies containing the same type, but only the latest
851 of them will be used in new compiles.
852 - the thread compiling code can recurse into the Build method
853 which causes the recursively referenced code to be compiled
854 into a separate, uniquely named, assembly. This deals with all
855 recursion loops and dependency problems.
856 - automatic app domain restart after a certain number of compiles
858 - improved compilation error handling. If a compilation error
859 occurs, the code attempts to recompile the assembly up to 3
860 times, each time removing from the batch the files/virtual
861 paths which failed parsing/compilation. If the attempts failed,
862 another one is made to compile only the virtual path requested
863 by the calling code. Only should that fail a compilation
864 exception is thrown. All the compilation errors are written to
865 stdout if the application is in the debug mode.
866 - changed assembly naming. It now generates assembly names based
867 on whether the compilation is recursive and whether the batch
868 being compiled contains more than one code unit or
870 - compilation results are now stored in the cache as instances of
871 the new BuildManagerCacheItem class, which contains all the
872 information required by BuildManager to return types,
873 assemblies, dependencies etc.
874 - GetReferencedAssemblies now correctly returns only the
875 assemblies defined in the .config files.
876 - GetVirtualPathDependencies does not need to compile code
877 anymore in order to extract virtual path dependencies. New code
878 in BuildProvider.ExtractDependencies () takes care of that.
879 - a BuildManagerDirectoryBuilder class instance is used to
880 generate compilation batches.
881 - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
884 * AssemblyBuilder.cs: added support for keeping track of which
885 code unit was generated by which BuildProvider andr which
886 BuildProvider produced a given source file. Both changes serve the
887 purpose of dealing with compilation errors in BuildManager.
889 * ApplicationFileBuildProvider.cs: added missing
890 BuildProviderAppliesTo attribute
892 2009-01-14 Marek Habersack <mhabersack@novell.com>
894 * AspGenerator.cs: implemented a work around which allows the
895 server controls embedded in client tag attributes to be parsed and
898 2009-01-13 Marek Habersack <mhabersack@novell.com>
900 * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
901 GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
902 ControlBuilder cleanup.
904 2009-01-12 Marek Habersack <mhabersack@novell.com>
906 * TemplateControlCompiler.cs: do not generate #line pragmas for
907 plain strings. Fixes bug #461214
909 2008-12-11 Marek Habersack <mhabersack@novell.com>
911 * BaseCompiler.cs: added a new method, InitializeType, to be
912 overriden in child classes when any class initialization needs to
913 be performed before methods, constructors and fields are created.
915 * TemplateControlCompiler.cs: if the parser has any custom
916 controls registered, compile them here - in the InitializeType
919 2008-12-10 Marek Habersack <mhabersack@novell.com>
921 * ParseException.cs: made serializable.
923 * PageCompiler.cs: CreateStronglyTypedProperty calls
924 AddReferencedAssembly to add type's assembly to the unit's
925 references after the typed property has been created.
927 * BaseCompiler.cs: added a new helper method,
928 AddReferencedAssembly to be used whenever an assembly location
929 needs to be added to the compilation unit's list after the parsing
930 is done (e.g. when processing PreviousPageType or MasterPageType
931 properties in PageParser)
933 2008-12-08 Marek Habersack <mhabersack@novell.com>
935 * TemplateControlCompiler.cs: use the correct regex match group
936 index in SanitizeBindCall (), fixes bug #457011
938 2008-12-05 Marek Habersack <mhabersack@novell.com>
940 * BuildManager.cs: attempt to enter the compilation critical
941 section with a timeout up to 3 times before giving up. This avoids
942 deadlocks in situations where there are two virtual directores
943 each containing user controls referencing user controls from the
946 2008-12-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
948 * AspParser.cs: reset to the next character in a partial match in case
949 of failure. Fixes bug #314688.
951 2008-12-01 Marek Habersack <mhabersack@novell.com>
953 * TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
954 instances to the ContentPlaceHolders collection when the
955 placeholder is instantiated in the control build method, collect
956 the ids and store them in ContentPlaceHolders inside the
957 constructor. Fixes bug #449970
958 For each content placeholder generate a public virtual property
959 named "Template_PLACEHOLDERID", this is compatible with what .NET
962 * BaseCompiler.cs: added new virtual method,
963 AddStatementsToConstructor, which is called just before
964 CreateConstructor returns.
966 2008-11-25 Marek Habersack <mhabersack@novell.com>
968 * AspComponentFoundry.cs: GetComponentType methods replaced with
969 GetComponent returning an instance of AspComponent which fully
970 describes the registered item. Components are cached, indexed by
973 * AspComponent.cs: added
975 2008-11-21 Marek Habersack <mhabersack@novell.com>
977 * CompilationException.cs: made serializable.
979 * TemplateControlCompiler.cs: make the Bind regex stricter.
980 When creating Eval expression from Bind, replace single quotes
981 with double quotes. Fixes bug #447597
982 When processing Bind expressions and the regex doesn't match,
985 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
987 * AspTokenizer.cs: if there's a newline between the opening server tag
988 and any other special character, treat the block as a code-render
992 2008-11-14 Marek Habersack <mhabersack@novell.com>
994 * TemplateControlCompiler.cs: treat Eval and Bind expressions as
995 verbatim code. The only difference between the two is that in the
996 latter case Bind is replaced with Eval in the output code. Fixes
998 If BindingDirection of the parent template builder is OneWay in
999 RegisterBindingInfo, do not throw an exception but simply do not
1000 register the binding.
1002 2008-10-29 Marek Habersack <mhabersack@novell.com>
1004 * BuildManager.cs: seal the internal classes.
1005 Remove unused BuildCacheItem.ValidBuild property.
1007 2008-10-16 Marek Habersack <mhabersack@novell.com>
1009 * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
1010 use PropertyInfo.CanWrite to check whether the property is
1011 writable anymore, it calls GetSetMethod (false) instead.
1013 2008-10-10 Marek Habersack <mhabersack@novell.com>
1015 * TemplateControlCompiler.cs: allow whitespace around parentheses
1016 in the Bind and Eval expressions.
1018 2008-10-09 Marek Habersack <mhabersack@novell.com>
1020 * BuildManager.cs: if monoSettings section is found in the
1021 system.web section in web.config, use its contents to augment
1022 compiler configuration. Used to work around the issue reported in
1025 2008-10-08 Marek Habersack <mhabersack@novell.com>
1027 * TemplateControlCompiler.cs: templates must be instantiated even
1028 for builders which process children as properties.
1030 2008-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
1032 * AssemblyBuilder.cs: use CodeBase to get to the original assembly
1033 path because Location might point the the shadow copy. Bug #409646
1036 2008-10-03 Marek Habersack <mhabersack@novell.com>
1038 * BuildManager.cs: if an assembly fails to build out of a batch of
1039 files, extract the virtual path that was requested by the client
1040 and attempt to compile it alone.
1042 2008-09-29 Marek Habersack <mhabersack@novell.com>
1044 * BuildManagerRemoveEntryEventHandler.cs: added
1046 * BuildManager.cs: added a static event to notify interested
1047 parties when an entry is removed from the buildCache. Fixes bug
1050 2008-09-26 Marek Habersack <mhabersack@novell.com>
1052 * BuildManager.cs: when creating a cache entry for a virtual path,
1053 make it depend on a list of files built recursively from all the
1054 virtual path's dependencies. Fixes bug #430114
1056 2008-09-24 Andreia Gaita <avidigal@novell.com>
1058 * AspParser.cs: When parsing text which contain xml tags that resemble
1059 the end string, append the original text instead of the end string,
1060 because the casing might not match between the two. Fixes #320445
1062 2008-09-23 Marek Habersack <mhabersack@novell.com>
1064 * AspGenerator.cs: ignore whitespace only if it's between
1065 CodeRender blocks, not between DataBinding and
1066 CodeRenderExpression.
1068 2008-09-01 Marek Habersack <mhabersack@novell.com>
1070 * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
1071 null/empty parser.InputFile now.
1073 * AspGenerator.cs: AddTypeToCache works checks whether inputFile
1074 is null or empty and does not assume the dependencies ArrayList is
1076 CloseControl uses ControlBuilder's OriginalTagName property,
1077 should the property/tag name be prefixed with 'prefix:'
1079 * CachingCompiler.cs: expect the dependencies ArrayList to be null
1082 2008-08-31 Marek Habersack <mhabersack@novell.com>
1084 * TemplateControlCompiler.cs: trust builder.BindingContainerType
1085 in the 2.0+ profile - do not use container properties to detect
1087 Added a helper method, compiled only when DEBUG is defined, to
1088 generate Console.WriteLine CodeDOM calls.
1089 Templates are processed before anything else, so that children
1090 which may depend on parent's templates can get access to them.
1092 * BaseCompiler.cs: add line pragmas only if enabled for the
1095 2008-08-29 Marek Habersack <mhabersack@novell.com>
1097 * AppCodeCompiler.cs: properly handle profile base class
1098 specifications which refer to full type names.
1100 2008-08-26 Marek Habersack <mhabersack@novell.com>
1102 * BuildManager.cs: use VirtualPathUtility.Combine in
1103 GetAbsoluteVirtualPath for non-rooted paths.
1105 2008-08-19 Marek Habersack <mhabersack@novell.com>
1107 * ThemeDirectoryBuildProvider.cs: theme directory dependencies
1108 should use only virtual paths for CSS files. Fixes bug #397187
1110 2008-08-18 Marek Habersack <mhabersack@novell.com>
1112 * TemplateControlCompiler.cs: process expression when they are
1113 used used in values of attributes without associated
1114 properties. Fixes bug #417883
1116 * ResourceExpressionBuilder.cs: added two overloads of
1117 CreateGetLocalResourceObject to encompass cases when the generated
1118 expression is not assigned to a property but rather used as a
1119 parameter to the SetAttribute method. Fixes bug #417883
1121 2008-08-14 Marek Habersack <mhabersack@novell.com>
1123 * AspGenerator.cs: do not ignore directives inside HTML comments.
1125 * TemplateControlCompiler.cs: .NET allows for whitespace between
1126 the directive start (<%) and the directive type character. Added
1127 code which copes with such situations correctly.
1129 2008-08-13 Marek Habersack <mhabersack@novell.com>
1131 * TemplateControlCompiler.cs: rewrote the Bind regular expressions
1132 to allow for single quotes and an optional second parameter to the
1134 Added an Eval regular expression.
1135 Both Bind and Eval calls in data expressions are now converted
1136 into a CodeDOM method invocations, to allow support for possible
1137 languages which use a different call format (previously code
1139 Added a method to construct the Eval invoke expression which
1140 simplifies code in other areas.
1143 2008-08-06 Marek Habersack <mhabersack@novell.com>
1145 * TemplateControlCompiler.cs: handle situation when a property of
1146 a control for which we're generating the code is of type
1147 'Type'. In such case, variable.GetType() will return
1148 System.MonoType, which must not be output to the generated
1149 source. Thanks to Robert Jordan for giving the idea for the hack!
1151 2008-06-30 Marek Habersack <mhabersack@novell.com>
1153 * AspGenerator.cs: hush the warnings and fix invalid type
1156 * AssemblyBuilder.cs: hush the warnings and add some debugging
1159 * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
1160 CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
1161 SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
1163 2008-06-18 Marek Habersack <mhabersack@novell.com>
1165 * TemplateControlCompiler.cs: AddChildCall properly processes the
1166 PartialCachingAttribute now.
1168 2008-06-11 Marek Habersack <mhabersack@novell.com>
1170 * BuildManager.cs: if an error occurs while assigning the
1171 requested path to an assembly builder inside BuildAssembly, throw
1174 * BaseCompiler.cs: do not generate #line pragma for code which
1175 exists only in memory.
1177 2008-05-30 Marek Habersack <mhabersack@novell.com>
1179 * ClientBuildManager.cs: do not use synthetized event accessors
1182 2008-05-28 Marek Habersack <mhabersack@novell.com>
1184 * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
1185 for #pragma checksum
1187 2008-05-19 Marek Habersack <mhabersack@novell.com>
1189 * AspGenerator.cs: if the last tag parsed was a code directive,
1190 ignore any accumulated text if it's 100% whitespace.
1191 Do not parse code render directives inside comments.
1193 2008-05-15 Marek Habersack <mhabersack@novell.com>
1195 * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
1196 when adding a foundry to the array list. AssemblyFoundry instances
1197 are stacked at the end of the array list in a LIFO manner. That
1198 way TagNameFoundry takes precedence over AssemblyFoundry should
1199 the two contain the same type.
1201 2008-05-14 Marek Habersack <mhabersack@novell.com>
1203 * ParseException.cs: location can be null in the FileText property
1206 2008-05-07 Marek Habersack <mhabersack@novell.com>
1208 * AspGenerator.cs: push the include file directory to the parser
1209 include directory stack and pop it after parsing the include, so
1210 that the relative file paths are resolved correctly. Fixes bug
1213 2008-05-06 Marek Habersack <mhabersack@novell.com>
1215 * TemplateControlCompiler.cs: compatibility - added the
1216 __stringResource static field to the generated class and a call to
1217 SetStringResourcePointer to the FrameworkInitialize method.
1219 * PageCompiler.cs: __fileDependencies should also be defined in
1221 Page properties assigned in the page directive should be set
1222 inside BuildControlTree in the 2.0 profile.
1224 2008-04-29 Marek Habersack <mhabersack@novell.com>
1226 * WebServiceCompiler.cs: if compiling a body-less web service, try
1227 to load the class type from the loaded assemblies before
1228 attempting to find it in the assemblies on disk.
1230 2008-04-28 Marek Habersack <mhabersack@novell.com>
1232 * BuildManager.cs: ignore bad assemblies in the bin/
1233 directory. Fixes bug #315816
1235 2008-04-26 Marek Habersack <mhabersack@novell.com>
1237 * GenericBuildProvider.cs: the Parse () method should reuse the
1238 previously opened TextReader when calling generator.Parse (), to
1239 avoid opening the input file multiple times. Fixes bug #383881
1241 2008-04-25 Marek Habersack <mhabersack@novell.com>
1243 * AspGenerator.cs: put some safeguards in, to make sure streams
1244 are closed in any case.
1246 2008-04-24 Marek Habersack <mhabersack@novell.com>
1248 * AspComponentFoundry.cs: added a new GetComponentType overload
1249 which returns component source and a boolean flag whether the
1250 control was registered from web.config (2.0).
1252 2008-04-22 Marek Habersack <mhabersack@novell.com>
1254 * BuildManager.cs: ignore also arbitrary exceptions when
1255 batch-building an assembly. Fixes bug #323556
1257 2008-04-19 Marek Habersack <mhabersack@novell.com>
1259 * BuildManager.cs: use absolute virtual path to query the
1260 VirtualPathProvider for path existence.
1261 When ASP.NET is self-hosted, force
1262 non-batch compilation. Fixes bug #380985
1264 * ILocation.cs: added a new property, FileText.
1266 * Location.cs: added implementation of the ILocation.FileText
1269 * ParseException.cs: use the new ILocation.FileText, if defined,
1270 to get the file source.
1272 * AspGenerator.cs: when TextReader is present, use it to read with
1273 the VirtualPathProvider to read the file source. Fixes bug #381364
1275 * AspParser.cs: added a new property FileText to provide the file
1276 contents which was read in the constructor.
1278 2008-04-18 Marek Habersack <mhabersack@novell.com>
1280 * BuildManager.cs: when any parsing error occurs during batch
1281 building, ignore the file which caused it. If the file with
1282 parsing error is the one requested by user, throw the parsing
1283 exception. Fixes bug #323742
1285 2008-04-15 Marek Habersack <mhabersack@novell.com>
1287 * CachingCompiler.cs: dispose of streams the way it should
1290 2008-04-09 Marek Habersack <mhabersack@novell.com>
1292 * BuildManager.cs: refactoring - the SetCommonParameters and
1293 GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
1294 and made internal static.
1295 Do not catch compilation exceptions and wrap them in
1296 HttpException, let the CompilationException pass through. Fixes
1299 * AppWebReferencesCompiler.cs: added - support for compiling of
1300 wsdl files found in the App_WebResources directory. Fixes bug
1303 * BuildProvider.cs: refactoring - moved the SetCommonParameters
1304 and GetDefaultCompilerTypeForLanguage to BuildManager
1306 * WsdlBuildProvider.cs: added the CodeCompilerType property
1308 Namespace for the generated code is taken from the wsdl path,
1309 relative to App_Code or App_WebReferences, if the wsdl in question
1310 is under on of those directories.
1311 GenerateCode uses OpenReader () so that VirtualPathProvider works
1314 * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
1315 when generating source from code unit and use
1316 WebEncoding.FileEncoding when adding code files to the unit. Fixes
1318 Cope with virtualPath being null in BuildAssembly.
1319 Reference assemblies specified in web.config when linking.
1321 2008-04-08 Marek Habersack <mhabersack@novell.com>
1323 * AspComponentFoundry.cs: add loaded assembly to the
1324 BuildManager's list of referenced assemblies instead to
1325 WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
1327 * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
1329 * BuildManager.cs: switched to VirtualPath instead of a string
1330 path in several methods.
1331 Batch compilation is turned off if we have a custom
1332 VirtualPathProvider which implements only the VirtualFile and
1333 falls back to DefaultVirtualDirectory implementation for directory
1335 Added an internal method AddToReferencedAssemblies.
1336 Remove invalidated entry from
1337 WebConfigurationManager.ExtraAssemblies.
1339 * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
1341 * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
1343 * AssemblyBuilder.cs: constructors use the new VirtualPath class
1345 AddCodeFile can use the VirtualPathProvider if necessary now.
1346 BuildAssembly overloads accept VirtualPath parameter instead of a
1349 * TemplateBuildProvider.cs: GetCodeBehindSource returns the
1352 2008-03-31 Marek Habersack <mhabersack@novell.com>
1354 * AppCodeCompiler.cs: implemented support for AppInitialize (a
1355 static method in any class defined in the App_Code source files),
1356 ran just after the App_Code assemblies are compiled in order to
1357 perform any application initialization actions.
1359 2008-03-27 Marek Habersack <mhabersack@novell.com>
1361 * BuildManager.cs: AssertVirtualPathExists now queries the
1362 VirtualPathProvider for path existence if physical path check
1363 fails, before throwing the 404 exception.
1365 2008-03-13 Marek Habersack <mhabersack@novell.com>
1367 * BuildManager.cs: if we're running in a case-insensitive
1368 environment, use case-insensitive comparer for the build caches.
1370 2008-02-29 Marek Habersack <mhabersack@novell.com>
1372 * BuildManager.cs: implement a mechanism to ignore certain virtual
1373 paths when batch compiling. Helps applications which may have
1374 .as?x files which won't work on mono for various reasons (one such
1375 sample is mojoportal).
1377 2008-02-28 Marek Habersack <mhabersack@novell.com>
1379 * TemplateControlCompiler.cs: make sure that data-bound attribute
1380 assignments properly convert the Bind expression to the Eval
1381 one. Fixes bug #362039
1383 * AspGenerator.cs: in 2.0+, aspx files which contain the Content
1384 controls can contain only them, whitespace and directives. Fixes
1387 2008-02-27 Marek Habersack <mhabersack@novell.com>
1389 * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
1390 LoadType method for the 2.0 profile.
1392 * CompilationException.cs: use a different format of ErrorMessage
1393 for the 2.0+ profile.
1395 2008-02-26 Marek Habersack <mhabersack@novell.com>
1397 * BuildManager.cs: known file types extensions are now matched
1400 2008-02-25 Marek Habersack <mhabersack@novell.com>
1402 * TemplateControlCompiler.cs: GetContainerType now checks whether
1403 the binding container returned from the builder implements
1404 IDataItemContainer (for 2.0+ profiles) and looks for one more
1405 property, Rows, if no Items property is found.
1407 2008-02-08 Gert Driesen <drieseng@users.sourceforge.net>
1409 * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
1410 "raw" appsetting value if targetType is null.
1412 2008-02-07 Marek Habersack <mhabersack@novell.com>
1414 * CompilationException.cs: added new constructor which takes
1415 CompilerResults as one of the parameters.
1416 Added CompilerOutput property.
1418 * AssemblyBuilder.cs: use the new CompilationError constructor.
1420 * BuildManager.cs: check for virtualPath existence before
1421 attempting to compile the assemblies. Fixes bug #359465
1423 2008-02-06 Marek Habersack <mhabersack@novell.com>
1425 * GenericBuildProvider.cs: GetGeneratedType may return a type even
1426 though the results are null.
1428 * AssemblyBuilder.cs: if there are no units, no source files, no
1429 resources and no embedded resources in the passed options then
1430 do not attempt to compile the assembly. Fixes bug #359325
1432 * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
1433 BuildAssembly may return null results.
1435 * BuildManager.cs: protect non-page builds from endless recursion
1436 if a non-page file recursively references/includes another file
1437 from the same batch. If such case is detected, the recursively
1438 referenced file is compiled into a separate assembly and removed
1439 from the previous compilation batch. Fixes bug #358742.
1440 If AssemblyBuilder returns no results from BuildAssembly, it might
1441 mean we're dealing with a compilation of empty .as[hm]x files,
1442 with no code and only code-behind in bin/. Do not report an error
1443 in that case, only add the compiled types to the cache. Fixes bug
1446 2008-02-05 Marek Habersack <mhabersack@novell.com>
1448 * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
1449 non-rooted relative paths to absolute ones now. Fixes bug
1452 * GenericBuildProvider.cs: introduced a new abstract method,
1453 GetReferencedAssemblies, which is called on descendant builders to
1454 get a list of assemblies referenced by the parsed file. Fixes bug
1457 * AssemblyBuilder.cs: added a new overload of the
1458 AddAssemblyReference method, to be used by build providers to
1459 register assemblies collected by the corresponding parser.
1461 * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
1462 overload of the new abstract method GetReferencedAssemblies.
1464 * AspGenerator.cs: introduced a new overload for the Parse method
1465 which accepts a bool indicating whether or not to initialize the
1466 parser. The overload is used when parsing server-side
1467 includes. Fixes bug #357498
1469 2008-02-04 Marek Habersack <mhabersack@novell.com>
1471 * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
1472 generating source code files. Fixes bug #357053.
1474 * AspGenerator.cs: set isApplication before parsing. Fixes bug
1477 2008-01-31 Jb Evain <jbevain@novell.com>
1479 * AspGenerator.cs: correct typo. Fix #357547.
1481 2008-01-27 Marek Habersack <mhabersack@novell.com>
1483 * BuildManager.cs: GetReferencedAssemblies includes the extra
1484 assemblies and the App_Code assemblies. Patch from Mike Morano
1485 <mmorano@mikeandwan.us>, thanks!
1487 2008-01-24 Marek Habersack <mhabersack@novell.com>
1489 * WebHandlerBuildProvider.cs: derive from the new
1490 SimpleBuildProvider class.
1492 * BuildManager.cs: full implementation of the batch compilation
1493 for the 2.0 profile. The implementation is most probably different
1494 to MS.NET's but the effects are the same (or nearly the same -
1495 there are some minor differences). There are missing bits and
1496 pieces, but minor ones - to be added later.
1498 * SimpleBuildProvider.cs: new build provider abstract class
1499 deriving from the GenericBuildProvider that implements common code
1500 for building web handlers and web services.
1502 * GenericBuildProvider.cs: new generic abstract class used to
1503 implement base builder code for all the build provider types and
1504 maximize code reuse.
1506 * PageBuildProvider.cs: derive from the new TemplateBuildProvider
1507 class and implement all the necessary abstract members.
1508 Handle "fake" virtual paths, to properly support generating of the
1511 * BuildProvider.cs: SetVirtualPath now converts the passed path to
1513 Added internal virtual method GenerateCode, used by derived
1515 SetCommonParameters no longer sets the referenced assemblies, this
1516 is done in BuildManager now.
1517 Added an internal virtual property CodeUnit which returns the
1518 build provider's compilation unit.
1520 * PageCompiler.cs: fix assignment of base types for asynchronous
1521 pages, to match MS.NET.
1522 For asynchronous pages, add the necessary methods generation.
1524 * BaseCompiler.cs: default namespace is now set using a constant.
1525 Renamed the Init method into ConstructType, to better reflect its
1526 purpose and made the method internal - it is used by the build
1528 Added several CreateProvider overloads for easier and more unified
1529 compilation provider creation.
1530 Added an internal MainClassType property to enable class type name
1531 retrieval from other parts of the class hierarchy.
1533 * ApplicationFileBuildProvider.cs: new build provider deriving
1534 from the TemplateBuildProvider class to compile the global.asax
1537 * AspGenerator.cs: properly handle parsers which have no input
1538 file path given, but use TextReader instead.
1539 Dependencies are virtual paths now, convert them to physical ones
1540 before creating cache dependency.
1542 * CachingCompiler.cs: parser dependencies are virtual paths now,
1543 convert them to physical ones before creating cache dependency.
1545 * AssemblyBuilder.cs: full implementation of the documented
1546 functionality as well as a lot of internal build code
1547 added. Produces assemblies using the same style what MS.NET for
1548 temporary and target file naming. Handles partial type squashing
1549 if the same partial type is used by several code compile units
1550 added to the same builder instance.
1552 * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
1553 base class and add implementation of all the abstract methods
1556 * ThemeDirectoryBuildProvider.cs: new build provider to compile
1557 theme directories. Replaces the old ThemeDirectoryCompiler class.
1559 * UserControlBuildProvider.cs: use the new TemplateBuildProvider
1560 base class and add implementation of all the abstract methods
1563 * TemplateBuildProvider.cs: new internal abstract class which
1564 implements the common tasks for all the template control build
1567 * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
1568 type to implement building.
1570 2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
1572 * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
1574 2008-01-08 Marek Habersack <mhabersack@novell.com>
1576 * TemplateControlCompiler.cs: statements to assign
1577 fields/properties from resources must be processed at the very end
1578 of the control creation method. Some controls (like HyperLink) can
1579 set their Text attribute using literal content. In such cases, in
1580 order to properly localize the control, the value read from the
1581 local page resources must be assigned after the literal value has
1582 been added to the control. Fixes bug #323494
1584 2008-01-07 Marek Habersack <mhabersack@novell.com>
1586 * CachingCompiler.cs: added an overload to the Compile method
1587 which accepts a flag whether or not to include debug information
1588 in the generated assembly.
1590 2008-01-02 Marek Habersack <mhabersack@novell.com>
1592 * TemplateControlCompiler.cs: add line pragma wherever necessary.
1594 * PageCompiler.cs: reorder the statements to match MS.NET output.
1595 Output line pragma information for directive attributes.
1597 * BaseCompiler.cs: add a set of AddLinePragma methods for various
1599 Output line pragmas when adding server-side scripts to the CodeDOM
1602 * AspGenerator.cs: use ServerSideScript to store script location
1603 in the original file.
1605 * UserControlCompiler.cs: output line pragmas for the init
1608 2007-12-28 Marek Habersack <mhabersack@novell.com>
1610 * PageCompiler.cs: MS.NET compatibility: added the
1611 __fileDependencies object to the generated class.
1612 Refactored the output to match MS.NET more closely.
1613 IHttpHandler or IHttpAsyncHandler are now added to the generated
1614 class list of implemented interfaces.
1616 * BaseCompiler.cs: Main class field references are prefixed with
1618 Refactored the output to match MS.NET more closely.
1620 2007-12-27 Marek Habersack <mhabersack@novell.com>
1622 * BaseCompiler.cs: check for base type globality in all the
1623 location it is used.
1625 2007-12-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1627 * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
1630 2007-12-21 Marek Habersack <mhabersack@novell.com>
1632 * BaseCompiler.cs: Refactoring. Move the provider creation code to
1633 an internal static method, so that other piece of code which need
1634 to create the provider can do it using the same code.
1635 Added setters to several internal properties, so that they can be
1636 shared with derivative classes.
1638 * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
1641 * CachingCompiler.cs: adjust to the changes above. Also some
1644 2007-12-15 Marek Habersack <mhabersack@novell.com>
1646 * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
1648 * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
1649 profile, it's obsoleted. CachingCompiler will use the
1650 CodeDomProvider methods directly in that case.
1652 * WebServiceCompiler.cs: Updated GetCompiledType to acquire
1653 compiler information for the 2.0 profile from system.codeDom.
1655 * CachingCompiler.cs: the Compile overloads do not use the
1656 compiler instance, but call appropriate methods on the
1657 CodeDomProvider instance directly.
1658 Updated some Compile overloads to acquire compiler information for
1659 the 2.0 profile from system.codeDom.
1661 2007-12-14 Juraj Skripsky <js@hotfeet.ch>
1663 * TemplateControlCompiler.cs (AddExpressionAssign):
1664 Make sure expression does not contain prefix.
1666 * AppSettingsExpressionBuilder.cs: Pass type of property to
1667 GetAppSetting, not type of declaring type.
1669 2007-12-13 Marek Habersack <mhabersack@novell.com>
1671 * TemplateControlCompiler.cs, AspComponentFoundry.cs,
1672 AssemblyBuilder.cs, AppResourcesCompiler.cs,
1673 AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
1674 optimization - use String.Concat instead of String.Format in some
1677 2007-11-22 Marek Habersack <mhabersack@novell.com>
1679 * PageCompiler.cs: use
1680 pageParser.OutputCacheVaryByContentEncodings when initializing the
1681 output cache in the 2.0 profile.
1683 2007-11-06 Marek Habersack <mhabersack@novell.com>
1685 * BuildManager.cs: properly retrieve the BuildProviderCollection
1686 from configuration files.
1688 2007-11-03 Marek Habersack <mhabersack@novell.com>
1690 * TemplateControlCompiler.cs: do not call converters specified in
1691 the member custom attributes if 'str' is null in
1692 GetExpressionFromString.
1694 2007-10-23 Marek Habersack <mhabersack@novell.com>
1696 * AppResourcesAssemblyBuilder.cs: do not output preservation files
1697 for satellite assemblies, just for the main assembly. Also, don't
1698 add the satellite assemblies to the list of top-level assemblies.
1700 2007-10-17 Marek Habersack <mhabersack@novell.com>
1702 * PageCompiler.cs: added code to set the AsyncMode and
1703 AsyncTimeout Page properties.
1705 2007-10-15 Marek Habersack <mhabersack@novell.com>
1707 * TemplateControlCompiler.cs, WebServiceCompiler.cs,
1708 BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
1709 HttpApplication.LoadType instead of Type.GetType.
1711 2007-10-10 Marek Habersack <mhabersack@novell.com>
1713 * TemplateControlCompiler.cs: be careful when using type
1714 converters taken from attributes attached to class members. They
1715 may come from the System.Design namespace, which is mostly not
1716 implemented on Mono.
1718 2007-10-01 Marek Habersack <mhabersack@novell.com>
1720 * AppResourcesCompiler.cs: resources are no longer compiled into a
1721 single assembly. Instead, the common assembly construction code
1722 has been moved to AppResourcesAssemblyBuilder to use satellite
1725 * AppResourcesAssemblyBuilder.cs: new resource assembly
1726 construction code which takes care of outputting satellite
1729 2007-09-27 Marek Habersack <mhabersack@novell.com>
1731 * TemplateControlCompiler.cs: support nullable types in
1732 GenerateExpressionFromString.
1734 2007-09-21 Marek Habersack <mhabersack@novell.com>
1736 * TemplateControlCompiler.cs: if we're running on a platform with
1737 the directory separator character that's different to the Unix
1738 style '/' one, convert the input file path to the virtual path
1739 style string, with path parts separated by '/'. Patch from Robert
1740 Jordan <robertj@gmx.net>, thanks! Fixes bug #324229.
1742 2007-09-20 Marek Habersack <mhabersack@novell.com>
1744 * TemplateControlCompiler.cs: if a member passed to
1745 GetExpressionFromString has a TypeConverter attribute set, try to
1746 use the named type converter to convert the string value into the
1747 target type. Fixes bug #325489.
1749 2007-09-14 Marek Habersack <mhabersack@novell.com>
1751 * AppResourcesCompiler.cs: use _culture and _resourceManager
1752 instead of culture and resourceManger in the generated code, to
1753 avoid case problems for languages that are case-insensitive.
1755 2007-09-10 Marek Habersack <mhabersack@novell.com>
1757 * TemplateControlCompiler.cs: cast the expression to the field
1758 type whenever appropriate in GetExpressionFromString.
1759 When generating an object instance and one of the parameters is
1760 System.Type, return a typeof expression.
1762 2007-09-07 Marek Habersack <mhabersack@novell.com>
1764 * TemplateControlCompiler.cs: another modification to the way
1765 TemplateInstance.Single templates are treated. The search for
1766 parent with this attribute set stops as soon as the first
1767 TemplateBuilder is encountered, no matter what the value of its
1768 TemplateInstance attribute is.
1770 2007-09-06 Marek Habersack <mhabersack@novell.com>
1772 * TemplateControlCompiler.cs: ID must be assigned as soon as
1773 possible, before any other attributes of the control are
1774 accessed. The control code may rely on ID being set.
1775 Extend the process of checking if a control is located within a
1776 template with the TemplateInstance.Single attribute set, to all
1777 the parents of the current builder.
1779 2007-09-05 Marek Habersack <mhabersack@novell.com>
1781 * ThemeDirectoryCompiler.cs: all the skin files compiled in one
1782 batch must share the same component foundry. Under MS.NET if any
1783 earlier .skin file registers a control prefix any later .skin
1784 files may use it without registering.
1786 2007-09-04 Marek Habersack <mhabersack@novell.com>
1788 * TemplateControlCompiler.cs: make sure that base class doesn't
1789 contain a field of the same name which is accessible from the
1790 current control if we're within a singleton template.
1791 When generating code for a property or field, use the name
1792 retrieved from the metadata by reflection instead of the one
1793 parsed from html. Fixes bug #82687. Patch from SunHo Kim
1794 <zsunno@gmail.com>, thanks!
1796 2007-08-29 Marek Habersack <mhabersack@novell.com>
1798 * CachingCompiler.cs: consider contents of the
1799 <compilation><assemblies> section when constructing a list of
1800 assemblies during compilation.
1802 * TemplateControlCompiler.cs: mark fields corresponding to the
1803 controls as global references.
1804 When control tree is constructed and the parent of the current
1805 builder is a TemplateBuilder marked with the TemplateInstance
1806 attribute set to Single, use the control's ID as the field
1807 name. This makes it possible to refer to controls inside templates
1808 by name instead of by using FindControl.
1810 2007-08-23 Marek Habersack <mhabersack@novell.com>
1812 * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
1813 and HttpApplication.LoadTypeFromBin.
1815 * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
1818 2007-08-21 Marek Habersack <mhabersack@novell.com>
1820 * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
1821 to look up assemblies in the binary path(s).
1823 2007-08-19 Juraj Skripsky <js@hotfeet.ch>
1825 * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
1826 for scope case insensitive. Fixes bug #82479.
1828 2007-08-14 Marek Habersack <mhabersack@novell.com>
1830 * TemplateControlCompiler.cs: remove dead code.
1832 * AssemblyBuilder.cs: include actual exception information when
1833 reporting inability to load a compiled assembly.
1835 * AppCodeCompiler.cs: remove unused variables.
1837 * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
1838 component collections, instead of the old Queue which implemented
1839 FIFO. Fixes situations when a control registered later for a
1840 certain prefix would not be used in preference to a previously
1841 registered one of the same name.
1843 2007-08-06 Marek Habersack <mhabersack@novell.com>
1845 * AspComponentFoundry.cs: properly add new foundry if the
1846 corresponding entry in the foundries collection is a Queue. Patch
1847 from Juraj Skripsky <juraj@hotfeet.ch>, thanks! Fixes bug #82285.
1849 2007-07-31 Marek Habersack <mhabersack@novell.com>
1851 * AspComponentFoundry.cs: do not overwrite previously registered
1852 foundries when a new one is registered with the same prefix. Fixes
1855 2007-07-18 Marek Habersack <mhabersack@novell.com>
1857 * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
1858 does not look up the Item/Items properties to determine the
1859 container type, instead it just returns the type reported by the
1860 builder passed to this method. This change makes the generated
1861 code match MS.NET. Fixes bug #82119.
1863 2007-07-02 Marek Habersack <mhabersack@novell.com>
1865 * TemplateControlCompiler.cs: don't use StartWith to see if a
1866 variable's value is a bind expression, as it erroneously renames
1867 all calls to methods starting with the string Bind. Use a regular
1868 expression now instead. Fixes bug #81928.
1870 2007-06-20 Marek Habersack <mhabersack@novell.com>
1872 * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
1874 * CachingCompiler.cs: as above
1875 * AspGenerator.cs: as above
1877 2007-06-13 Marek Habersack <mhabersack@novell.com>
1879 * TemplateControlCompiler.cs: make sure control has a writable
1880 TemplateControl property prior to assigning values to it.
1882 2007-06-09 Marek Habersack <mhabersack@novell.com>
1884 * TemplateControlCompiler.cs: TemplateControl is assigned for
1885 controls that are placed within ContentPlaceHolder and not for the
1886 ContentPlaceHolder itself.
1887 No longer add the overriden version of TemplateSourceDirectory to
1888 the generated source, all the work is now done in
1889 Control.TemplateSourceDirectory.
1891 * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
1892 slash, for compatibility with MS.NET
1894 2007-06-05 Marek Habersack <mhabersack@novell.com>
1896 * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
1897 profile uses the TemplateControl property instead of Parent. This
1898 allows to return the correct path.
1900 2007-06-01 Marek Habersack <mhabersack@novell.com>
1902 * TemplateControlCompiler.cs: be case-insensitive when looking for
1905 2007-05-29 Marek Habersack <mhabersack@novell.com>
1907 * ThemeDirectoryCompiler.cs: pass the skin file's
1908 virtual path to the skin file parser as its first paramenter, and
1909 not a physical path.
1911 2007-05-28 Marek Habersack <mhabersack@novell.com>
1913 * ResourceExpressionBuilder.cs: properly cast
1914 GetGlobalResourceObject calls to the type of the property being
1917 2007-05-25 Marek Habersack <mhabersack@novell.com>
1919 * TemplateControlCompiler.cs: Changed a few incorrect
1920 ObjectCreationExpression to the correct DelegateCreationExpression.
1923 2007-05-24 Marek Habersack <mhabersack@novell.com>
1925 * PageCompiler.cs: added support for the PreviousPageType directive.
1927 * Directive.cs: as above.
1929 2007-05-22 Marek Habersack <mhabersack@novell.com>
1931 * UserControlCompiler.cs: the Profile property should be present
1932 also in user controls.
1934 2007-05-15 Marek Habersack <mhabersack@novell.com>
1936 * ResourceExpressionBuilder.cs: added a static method to generate
1937 a GetLocalResourceObject call which properly handles types which
1938 cannot be converted from strings.
1940 * TemplateControlCompiler.cs: use code described above to generate
1941 code for properties assigned from resources.
1943 * WsdlBuildProvider.cs: make the code actually work - get the
1944 physical path of VirtualPath instead of converting it to absolute
1946 Do not generate source, add the code unit to assembly builder
1949 * XsdBuildProvider.cs: added
1951 2007-05-08 Marek Habersack <mhabersack@novell.com>
1953 * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
1954 so use a delegate create expression - it may make difference for
1955 languages other than C# (e.g. VisualBasic).
1957 2007-05-07 Marek Habersack <mhabersack@novell.com>
1959 * AspGenerator.cs: if the parser's language is implicit (i.e. set
1960 from the default configuration), the first script with the
1961 language attribute present sets the language of the parser.
1963 2007-05-04 Marek Habersack <mhabersack@novell.com>
1965 * TemplateControlCompiler.cs: do not query the parent for
1966 TemplateSourceDirectory if we are generating code for a Master
1969 2007-04-30 Marek Habersack <mhabersack@novell.com>
1971 * ConnectionStringsExpressionBuilder.cs: support expressions with
1972 suffixes .ProviderName and .ConnectionString (case-insensitie) and
1973 generate a call to GetConnectionStringProviderName in the former
1974 case. Fixes bug #81490
1976 * AppCodeCompiler.cs: support for cases when there exists a custom
1977 profile class but there is no App_Code directory or it's
1978 empty. Fixes bug #81489.
1980 * TemplateControlCompiler.cs: fix generation of code for
1981 declarative attribute assignments of the form Font-Size="small"
1982 (i.e. when a font size is assigned a symbolic, relative size
1983 value). This fixes for example rendering of the 0th level of
1986 2007-04-27 Marek Habersack <mhabersack@novell.com>
1988 * AppCodeCompiler.cs: do not look at the number of errors, check
1989 the compiler return code instead.
1990 Resolve assembly names from the global web.config to their
1991 locations before passing them to the compiler provider.
1993 * AssemblyBuilder.cs: as above
1995 * AppResourcesCompiler.cs: as above
1997 * AspComponentFoundry.cs: formatting changes.
1998 AssemblyFoundry looks for the specified namespace+type in the
1999 top-level assemblies if necessary.
2001 2007-04-26 Marek Habersack <mhabersack@novell.com>
2003 * AssemblyBuilder.cs: handle compilation failures in a better
2006 * PageCompiler.cs: the Master property must be in the partial
2007 class if present. Fixes bug #81442
2009 2007-04-20 Marek Habersack <mhabersack@novell.com>
2011 * AppCodeCompiler.cs: fix App_Code build when the directory
2012 contains both known and unknown files.
2014 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
2016 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
2019 2007-04-19 Marek Habersack <mhabersack@novell.com>
2021 * AppCodeCompiler.cs: yet another method of detecting if we have a
2024 * BaseCompiler.cs: as above
2026 * AspComponentFoundry.cs: implemented delayed loading of control
2027 assemblies. Fixes bug #81058.
2029 2007-04-19 Gert Driesen <drieseng@users.sourceforge.net>
2031 * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
2032 then use it instead of the default ASP namespace. Fixes part of bug
2035 2007-04-19 Marek Habersack <mhabersack@novell.com>
2037 * BaseCompiler.cs: don't look at the number of profile properties
2038 when deciding if we have a custom profile. It is possible to have
2039 a profile that just inherits from a base class and does not list
2040 any custom properties. Fixes bug #81396.
2042 * AppCodeCompiler.cs: as above
2044 2007-04-15 Marek Habersack <mhabersack@novell.com>
2046 * AppCodeCompiler.cs: properly convert physical file path to
2047 virtual path for build providers.
2048 Make sure there's actually anything to compile.
2050 2007-04-11 Marek Habersack <mhabersack@novell.com>
2052 * AppCodeCompiler.cs: move custom profile type check till after
2053 the App_Code compilation is done. That way we can have custom
2054 profile providers in there. Fixes bug #81307.
2056 2007-04-10 Marek Habersack <mhabersack@novell.com>
2058 * AppResourceFilesCollection.cs: watch App_LocalResources for
2061 2007-04-06 Marek Habersack <mhabersack@novell.com>
2063 * BaseCompiler.cs: display the source of the file in which the
2064 error actually happened if the file exists, or the unit
2067 2007-04-03 Marek Habersack <mhabersack@novell.com>
2069 * AppResourcesCompiler.cs: global resources are put in the
2070 "Resources." namespace while local ones are not. Fixes bug #81174
2071 which was reopened after r75261.
2073 2007-03-26 Marek Habersack <mhabersack@novell.com>
2075 * TemplateControlCompiler.cs: refactor assining properties from
2076 resources a bit to support pages and user controls. Fixes bug
2078 Process meta:resourcekey after all the field/attribute assignments
2079 are done. Fixes bug #80809.
2080 Clean the code up a bit.
2081 Use GetExpressionFromString to generate a correct expression for
2082 custom page/control attributes. Fixes bug #81132.
2084 2007-03-21 Marek Habersack <mhabersack@novell.com>
2086 * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
2087 AssignAppRelativeVirtualPath if the attribute was defined.
2089 * TemplateControlCompiler.cs: added support for setting custom
2090 attributes of a base class from the Page or Control directive
2093 2007-03-20 Marek Habersack <mhabersack@novell.com>
2095 * ResourceExpressionBuilder.cs: if the resource class key is null
2096 or empty, call GetLocalResourceObject, if not,
2097 GetGlobalResourceObject. Fixes bug #81174.
2099 2007-03-16 Marek Habersack <mhabersack@novell.com>
2101 * AppCodeCompiler.cs: produce message that makes more sense.
2103 2007-03-15 Marek Habersack <mhabersack@novell.com>
2105 * AppResourcesCompiler.cs: handle global resource keys with dots
2106 the way MS.NET does. All the dots are replaced with underscores
2107 when generating the stronly-typed property.
2109 2007-03-14 Marek Habersack <mhabersack@novell.com>
2111 * AppResourcesCompiler.cs: Fix a bug with global resources file
2112 grouping where no translated resources were processed due to base
2115 * TemplateControlCompiler.cs: hadle situations when there exist a
2116 control in the page with id matching the name of a field/property
2117 in the parent class. In this case we use 'protected new' to
2118 override the parent.
2120 2007-03-13 Marek Habersack <mhabersack@novell.com>
2122 * AspParser.cs: fix an off-by-one parsing bug with server-side
2125 * PageThemeCompiler.cs: let property builders through, stop the
2126 builders that have no control type. Fixes bug #81092
2128 * PageCompiler.cs: interfaces are to be implemented by the parent
2129 partial class, not the generated one.
2131 * AppResourceFilesCollection.cs: added separate constructor for
2132 local resources handling.
2134 * TemplateControlCompiler.cs: request the local resource object
2135 with proper virtual path.
2136 Put field declarations for controls in the partial class.
2137 Make sure builders are in valid state before trying to use them.
2139 * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
2140 property in the page/control constructor.
2141 Change the generated code model for pages/controls to comply with
2142 the way MS.NET does (partial class contains only two properties
2143 plus declarations of all the controls, the actual control/page
2144 class inherits from the partial class). Fixes bug #81001.
2146 * AppResourcesCompiler.cs: does not require specifying manually
2147 whether it's a global or local resource compiler anymore. New
2148 constructors take care of that.
2149 Changed to compile local resources on demand, when a control/page
2152 2007-03-12 Marek Habersack <mhabersack@novell.com>
2154 * AspParser.cs: revert r73587 as it breaks more than it fixes.
2156 * AspComponentFoundry.cs: try to register foundries from App_Code
2157 assemblies if tag prefix and its namespace are defined. Fixes bug
2160 * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
2161 of Assembly instances, not strings.
2163 * CachingCompiler.cs: make sure items in the CodeAssemblies and
2164 TopLevelAssemblies are really instances of the Assembly class
2165 before trying to use them.
2166 CodeAssemblies is a collection of Assembly instances, not
2169 * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
2170 assemblies, not paths to assemblies.
2172 2007-03-10 Marek Habersack <mhabersack@novell.com>
2174 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
2175 CreateProfileProperty and InternalCreatePageProperty to
2176 BaseCompiler from PageCompiler.
2178 * GlobalAsaxCompiler.cs: generate the Profile property for the
2181 2007-03-09 Marek Habersack <mhabersack@novell.com>
2183 * AppCodeCompiler.cs: Add the GetProfile method to the
2184 ProfileCommon auto-generated class.
2186 * AppResourcesCompiler.cs: attempt to load the resource file
2187 earlier in the process, to gracefully handle empty files.
2189 * ThemeDirectoryCompiler.cs: make compiled themes depend on the
2190 .skin and .css files composing the theme.
2192 2007-03-05 Marek Habersack <mhabersack@novell.com>
2194 * PageThemeCompiler.cs: Use correct theme path for
2195 AppRelativeTemplateSourceDirectory.
2196 Do not process builders of type CodeRenderBuilder.
2197 Make sure builder.ControlType is not null before depending on it.
2199 * ThemeDirectoryCompiler.cs: theme parser should be passed the
2200 virtual directory of the theme.
2202 2007-03-03 Marek Habersack <mhabersack@novell.com>
2204 * PageCompiler.cs: Added support for setting the
2205 MaintainScrollPositionOnPostBack property if the corresponding
2206 page directive attribute is found.
2208 * Directive.cs: added the MaintainScrollPositionOnPostBack and
2209 LinePragmas directives.
2211 2007-03-02 Marek Habersack <grendello@gmail.com>
2213 * AppCodeCompiler.cs: Correctly process App_Code directories which
2214 have no compilable files in the top-level directory. Fixes bug
2216 Write preservation files for the App_Code assemblies.
2218 2007-03-01 Marek Habersack <grendello@gmail.com>
2220 * AspParser.cs: fix GetVerbatim for cases when the end is
2221 e.g. --> or --%> and the string matched is ---> or ---%>
2222 respectively. The new code always backs out to make sure the end is
2225 2007-02-27 Marek Habersack <grendello@gmail.com>
2227 * TemplateControlCompiler.cs: ParseExpression returns an object,
2228 don't assume any concrete type.
2229 Use the current culture when converting the expression to a
2232 * ConnectionStringsExpressionBuilder.cs: Implement support for
2233 expressions of the <%$ ConnectionStrings:StringName %> form
2235 2007-02-19 Marek Habersack <grendello@gmail.com>
2237 * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
2239 2007-02-16 Marek Habersack <grendello@gmail.com>
2241 * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
2242 is referenced twice by the compiler(s).
2244 * TemplateControlCompiler.cs: Fix the problem with cultures which
2245 have a comma as their decimal separator and font/whatever
2246 units. New code does not reparse the text representation of the
2247 unit on the runtime (e.g. 0.9em) but instead it constructs the
2248 property using the FontUnit/Unit constructors which take,
2249 respectively, Unit and double/unittype parameters. This avoids
2250 culture-specific parsing.
2251 Also fix converting from invariant strings in a culture-aware
2252 environment (e.g. in a page that uses Culture="auto") during the
2255 2007-02-12 Marek Habersack <grendello@gmail.com>
2257 * PreservationFile.cs: Support preservation (assembly mapping)
2258 files (the ones with .compiled extension in the ASP.NET temporary
2259 directory). This one implements a loader/saver class.
2261 * AppResourcesCompiler.cs: support for assembly name mapping.
2263 * AppCodeCompiler.cs: support for assembly name mapping.
2265 2007-02-08 Marek Habersack <grendello@gmail.com>
2267 * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
2269 * AspComponentFoundry.cs: Avoid duplicate control registration
2272 * ResourceExpressionBuilder.cs: Make sure all the global resources
2273 are looked up using the "Resources." prefix.
2275 * AppResourcesCompiler.cs: Make sure all the global resources are
2276 embedded with the "Resources." prefix.
2278 2007-02-02 Marek Habersack <grendello@gmail.com>
2280 * AspGenerator.cs: Move the cache insert code to a separate method, for
2281 use from other places.
2283 * AspComponentFoundry.cs: Register controls mentioned in web.config, but
2284 defer their compilation to the moment when they are actually requested.
2286 2007-01-22 Marek Habersack <grendello@gmail.com>
2288 * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
2290 2007-01-20 Miguel de Icaza <miguel@novell.com>
2292 * ClientBuildManager.cs: Remove unused variable (this could be a
2293 real problem, we never use the appPhysicalTargetDir)
2295 * AssemblyBuilder.cs: Remove unused field.
2297 * AppResourceFilesCollection.cs: Remove unused field.
2299 * TemplateControlCompiler.cs (GetExpressionFromString): Remove
2302 * AppResourcesCompiler.cs: Remove unused variable.
2304 * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
2307 * PageCompiler.cs: Put InternalCreatePageProperty inside the
2308 NET_2_0 block to eliminate warnings.
2310 2007-01-20 Gert Driesen <drieseng@users.sourceforge.net>
2312 * BaseCompiler.cs: Fixed build on 1.0 profile.
2314 2007-01-20 Marek Habersack <grendello@gmail.com>
2316 * BaseCompiler.cs: If the control base type is in the root
2317 namespace, make sure global:: is prepended to it.
2319 * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
2320 mark it as such in the generated code as well.
2322 * AppCodeCompiler.cs: Include debug information if configured in
2323 web.config. Fixes bug #80096.
2325 2007-01-17 Marek Habersack <grendello@gmail.com>
2327 * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
2328 App_GlobalResources) when compiling App_Code sources.
2330 * CachingCompiler.cs: Reference toplevel assemblies when compiling
2333 * AppResourcesCompiler.cs: Close the streams properly.
2335 * AspGenerator.cs: Don't ignore thead/tbody anymore.
2337 2007-01-15 Marek Habersack <grendello@gmail.com>
2339 * WsdlBuildProvider.cs: New build provider for WSDL files.
2340 Compile only when System.Web.Services are present.
2342 * TemplateControlCompiler.cs: Forgotten in the previous commit -
2343 don't pass the current culture to GetLocalResourceObject, let the
2344 method figure it out on its own.
2346 2007-01-05 Marek Habersack <grendello@gmail.com>
2348 * AppResourceFilesCollection.cs: new class to keep and manage
2349 collection of resource files for the App_{Global,Local}Resources
2352 * TemplateControlCompiler.cs: rely on
2353 HttpContext.GetLocalResourceObject to select the correct culture.
2355 * AppResourceFileInfo.cs: new class for keeping resource files
2358 * AppResourcesCompiler.cs: new implementation.
2360 2006-12-20 Marek Habersack <grendello@gmail.com>
2362 * AssemblyBuilder.cs: add an internal version of the
2363 AddCodeCompileUnit method.
2365 * AppCodeCompiler.cs: implement support for ProfileCommon
2366 generation from properties named in the <profile> element in
2369 * PageCompiler.cs: create the Profile property in 2.0 code.
2371 2006-12-12 Vladimir Krasnov <vladimirk@mainsoft.com>
2373 * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
2375 2006-12-10 Igor Zelmanovich <igorz@mainsoft.com>
2377 * ThemeDirectoryCompiler.cs: refactoring.
2379 2006-11-28 Marek Habersack <grendello@gmail.com>
2381 * BuildManager.cs: Add an internal property to signal whether or
2382 not we have any resources from App_{Global,Local}Resources
2384 * AspGenerator.cs: Register controls from
2385 system.web/pages/controls collection before parsing.
2387 * AppResourcesCompiler.cs: Let the build process know if we have
2388 compiled any resources from App_{Global,Local}Resources
2390 2006-11-27 Marek Habersack <grendello@gmail.com>
2392 * CachingCompiler.cs: Automatically reference App_Code
2395 * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
2398 2006-11-25 Marek Habersack <grendello@gmail.com>
2400 * AppResourcesCompiler.cs: small optimizations.
2402 * AppResourceFilesCompiler.cs: small optimizations.
2404 2006-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2406 * WebServiceCompiler.cs: add the type to the cache after getting it
2407 from the compiled assembly.
2409 2006-11-20 Marek Habersack <grendello@gmail.com>
2411 * AppCodeCompiler.cs: Reference assemblies listed in
2412 system.web/compilation/assemblies.
2413 Don't create empty assemblies.
2415 2006-11-19 Igor Zelmanovich <igorz@mainsoft.com>
2417 * TemplateControlCompiler.cs: fixed:
2418 When <%# Bind(...) %>-expression is used more then once for same control
2419 The variable associated with this control is declared only once.
2421 2006-11-18 Marek Habersack <grendello@gmail.com>
2423 * AppResourceFilesCompiler.cs: Fixed an exception thrown when
2424 files with names like File.resources or File.resx are found in the
2425 resource directories.
2427 2006-11-16 Marek Habersack <grendello@gmail.com>
2429 * ForceCopyBuildProvider.cs: Added the build provider for
2432 * MasterPageBuildProvider.cs: Added the build provider for Master
2435 * IgnoreFileBuildProvider.cs: Make the class sealed.
2437 * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
2438 correctly uses the BuildProviderCollection to retrieve the
2439 appropriate builder and maps the physical input file path into
2440 application relative path when setting the virtual path of the
2443 2006-11-13 Marek Habersack <grendello@gmail.com>
2445 * AssemblyBuilder.cs: Added referenced assemblies support. Added a
2446 constructor with just the CodeDomProvider argument. CreateCodeFile
2447 now uses the code provider's file extension. Added internal method
2448 to add pre-generated source code files. Added a BuildAssembly
2449 overload that takes no virtual path as the
2450 parameter. BuildAssembly now uses an array of source files instead
2451 of compile units and also handles embedded resources and
2452 referenced assemblies. BuildAssembly deletes the temporary files
2453 if MONO_ASPNET_NODELET isn't set in the environment.
2455 * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
2456 creation. Use the build providers collection to build unknown
2457 files in App_Code. Use AssemblyBuilder to compile the assembly.
2459 * AppResourceFilesCompiler.cs: Use the FileUtils methods for
2460 temporary file creation.
2462 * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
2465 * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
2468 * PageBuildProvider.cs: Added the BuildProviderAppliesTo
2471 * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
2474 * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
2477 2006-11-08 Marek Habersack <grendello@gmail.com>
2479 * BuildProvider.cs: Implemented the GetCustomString
2480 method. Removed the necessity to retrieve the CompilationSection
2481 twice when GetDefaultCompilerType is called.
2483 * AppResourcesCompiler.cs: Added resource compiler results
2486 * AppCodeCompiler.cs: The App_Code compiler classes
2488 * BuildManager.cs: Implement the CodeAssemblies property.
2489 Added an internal TopLevelTypes property to be used in the custom
2490 GetType methods. Implemented the GetCompiledCustomString method.
2491 Implemented the GetType method overloads. Implemented the
2492 GetVirtualPathDependencies method.
2494 * BaseCompiler.cs: Reference the assemblies from App_Code, if any
2496 2006-10-18 Marek Habersack <grendello@gmail.com>
2498 * TemplateControlCompiler.cs: add support for resource
2499 expressions in tag attributes.
2501 * ResourceExpressionBuilder.cs: add support for resource
2502 expressions in tag attributes.
2504 * BaseCompiler.cs: add global/local resource assemblies to
2505 compilation references, if present.
2507 * AppResourcesCompiler.cs: global/local resources compiler.
2509 * AppResourceFilesCompiler.cs: compiler of resource files.
2511 2006-10-03 Igor Zelmanovich <igorz@mainsoft.com>
2513 * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
2514 At run time, the Bind method calls the Eval method, if there is DataItem
2516 If there is DataItem == null (like InsertItemTemplate in FormView) Bind
2517 method don't raise exception and works properly to extract data from
2518 bounded controls on postback.
2520 2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2522 * AspGenerator.cs: if we are tracking non-server tags for
2523 well-formedness, handle tags that do not need to be closed (br, img,...)
2526 2006-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2528 * PageCompiler.cs: support the EnableEventValidation attribute.
2530 2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2532 * AspGenerator.cs: after parsing an include file, don't error out if we
2533 still have opened tags unless this was the last file to parse. Fixes
2536 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
2538 * ParseException.cs: Ensure the source file stream is closed.
2540 2006-08-25 Kornél Pál <kornelpal@gmail.com>
2542 * AppSettingsExpressionBuilder.cs: Use assembly name constants.
2543 * ConnectionStringsExpressionBuilder.cs: Use name reference
2545 * ResourceExpressionBuilder.cs: Use assembly name constants.
2547 2006-08-20 Vladimir Krasnov <vladimirk@mainsoft.com>
2549 * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
2551 2006-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2553 * ClientBuildManager.cs: handle domain shutdown and unload.
2554 Implemented some properties. Commented.
2556 2006-08-10 Andrew Skiba <andrews@mainsoft.com>
2558 * ThemeDirectoryCompiler.cs: render css path as a virtual path.
2560 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
2562 * added ThemeDirectoryCompiler.jvm.cs
2564 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2566 * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
2567 the property Items does not exist. Patch by Marek Habersack that fixes
2570 2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2572 * TemplateControlCompiler.cs: support assigning nullable types.
2573 Patch by Marek Habersack that fixes bug #78970.
2575 2006-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2577 * TemplateControlCompiler.cs: make password work again.
2579 2006-06-21 Juraj Skripsky <js@hotfeet.ch>
2581 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2582 MS.NET handles nested quotes differently for server controls and
2583 for "normal" controls. Add a property "AlternatingQuotes" to the
2584 tokenizer and let the parser decide whether it is well-formed or not.
2586 2006-06-20 Andrew Skiba <andrews@mainsoft.com>
2588 * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
2589 UrlPropertyAttribute.
2591 2006-06-18 Andrew Skiba <andrews@mainsoft.com>
2593 * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
2594 generating code for assignment statement and DataBind event.
2596 2006-06-15 Juraj Skripsky <js@hotfeet.ch>
2598 * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
2599 Don't allow an attribute value to contain the same quote characters
2600 as the ones used for delimiting the value itself. Add a token
2601 NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
2603 2006-06-08 Konstantin Triger <kostat@mainsoft.com>
2605 * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
2607 2006-04-24 Andrew Skiba <andrews@mainsoft.com>
2609 * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
2611 2006-04-23 Andrew Skiba <andrews@mainsoft.com>
2613 * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
2614 array of style sheets from the parser
2615 * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
2616 put them in LinkedStyleSheets of PageThemeParser
2618 2006-04-20 Chris Toshok <toshok@ximian.com>
2620 * BaseCompiler.cs: for 2.0, emit the correct namespace and class
2621 names in the case where you use "NS.ClassName" in the Inherits
2622 attribute. Fixes bug #78135.
2624 2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2626 * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
2627 already acquired the lock even when we might have not created the 'key'
2628 to the compilation ticket.
2630 2006-04-16 Andrew Skiba <andrews@mainsoft.com>
2632 * ThemeDirectoryCompiler.cs: add to the directory parser all the
2633 assemblies found by PageThemeFileParsers
2635 2006-04-12 Lluis Sanchez Gual <lluis@novell.com>
2637 * TemplateControlCompiler.cs: Properly read all content of
2640 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
2642 * TemplateControlCompiler.cs : fix for partial parsers
2644 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
2646 * ThemeDirectoryCompiler.cs : map the virtual path to the physical
2649 2006-04-08 Miguel de Icaza <miguel@novell.com>
2651 * TemplateControlCompiler.cs: An attempt to fix the regression
2652 introduced in r58505 (a bug fix for 77762). This was reported in
2653 the mailing list with a batch of new 2.0 failures.
2655 We really need a test suite in NUnit to check on ASP.NET aspx
2658 2006-03-27 Robert Jordan <robertj@gmx.net>
2660 * CachingCompiler.cs: change the compilation locking scheme
2661 from "one mcs per process" to "one mcs per file".
2663 2006-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2665 * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
2666 StringPropertyBuilder.
2668 2006-03-24 Chris Toshok <toshok@ximian.com>
2670 * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
2671 if system.web/compilation doesn't list a compiler for our
2674 2006-03-13 Chris Toshok <toshok@ximian.com>
2676 * TemplateControlCompiler.cs (InitMethod): when generating the
2677 call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
2678 argument to it. Only do that if the class we're compiling is
2679 actually a subclass of Page. If it's not, pass this.Page.
2681 2006-03-07 Chris Toshok <toshok@ximian.com>
2683 * AspGenerator.cs: refactor the parsing code so that we can
2684 initiate parsing from outside this class.
2686 * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
2687 method, add our StyleSheetTheme assignment here.
2688 (AppendStatementsToFrameworkInitialize): rename AddStatements* to
2691 * TemplateControlCompiler.cs (EnsureID): make protected.
2692 (CreateAssignStatementsFromAttributes): same
2693 (AddChildCall): same.
2694 (CreateControlTree): same.
2695 (CreateFrameworkInitializeMethod): change
2696 "AddStatementsToFrameworkInitialize" to
2697 "AppendStatementsToFrameworkInitialize", and add call to
2698 "PrependStatementsToFrameworkInitialize" before the generation of
2699 "base.FrameworkInitialize()."
2701 * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
2703 2006-03-07 Chris Toshok <toshok@ximian.com>
2705 * ThemeDirectoryCompiler.cs: new file.
2707 * PageThemeCompiler.cs: new file.
2709 2006-03-07 Chris Toshok <toshok@ximian.com>
2711 * BaseCompiler.cs: fix typo in "initialize" in multiple places.
2712 (Init): move the CreateMethods call here.
2714 2006-03-02 Chris Toshok <toshok@ximian.com>
2716 * TemplateControlCompiler.cs (InitMethod): emit an assignment for
2717 SkinID just after the creation of our object, and right after that
2718 call "_ctrl.ApplyStyleSheetSkin (page)".
2719 (CreateAssignStatementsFromAttributes): split out the majority of
2720 this code to CreateAssignStatementFromAttribute, and change this
2721 method to simply a loop over the attribute keys. In the 2.0 case,
2722 skip the SkinID property, since that's handled explicitly in
2725 * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
2726 for Theme and StyleSheetTheme.
2728 2006-02-23 Chris Toshok <toshok@ximian.com>
2730 * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
2731 change from ContentControlBuilderInternal to
2732 ContentBuilderInternal.
2733 (AddCodeRender): same.
2735 2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2737 * AssemblyBuilder.cs:
2738 * BuildManager.cs: compile the assembly from AssemblyBuilder and use
2739 GetGeneratedType() on the BuildProvider instead of loading the assembly
2740 and trying a wild guess at the type name.
2742 2006-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2744 * GlobalAsaxCompiler.cs:
2746 * TemplateControlCompiler.cs: CreateMethods is now internal.
2748 * WebServiceBuildProvider.cs:
2749 * PageBuildProvider.cs:
2750 * UserControlBuildProvider.cs:
2751 * WebHandlerBuildProvider.cs: new build providers.
2753 * BuildProvider.cs: add assemblies.
2755 * BaseCompiler.cs: expose the provider and the compile unit through
2758 2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2760 * CompilerType.cs: implemented.
2762 * AssemblyBuilder.cs: implemented most of it.
2764 * WebServiceCompiler.cs:
2765 * CachingCompiler.cs: update 2.0 compiler instance creation code.
2767 * ClientBuildManager.cs: implemented some of its methods. Not yet
2770 * BuildManager.cs: the more interesting methods are implemented now.
2772 * BaseCompiler.cs: delete the temporary files in case of error.
2774 * BuildProvider.cs: implemented the Get*Compiler* protected methods.
2776 2006-02-07 Chris Toshok <toshok@ximian.com>
2778 * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
2779 calls to AddParsedSubObject to a special statement collection --
2780 builder.flushOutputStatements -- not to builder.method.Statements.
2781 (InitMethod): initially, set flushOutputStatements to
2782 method.Statements. If we're dealing with a ContentPlaceHolder,
2783 set flushOutputStatements to be the else block of a conditional we
2784 create. This causes the compiled control to fall back to the
2785 ContentPlaceHolder's child controls in case there's no
2786 corresponding Content template.
2787 (AddChildCall): use methodStatements instead of method.Statements.
2788 (CreateControlTree): same.
2790 * PageCompiler.cs (CreatePropertyAssign): factor out the
2791 string,string implementation and add one that also takes a
2792 CodeExpression; make the string,string implementation call the
2793 three arg one with thisRef.
2794 (AddStatementsToInitMethod): make use of the 3-arg form of
2795 CreatePropertyAssign to reduce code. Also, add support for
2796 setting the page's Title from the parser's Title.
2798 2006-02-07 Chris Toshok <toshok@ximian.com>
2800 * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
2801 assign __ctrl.MasterPageFile to our master page, if we have one.
2803 * PageCompiler.cs (CreateContructor): remove the MasterPageFile
2804 assignment from here.
2805 (AddStatementsToInitMethod): and move it here.
2807 * TemplateControlCompiler.cs (InitMethod): in the case where
2808 builder is a RootBuilder (we're building the __BuildControlTree
2809 method), call a virtual method so that subclasses can add their
2810 own statements to the method (used by both Page and MasterPage);
2811 Also, in the RootBuilder case, the argument should be the
2812 parser.ClassName type (the class we're building); lastly, expand
2813 the ContentPlaceHolder logic to include all the
2814 ContentTemplates/InstantiateIn magic.
2815 (AddStatementsToInitMethod): empty virtual method.
2816 (AddContentTemplateInvocation): ContentControlBuilder ->
2817 ContentControlBuilderInternal.
2818 (CreateControlTree): same.
2819 (CallBaseFrameworkInitialize): new function, create call to
2820 base.FrameworkInitialize.
2821 (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
2823 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2825 * IgnoreFileBuildProvider.cs: it's not public.
2826 * BuildProvider.cs: mostly implemented.
2828 2006-02-01 Chris Toshok <toshok@ximian.com>
2830 * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
2831 GetSection instead of GetWebApplicationSection.
2833 * CachingCompiler.cs: same.
2835 * AspGenerator.cs: same.
2837 * BaseCompiler.cs: same.
2839 2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2841 * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
2843 2006-01-22 Chris Toshok <toshok@ximian.com>
2845 * IgnoreFileBuildProvider.cs: build provider which does nothing.
2847 2006-01-22 Chris Toshok <toshok@ximian.com>
2849 * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
2850 Hashtable ctor to silence a couple of warning.
2851 (CompoundFoundry.ctor): same
2853 * Directive.cs (InitHash): use a 2.0 friendly form of the
2854 Hashtable ctor to silence a couple of warning.
2856 * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
2857 Hashtable ctor to silence a warning.
2858 (GetDictionary): same.
2860 2006-01-22 Chris Toshok <toshok@ximian.com>
2862 * AppSettingsExpressionBuilder.cs: implement this, patterning it
2863 after an example on msdn. Also, enable the ExpressionEditor
2864 attribute, but use the string rather than the Type overload so we
2865 won't have yet another circular dep.
2867 * ConnectionStringsExpressionBuilder.cs: partial implementation.
2868 Same deal with the ExpressionEditor attribute.
2870 * ResourceExpressionBuilder.cs: same deal with the
2871 ExpressionEditor attribute.
2873 2006-01-20 Chris Toshok <toshok@ximian.com>
2875 * ResourceExpressionBuilder.cs (ParseExpression): implement.
2877 * ResourceExpressionFields.cs: implement.
2879 2006-01-20 Chris Toshok <toshok@ximian.com>
2881 * ClientBuildManagerParameter.cs: implement.
2883 * ClientBuildManagerCallback.cs: this class contains an empty
2884 default implementation.
2886 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2888 * AspGenerator.cs: add support for 'src' in <script runat="server">.
2891 2006-01-04 Chris Toshok <toshok@ximian.com>
2893 * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
2896 * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
2898 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2900 * AspGenerator.cs: fix yesterday's fix.
2902 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2904 * AspGenerator.cs: only do special processing for <script> if it has
2905 the runat="server" attribute. Fixes bug #76918.
2907 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2909 * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
2912 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2914 * TemplateControlCompiler.cs: handle data bound attributes for html
2915 controls. Fixes bug #76785.
2917 2005-11-28 Chris Toshok <toshok@ximian.com>
2919 * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
2921 * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
2923 2005-11-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2925 * WebServiceCompiler.cs: fixed caching for web handlers.
2927 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2929 * AspParser.cs: don't change case for verbatim IDs.
2932 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2934 * AspParser.cs: when processing verbatim input, throw if we reach EOF
2935 before the expected end of the data.
2937 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2939 * CachingCompiler.cs:
2940 * WebServiceCompiler.cs: when caching a type loaded from an assembly
2941 that we didn't compile, make it depend on the file itself, not on a
2942 non-existing cache key. This problem affected performance of web
2943 services and .ashx, making unnecessary extra calls to LoadFrom every
2944 time the cache was cleared.
2946 2005-09-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2948 * BaseCompiler.cs: set the domain's DynamicBase property instead of
2949 guessing it in BaseCompiler.
2951 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2953 * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
2954 75146 for pages/controls.
2956 2005-08-09 Miguel de Icaza <miguel@novell.com>
2958 * WebServiceCompiler.cs: Use the new DynamicDir method.
2960 * BaseCompiler.cs: Use the DynamicBase property as a hint, but
2961 since this value is null most of the time, compute the real value.
2963 Added Bonus: if the directory has some kind of permission problem,
2964 try a different directory name.
2966 2005-07-13 Miguel de Icaza <miguel@novell.com>
2968 * AspGenerator.cs (AspGenerator.CheckLanguage): Use
2969 BaseParser.Context for the context.
2971 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2975 * TemplateControlCompiler.cs: use invariant culture versions of starts/
2978 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2980 * TemplateControlCompiler.cs: comparison between member name and the
2981 first part of the id provided by the user should also be
2982 case-insensitive. Fixes bug #75379.
2984 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2986 * CachingCompiler.cs: use cache.InsertPrivate.
2987 * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
2990 2005-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2992 * CachingCompiler.cs: create the assemly in the DynamicBase directory,
2993 as all the others, when compiling an assembly from a Src file. Fixes
2996 2005-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2998 * TemplateControlCompiler.cs: if the property is not found, don't forget
2999 about trying the field.
3001 2005-06-13 Lluis Sanchez Gual <lluis@novell.com>
3003 * Directive.cs: Register the MasterType directive.
3004 * PageCompiler.cs: If a MasterType is specified, add a type specific
3005 Master property. All this fixes bug #75192.
3007 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3009 * TemplateControlCompiler.cs: when mapping an attribute name to a field
3010 or property name, there's no need to try with every property and field,
3011 but just the one found when searching by name (no case). There was one
3012 call to ProcessPropertiesAndFields per property or field until found,
3013 now only one if the property/field is found, none otherwise.
3015 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3017 * TemplateControlCompiler.cs: allow more than 2 levels when looking for
3018 properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
3021 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3023 * BaseCompiler.cs: when the OutputAssembly is null, we can still have
3024 the assembly file there and be able to load it. Thanks to Rogerio and
3027 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3029 * AspParser.cs: InvariantCulture love.
3031 2005-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3033 * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
3034 as the one in Master is protected. Fixes bug #75157.
3036 2005-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3038 * AspComponentFoundry.cs: tagnames have precedence over types in
3039 assemblies when they use the same prefix. Fixes bug #71855.
3041 2005-05-03 Lluis Sanchez Gual <lluis@novell.com>
3043 * WebServiceCompiler.cs: Create the temp directory before
3044 creating the web service source code file.
3046 2005-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3048 * AspGenerator.cs: when checking languages, try to match other aliases
3049 too (ie, 'cs' == 'c#').
3051 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3053 * BaseCompiler.cs: check that DynamicBase directory exists before
3054 creating the TempFileCollection.
3056 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3058 * AspGenerator.cs: use a stack for non-server tags even before getting
3059 to a form. Fixes bug #70274.
3061 2005-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3063 * AspParser.cs: don't error out on ill formed tags if it's not a server
3064 tag (ie, allow something like '<table align="left cellpadding="0">' to
3065 work, as MS does. Fixes bug #67909.
3067 2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
3068 * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
3069 @Page/@Control directives to CodeDOM (VB.NET support)
3071 2005-04-19 Lluis Sanchez Gual <lluis@novell.com>
3073 * AspParser.cs: Fixed parsing of data binding tags in server
3074 tag attributes. Allow <%...%> blocks not assigned to
3075 attributes in client tags.
3076 * TagAttributes.cs: Make sure that data binding blocks in server
3077 tags are always assigned to attributes.
3079 2005-04-15 Lluis Sanchez Gual <lluis@novell.com>
3081 * TemplateControlCompiler.cs: Implemented support for two-way
3084 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
3086 * TemplateControlCompiler.cs: Use the new BindingContainerType
3087 property to find the type of the binding container.
3089 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
3091 * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
3092 for primitive types. Parse an empty color string as Color.Empty.
3093 Get the converter for a property using its PropertyDescriptor.
3095 2005-04-05 Lluis Sanchez Gual <lluis@novell.com>
3097 * TemplateControlCompiler.cs: Don't autogenerate IDs for
3098 controls inside Content template.
3100 2005-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3102 * TemplateControlCompiler.cs: make typedesc.aspx work again.
3104 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3106 * ExpressionBuilderContext.cs:
3107 * ExpressionBuilder.cs: implemented.
3109 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3111 * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
3113 2005-01-28 Lluis Sanchez Gual <lluis@novell.com>
3115 * TemplateControlCompiler.cs: When generating a property value,
3116 check for TypeConverterAttribute in the PropertyInfo, not only in the
3118 Implemented code generation using InstanceDescriptor, when the type
3119 converter supports conversion to that type.
3121 2005-01-21 Lluis Sanchez Gual <lluis@novell.com>
3123 * Directive.cs: Added MASTER directive.
3124 * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
3125 * PageCompiler.cs: Set the master file name when generating the page.
3126 * TemplateControlCompiler.cs: When generating the method for a
3127 content holder, register the content holder in the base MasterPage.
3128 Added method for registering a Content control for a MasterPage.
3129 Generate code for Content controls.
3131 2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
3133 * TemplateControlCompiler.cs: Get the container type from the
3134 template (if it was defined using TemplateContainerAttribute.
3136 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3138 * AspGenerator.cs: correctly process script tags that self-closing.
3141 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3143 * CachingCompiler.cs: when compiling a single .cs file, add the file
3144 itself to dependencies. Fixes bug #68788.
3146 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3148 * ControlBuilder.cs: don't close server tags when we get to a closing
3149 tag that is not applied to a server control. Fixes bug #60323.
3151 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3153 * WebServiceCompiler.cs: fix buglet in my last commit.
3155 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3158 * CachingCompiler.cs:
3159 * WebServiceCompiler.cs: correctly cache Type instead of the assembly
3160 for ashx/asmx. Otherwise we need to open the file and check for the
3161 class name in there. Thanks to Ben for pointing this out.
3163 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3166 * AspTokenizer.cs: prevent quotes from being swallowed when we're
3167 inside a server tag and they are the next non-whitespace character.
3170 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3172 * CachingCompiler.cs: don't try to watch for changes in system
3173 assemblies. Fixes bug #64871.
3175 2004-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3177 * AspGenerator.cs: handle builders that need to process inner text
3180 * Location.cs: added setters for the properties.
3182 2004-08-02 Duncan Mak <duncan@ximian.com>
3184 * BuildProviderResultFlags.cs:
3185 * IImplicitResourceProvider.cs:
3186 * ImplicitResourceKey.cs:
3187 * IResourceReader.cs: Added.
3189 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3191 * AspGenerator.cs: the path for file was treated as virtual, but it's
3192 physical. Fixes bug #61524.
3194 2004-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3196 * AspParser.cs: fixed case-sensitivity issues with #include and its
3197 attributes. Closes #61429.
3199 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3202 * WebServiceCompiler.cs: really create the dlls under DynamicBase
3204 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3206 * TemplateControlCompiler.cs: for system colors, use SystemColors class
3207 instead of Color. Fixes bug #60249.
3209 2004-06-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3211 * BaseCompiler.cs: try getting the Type from the cache before doing the
3212 real work. Remove temporary files right after successful compilation.
3214 * CachingCompiler.cs: added GetTypeFromCache.
3216 * UserControlCompiler.cs: nothing interesting.
3218 * WebServiceCompiler.cs: try getting the Type from the cache before
3219 doing anything else. Remove temp files on sucessful compilation.
3221 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3224 * CachingCompiler.cs: use a different prefix when caching compiler
3227 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3229 * BaseCompiler.cs: dynamicBase is now protected. Check
3230 MONO_ASPNET_NODELETE here.
3232 * TemplateControlCompiler.cs: if the type is not known but has a
3233 TypeConverter, invoke ConvertFromString in the generated code.
3235 * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
3236 the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
3238 * CachingCompiler.cs: updated compilation of web services and simple
3241 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3243 * CSCompiler.cs: removed.
3245 * CachingCompiler.cs: language independent compilation for single files.
3247 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3250 * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
3251 * CachingCompiler.cs: use HttpRuntime.Cache.
3253 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3255 * PageCompiler.cs: fixed Trace and add support for Buffer.
3257 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3259 * PageCompiler.cs: override CreateConstructor to add assignment for
3262 2004-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3264 * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
3265 of CodeObjectCreateExpression for the render method delegate. Thanks
3268 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3270 * BaseCompiler.cs: use DynamicBase for the output assemblies.
3272 2004-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3274 * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
3276 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3278 * AspParser.cs: indent a few lines.
3279 * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
3280 attribute value. This way we can simulate reading 2 characters ahead
3281 (one in ungetc and the other in Peek) and work with values like
3282 text/javascript. Fixes bug #57302.
3284 2004-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3286 * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
3288 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
3290 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
3292 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3294 * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
3296 2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3298 * AspGenerator.cs: error out when <object> server tag is not closed.
3299 Ignore any content inside it.
3301 2004-02-10 Jackson Harper <jackson@ximian.com>
3303 * AspTokenizer.cs: Collect discarded characters that might be used
3304 in client side scripts. Patch by Liyu Liu.
3305 * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
3307 2004-02-10 Jackson Harper <jackson@ximian.com>
3309 * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
3312 2004-01-30 Jackson Harper <jackson@ximian.com>
3314 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
3315 the build method takes strings not ints.
3317 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3319 * AspGenerator.cs: handle more possible errors in global.asax file.
3321 * BaseCompiler.cs: added utility methods for creating <object> related
3322 properties and fields.
3324 * GlobalAsaxCompiler.cs: keep around applications and session scope
3325 objects builders. Also a list of imports and assemblies added in
3328 * TemplateControlCompiler.cs: use base class methods for <object> stuff.
3330 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3332 * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
3333 pages more than once. Thanks to Eric Lindvall for pointing this out.
3335 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3337 * TemplateControlCompiler.cs: allow handling subproperties for other
3338 types than Style and Font. Fixes bug #53217.
3340 2004-01-16 Jackson Harper <jackson@ximian.com>
3342 * TagAttribute.cs: attributes can be stored as encoded html so we
3345 2004-01-14 Jackson Harper <jackson@ximian.com>
3347 * TemplateControlCompiler.cs: Is a user control is cached and
3348 shared use the controls type hashcode for the GUID so it will be
3349 the same across instances.
3351 2004-01-13 Jackson Harper <jackson@ximian.com>
3353 * TemplateControlCompiler.cs: If an item has the partial caching
3354 attribute build a PartialCachingControl in the parents __Build method.
3355 * BaseCompiler.cs: Add a method for adding class attributes to the
3357 * UserControlCompiler.cs: If caching is enabled on a user control
3358 add the PartialCachingAttribute to it.
3360 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3362 * PageCompiler.cs: invoke Request.ValidateInput if required.
3364 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3366 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
3367 #52521. Patch by liyul@hotmail.com.
3369 2003-12-25 Jackson Harper <jackson@ximian.com>
3371 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
3374 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3376 * PageCompiler.cs: assign the ErrorPage property if provided.
3378 2003-12-15 Jackson Harper <jackson@ximian.com>
3380 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
3381 method if they are set.
3383 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3385 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
3386 fail when runat="server" is applied to <tbody> with a parse error
3387 instead of waiting for a compilation error. Fixes bug #52157.
3389 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3391 * AspGenerator.cs: basic checking of ID validity. Throw a
3392 ParseException when mixing languages.
3394 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3396 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
3397 FrameworInitialize() if provided in @Page.
3401 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3403 * TemplateControlCompiler.cs: support for expressions of
3404 System.Drawing.Size type. Allow getting Color from comma separated
3405 numbers, which is not allowed by ColorConverter.
3407 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
3409 2003-11-13 Jackson Harper <jackson@ximian.com>
3411 * PageCompiler.cs: Call InitOutputCache when the OutputCache
3414 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3416 * AspGenerator.cs: use fileEncoding from configuration files.
3418 * PageCompiler.cs: add assign statements for ContentType,
3419 ResponseEncoding and CodePage if supplied.
3421 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3423 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
3424 a return statement for user controls with 'void' return type.
3426 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3428 * AspParser.cs: fixed bug #49627.
3430 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3432 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
3434 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3436 * Directive.cs: new attribute for @Page directive in 1.1.
3438 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3441 * TagAttributes.cs: allow duplicated runat=server attributes and display
3442 error page when duplicated attributes and runat is specified.
3444 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3446 * AspTokenizer.cs: moved token numbers above unicode.
3448 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3450 * AspGenerator.cs: don't process code render tags inside scripts. Check
3451 the language of the script and treat javascript as verbatim input.
3454 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3456 * TemplateControlCompiler.cs: fixed bug #48212.
3458 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3460 * WebServiceCompiler.cs: remove the temporary files here too.
3462 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3464 * AspGenerator.cs: fixed bug #46429.
3466 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3468 * Directive.cs: support @WebHandler.
3470 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3472 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
3474 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3476 * BaseCompiler.cs: first look for cached items, then generate the tree.
3477 This should speed things up.
3479 * CachingCompiler.cs: when compiling web services, use the full path of
3480 the .asmx file as key when caching.
3482 * WebServiceCompiler.cs: first look for cached items, then generate
3485 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3487 * AspParser.cs: more useful error information,
3490 * CachingCompiler.cs: honor the debug="true" option.
3492 * TemplateControlCompiler.cs: small fixes for templates.
3494 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3496 * BaseCompiler.cs: made Compiler property virtual.
3498 * CachingCompiler.cs: added support for compiling web services.
3500 * WebServiceCompiler.cs: implemented.
3502 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3504 * CachingCompiler.cs: fixed bug #43477.
3506 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3509 * AspTokenizer.cs: fixed bugs #43206 and #43371.
3511 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3513 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
3514 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
3517 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3519 * CompilationException.cs: don't add duplicated lines in the case that
3520 mcs reports several errors for the same one.
3522 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3524 * AspGenerator.cs: fully support including files, ie., treat them just
3525 as C treats #includes.
3527 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3531 * TagType.cs: Added support for server side includes.
3533 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3535 * CSCompiler.cs: actually add the list of referenced assemblies to the
3536 compiler options. Throw a CompilationException if there's an error.
3538 * CachingCompiler.cs: added a method to compile directly from a source
3541 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3543 * AspGenerator.cs: copy the location before setting the value for the
3546 * BaseCompiler.cs: changed parameters for CompilationException.
3548 * CompilationException.cs: it takes now line numbers and error
3549 descriptions from the CompilerErrorCollection.
3551 * Location.cs: used when a copy of an ILocation is needed.
3553 * ParseException.cs: implemented new methods to provide line numbers
3556 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
3558 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3560 * AspGenerator.cs: also support data bind syntax inside tags not
3561 processed as controls. Added debugging method.
3563 * TemplateControlCompiler.cs: reset the number of data binding handlers
3564 in the proper place. Small fix when getting the container type.
3566 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3568 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
3571 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3573 * AspGenerator.cs: handle code render syntax in tag attributes.
3575 * AspParser.cs: the constructor now takes a TextReader.
3577 * TemplateControlCompiler.cs: removed comment.
3579 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3581 * TemplateControlCompiler.cs: added support for data bound properties.
3583 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3585 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
3586 instead of their names.
3588 * AspElements.cs: removed. No longer needed.
3590 * AspGenerator.cs: this file is now in charge of interfacing between
3591 the parser and the compiler. It manages the creation of the
3592 ControlBuilder tree and the compilation of the CodeDOM tree.
3594 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
3595 of different Types, tags are just and id and a set of attributes.
3596 Implement ILocation interface.
3598 * AspTokenizer.cs: added a few methods to help the parser implementing
3601 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
3602 common to appliaction, page and user control, including the actual
3603 compilation and error handling.
3605 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
3607 * CachingCompiler.cs: simplified to use the new interfaces.
3609 * CompilationException.cs: it's now using CompilationResult to report
3612 * CompilationResult.cs: Removed file.
3614 * Directive.cs: to check for the validity of a directive.
3616 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
3619 * ILocation.cs: interface used to now the exact place where a parse
3622 * PageCompiler.cs: generates a couple of methods that are only used in
3625 * ParseException.cs: use the ILocation interface.
3627 * TagAttributes.cs: handles the attributes of the tags parsed.
3629 * TagType.cs: an enum for the different kinds of tags.
3631 * TemplateControlCompiler.cs: this is the one that does most of the
3632 conversion from teh ControlBuilder tree into a CodeDOM tree.
3634 * UserControlCompiler.cs: simplified as most of the work is done in
3637 * WebServiceCompiler.cs: dummy.
3639 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3641 * AspComponentFoundry.cs: added GetComponentType method.
3643 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3645 * AspTokenizer.cs: allow quotes inside server tags that are part of
3648 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
3651 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3653 * AspGenerator.cs: generate correct appbase path. It was working with
3654 mcs but not with csc.
3656 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
3658 * CachingCompiler.cs: quote source file.
3660 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3662 * AspGenerator.cs: now the Inherits attribute works as expected for
3665 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3667 * CompilationException.cs:
3668 * ParseException.cs: display the correct line number in error messages.
3670 * AspElements.cs: added TargetSchema attribute for control. It's
3673 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3675 * BaseCompiler.cs: fixed the hack to work under windows.
3676 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
3678 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3680 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
3682 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
3684 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
3685 app's private bin path
3687 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3691 * CachingCompiler.cs:
3692 * CompilationResult.cs:
3693 * GlobalAsaxCompiler.cs:
3695 * UserControlCompiler.cs: recompile the page if dependencies change.
3697 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3699 * AspGenerator.cs: corrected typo and wrong fix.
3701 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3703 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
3704 when used explicitly.
3706 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3708 * AspElements.cs: get the property Type for controls that use
3709 ParseChildren with a property name.
3711 * AspGenerator.cs: generate correct signature for the method that
3712 adds controls to the default property in ParseChildren.
3714 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3716 * AspGenerator.cs: rethrow exceptions that may come from parsing or
3717 compilation if a user control.
3719 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3721 * AspGenerator.cs: throw ParseException on parse
3724 * AspParser.cs: added Line and Column props.
3726 * CompilationException.cs: derives now from HtmlizedException.
3728 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
3730 * GlobalAsaxCompiler.cs:
3732 * UserControlCompiler.cs: pass the file name in the CompilationResult.
3734 * ParseException.cs: new exception.
3737 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3739 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
3742 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3744 * AspParser.cs: the parser fires events when it parses an element.
3746 * GlobalAsaxCompiler.cs:
3748 * UserControlCompiler.cs:
3749 * AspElements.cs: modified to use the new parser interface.
3751 * AspGenerator.cs: modified to use the new parser. Merge multiple text
3752 strings into one single LiteralControl.
3754 * AspTokenizer.cs: added Line and Column properties.
3756 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3758 * AspParser.cs: fixed bug #36929.
3760 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
3764 * CachingCompiler.cs: changes to work around spaces and
3765 directory-separators in the local filesystem.
3767 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3769 * AspGenerator.cs: make the generated file compile with csc after last
3772 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3774 * AspGenerator.cs: removed unused variable. Added support for
3775 properties/fields of type string [].
3777 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3779 * AspGenerator.cs: modified loading of the parent type now that
3780 Type.GetType is fixed.
3782 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3784 * AspGenerator.cs: cast to Control if the container does not implement
3787 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3789 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
3791 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3793 * AspElements.cs: attributes without value lacked a space afterwards.
3795 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3797 * AspGenerator.cs: functions for columns don't return anything. Fixed
3800 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3802 * AspGenerator.cs: add data bound controls to code render function.
3804 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3806 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
3807 controls. You can register 1 assembly plus any number of user controls
3808 under the same prefix.
3810 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
3811 Hack to allow @Register access to assemblies in other places than bin
3814 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3816 * AspElements.cs: added 'codebehind' attribute for page, control and
3817 application. It's ignored by MS, but allowed. Fixed typo.
3819 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3821 * AspGenerator.cs: fixed EnableSesssionState handling.
3823 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3825 * AspGenerator.cs: don't generate instance fields for pages/controls
3826 when the base class specified in the Inherits attribute already has
3827 them. Closes bug #36262.
3829 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3831 * AspGenerator.cs: generate code like 'control.XXX = value' also for
3832 public fields (properties were being handled in that way too).
3834 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3836 * AspGenerator.cs: now it uses the current HttpContext when creating
3837 user controls. TemplateSourceDirectory is no longer a dummy value.
3839 * GlobalAsaxCompiler.cs:
3841 * UserControlCompiler.cs: set the context which will be used to locate
3844 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3846 * AspGenerator.cs: added support for AutoEventWireup attribute in
3849 * CompilationResult.cs:
3850 * GlobalAsaxCompiler.cs:
3852 * UserControlCompiler.cs: store the options.
3854 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3856 * AspElements.cs: new method Tag.GetElements
3857 used to parse the inner contents of a tag looking for data binding or
3860 New property HtmlControlTag.ParseChildren allows
3861 differentiation of a couple of HtmlControls that has children as
3862 properties (namely HtmlTable and HtmlTableRow).
3864 * AspGenerator.cs: fixed container semantics to
3865 match BindingContainer one. Implemented Inherits attribute for page and
3868 Support HtmlControls that has ChildrenAsProperties.
3870 Generate code for data binding functions that matches the semantic of
3873 Handle data bound and code render attribute values.
3875 Set proper value return for TemplateSourceDirectory. Should be relative
3878 * BaseCompiler.cs: moved CompilerOptions and
3879 References handling here.
3881 * CachingCompiler.cs: copy result of compilation.
3883 * CompilationException.cs: simple ToString () implementation.
3885 * CompilationResult.cs: implemented CopyFrom and ToString.
3887 * GlobalAsaxCompiler.cs:
3889 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
3890 in the base class. Get all the types in the generated assembly and
3891 look for one that derives from the correct Type.
3893 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3895 * AspElements.cs: added @Application directive.
3897 * AspGenerator.cs: make it work also with application files. We
3898 currently generate an extra private function.
3900 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3902 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
3903 exists, it will be compiled into an HttpApplication derived class
3904 (directly or through a user-provided class).
3906 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3908 * AspGenerator.cs: fixed target file name and generated class name.
3909 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
3911 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3913 * AspGenerator.cs: reworked user control
3914 compilation. Provide the options as a Hashtable for use in compilation.
3915 Create the user controls in the private bin path of the domain.
3917 * BaseCompiler.cs: base class for the various compiler types.
3919 * CachingCompiler.cs: actually executes mcs and do some poor caching
3920 (it will use Cache when finished).
3922 * CompilationException.cs: this exception has enough information to
3923 generate a nice error page.
3924 * CompilationResult.cs: used in caching.
3926 * PageCompiler.cs: now derives from BaseCompiler
3928 * TemplateFactory.cs: no longer needed.
3930 * UserControlCompiler.cs: new class used when compiling user controls.
3931 * WebServiceCompiler.cs: derives from BaseCompiler.
3933 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3935 * AspElements.cs: added ServerComment class.
3936 * AspParser.cs: ignore ServerComments tags. Remove server comments when
3941 * PageCompiler.cs: check if the type is already cached before generating
3943 * TemplateFactory.cs: if csFile parameter is null, only checks if we
3944 already have the page compiled.
3946 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3948 * AspGenerator.cs: undo one-liner change.
3950 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3952 * AspGenerator.cs: removed a few hacks no longer needed.
3954 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3956 * PageCompiler.cs: tracing.
3957 * TemplateFactory.cs: cache compiled types and tracing.
3958 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
3960 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3962 * AspComponentFoundry.cs: fixed typo.
3963 * TemplateFactory.cs: use csc style options.
3964 * AspGenerator.cs: don't use FileDependencies property of base class.
3966 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3968 * System.Web.Compilation/AspElements.cs:
3969 * System.Web.Compilation/AspGenerator.cs:
3970 * System.Web.Compilation/AspParser.cs:
3971 * System.Web.Compilation/PageCompiler.cs:
3972 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
3973 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
3975 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3977 * AspElements.cs: added WebService directive.
3978 * WebServiceCompiler.cs: New file.
3980 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3982 * PageCompiler.cs: fixed compilation.
3984 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3986 * PageCompiler.cs: generate C# file using AspGenerator.
3988 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3990 * AspComponentFoundry.cs: LookupFoundry now returns bool.
3991 * AspGenerator.cs: New file.
3993 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3995 * AspComponentFoundry.cs: New file.
3996 * AspElements.cs: renamed Component to Aspcomponent.
3998 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4005 * TemplateFactory.cs: first steps to move xsp into System.Web.