ChangeLog 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. 2003-11-13 Jackson Harper <[email protected]>
  2. * PageCompiler.cs: Call InitOutputCache when the OutputCache
  3. directive is set.
  4. 2003-11-05 Gonzalo Paniagua Javier <[email protected]>
  5. * AspGenerator.cs: use fileEncoding from configuration files.
  6. * PageCompiler.cs: add assign statements for ContentType,
  7. ResponseEncoding and CodePage if supplied.
  8. 2003-10-21 Gonzalo Paniagua Javier <[email protected]>
  9. * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
  10. a return statement for user controls with 'void' return type.
  11. 2003-10-19 Gonzalo Paniagua Javier <[email protected]>
  12. * AspParser.cs: fixed bug #49627.
  13. 2003-10-14 Gonzalo Paniagua Javier <[email protected]>
  14. * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
  15. 2003-10-13 Gonzalo Paniagua Javier <[email protected]>
  16. * Directive.cs: new attribute for @Page directive in 1.1.
  17. 2003-10-11 Gonzalo Paniagua Javier <[email protected]>
  18. * AspParser.cs:
  19. * TagAttributes.cs: allow duplicated runat=server attributes and display
  20. error page when duplicated attributes and runat is specified.
  21. 2003-10-10 Gonzalo Paniagua Javier <[email protected]>
  22. * AspTokenizer.cs: moved token numbers above unicode.
  23. 2003-09-22 Gonzalo Paniagua Javier <[email protected]>
  24. * AspGenerator.cs: don't process code render tags inside scripts. Check
  25. the language of the script and treat javascript as verbatim input.
  26. Fixes bug #48592.
  27. 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
  28. * TemplateControlCompiler.cs: fixed bug #48212.
  29. 2003-09-18 Gonzalo Paniagua Javier <[email protected]>
  30. * WebServiceCompiler.cs: remove the temporary files here too.
  31. 2003-08-03 Gonzalo Paniagua Javier <[email protected]>
  32. * AspGenerator.cs: fixed bug #46429.
  33. 2003-08-01 Gonzalo Paniagua Javier <[email protected]>
  34. * Directive.cs: support @WebHandler.
  35. 2003-07-16 Gonzalo Paniagua Javier <[email protected]>
  36. * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
  37. 2003-07-08 Gonzalo Paniagua Javier <[email protected]>
  38. * BaseCompiler.cs: first look for cached items, then generate the tree.
  39. This should speed things up.
  40. * CachingCompiler.cs: when compiling web services, use the full path of
  41. the .asmx file as key when caching.
  42. * WebServiceCompiler.cs: first look for cached items, then generate
  43. the source file.
  44. 2003-07-04 Gonzalo Paniagua Javier <[email protected]>
  45. * AspParser.cs: more useful error information,
  46. * BaseCompiler.cs:
  47. * CachingCompiler.cs: honor the debug="true" option.
  48. * TemplateControlCompiler.cs: small fixes for templates.
  49. 2003-07-03 Gonzalo Paniagua Javier <[email protected]>
  50. * BaseCompiler.cs: made Compiler property virtual.
  51. * CachingCompiler.cs: added support for compiling web services.
  52. * WebServiceCompiler.cs: implemented.
  53. 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
  54. * CachingCompiler.cs: fixed bug #43477.
  55. 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
  56. * AspParser.cs:
  57. * AspTokenizer.cs: fixed bugs #43206 and #43371.
  58. 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
  59. * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
  60. of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
  61. reporting.
  62. 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
  63. * CompilationException.cs: don't add duplicated lines in the case that
  64. mcs reports several errors for the same one.
  65. 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
  66. * AspGenerator.cs: fully support including files, ie., treat them just
  67. as C treats #includes.
  68. 2003-05-04 Gonzalo Paniagua Javier <[email protected]>
  69. * AspGenerator.cs:
  70. * AspParser.cs:
  71. * TagType.cs: Added support for server side includes.
  72. 2003-05-03 Gonzalo Paniagua Javier <[email protected]>
  73. * CSCompiler.cs: actually add the list of referenced assemblies to the
  74. compiler options. Throw a CompilationException if there's an error.
  75. * CachingCompiler.cs: added a method to compile directly from a source
  76. file.
  77. 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
  78. * AspGenerator.cs: copy the location before setting the value for the
  79. control builders.
  80. * BaseCompiler.cs: changed parameters for CompilationException.
  81. * CompilationException.cs: it takes now line numbers and error
  82. descriptions from the CompilerErrorCollection.
  83. * Location.cs: used when a copy of an ILocation is needed.
  84. * ParseException.cs: implemented new methods to provide line numbers
  85. and souce file.
  86. * TemplateControlCompiler.cs: throw a ParseException where appropiate.
  87. 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
  88. * AspGenerator.cs: also support data bind syntax inside tags not
  89. processed as controls. Added debugging method.
  90. * TemplateControlCompiler.cs: reset the number of data binding handlers
  91. in the proper place. Small fix when getting the container type.
  92. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  93. * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
  94. value.
  95. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  96. * AspGenerator.cs: handle code render syntax in tag attributes.
  97. * AspParser.cs: the constructor now takes a TextReader.
  98. * TemplateControlCompiler.cs: removed comment.
  99. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  100. * TemplateControlCompiler.cs: added support for data bound properties.
  101. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  102. * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
  103. instead of their names.
  104. * AspElements.cs: removed. No longer needed.
  105. * AspGenerator.cs: this file is now in charge of interfacing between
  106. the parser and the compiler. It manages the creation of the
  107. ControlBuilder tree and the compilation of the CodeDOM tree.
  108. * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
  109. of different Types, tags are just and id and a set of attributes.
  110. Implement ILocation interface.
  111. * AspTokenizer.cs: added a few methods to help the parser implementing
  112. ILocation.
  113. * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
  114. common to appliaction, page and user control, including the actual
  115. compilation and error handling.
  116. * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
  117. * CachingCompiler.cs: simplified to use the new interfaces.
  118. * CompilationException.cs: it's now using CompilationResult to report
  119. errors.
  120. * CompilationResult.cs: Removed file.
  121. * Directive.cs: to check for the validity of a directive.
  122. * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
  123. in BaseCompiler.
  124. * ILocation.cs: interface used to now the exact place where a parse
  125. error happens.
  126. * PageCompiler.cs: generates a couple of methods that are only used in
  127. pages.
  128. * ParseException.cs: use the ILocation interface.
  129. * TagAttributes.cs: handles the attributes of the tags parsed.
  130. * TagType.cs: an enum for the different kinds of tags.
  131. * TemplateControlCompiler.cs: this is the one that does most of the
  132. conversion from teh ControlBuilder tree into a CodeDOM tree.
  133. * UserControlCompiler.cs: simplified as most of the work is done in
  134. its base classes.
  135. * WebServiceCompiler.cs: dummy.
  136. 2003-04-20 Gonzalo Paniagua Javier <[email protected]>
  137. * AspComponentFoundry.cs: added GetComponentType method.
  138. 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
  139. * AspTokenizer.cs: allow quotes inside server tags that are part of
  140. attribute values.
  141. * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
  142. compilation fails.
  143. 2003-03-27 Gonzalo Paniagua Javier <[email protected]>
  144. * AspGenerator.cs: generate correct appbase path. It was working with
  145. mcs but not with csc.
  146. * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
  147. * CachingCompiler.cs: quote source file.
  148. 2003-03-26 Gonzalo Paniagua Javier <[email protected]>
  149. * AspGenerator.cs: now the Inherits attribute works as expected for
  150. global.asax file.
  151. 2003-03-24 Gonzalo Paniagua Javier <[email protected]>
  152. * CompilationException.cs:
  153. * ParseException.cs: display the correct line number in error messages.
  154. * AspElements.cs: added TargetSchema attribute for control. It's
  155. ignored.
  156. 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
  157. * BaseCompiler.cs: fixed the hack to work under windows.
  158. * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
  159. 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
  160. * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
  161. 2003-03-17 George Kodinov <[email protected]>
  162. * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
  163. app's private bin path
  164. 2003-03-10 Gonzalo Paniagua Javier <[email protected]>
  165. * AspGenerator.cs:
  166. * BaseCompiler.cs:
  167. * CachingCompiler.cs:
  168. * CompilationResult.cs:
  169. * GlobalAsaxCompiler.cs:
  170. * PageCompiler.cs:
  171. * UserControlCompiler.cs: recompile the page if dependencies change.
  172. 2003-02-15 Gonzalo Paniagua Javier <[email protected]>
  173. * AspGenerator.cs: corrected typo and wrong fix.
  174. 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
  175. * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
  176. when used explicitly.
  177. 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
  178. * AspElements.cs: get the property Type for controls that use
  179. ParseChildren with a property name.
  180. * AspGenerator.cs: generate correct signature for the method that
  181. adds controls to the default property in ParseChildren.
  182. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  183. * AspGenerator.cs: rethrow exceptions that may come from parsing or
  184. compilation if a user control.
  185. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  186. * AspGenerator.cs: throw ParseException on parse
  187. error.
  188. * AspParser.cs: added Line and Column props.
  189. * CompilationException.cs: derives now from HtmlizedException.
  190. * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
  191. * GlobalAsaxCompiler.cs:
  192. * PageCompiler.cs:
  193. * UserControlCompiler.cs: pass the file name in the CompilationResult.
  194. * ParseException.cs: new exception.
  195. 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
  196. * AspGenerator.cs: remove "file://" from the private bin path. Fixes
  197. bug #37628.
  198. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  199. * AspParser.cs: the parser fires events when it parses an element.
  200. * GlobalAsaxCompiler.cs:
  201. * PageCompiler.cs:
  202. * UserControlCompiler.cs:
  203. * AspElements.cs: modified to use the new parser interface.
  204. * AspGenerator.cs: modified to use the new parser. Merge multiple text
  205. strings into one single LiteralControl.
  206. * AspTokenizer.cs: added Line and Column properties.
  207. 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
  208. * AspParser.cs: fixed bug #36929.
  209. 2003-01-21 Tim Haynes <[email protected]>
  210. * AspGenerator.cs:
  211. * BaseCompiler.cs:
  212. * CachingCompiler.cs: changes to work around spaces and
  213. directory-separators in the local filesystem.
  214. 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
  215. * AspGenerator.cs: make the generated file compile with csc after last
  216. change.
  217. 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
  218. * AspGenerator.cs: removed unused variable. Added support for
  219. properties/fields of type string [].
  220. 2003-01-16 Gonzalo Paniagua Javier <[email protected]>
  221. * AspGenerator.cs: modified loading of the parent type now that
  222. Type.GetType is fixed.
  223. 2003-01-10 Gonzalo Paniagua Javier <[email protected]>
  224. * AspGenerator.cs: cast to Control if the container does not implement
  225. INamingContainer.
  226. 2003-01-10 Gonzalo Paniagua Javier <[email protected]>
  227. * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
  228. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  229. * AspElements.cs: attributes without value lacked a space afterwards.
  230. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  231. * AspGenerator.cs: functions for columns don't return anything. Fixed
  232. typo.
  233. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  234. * AspGenerator.cs: add data bound controls to code render function.
  235. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  236. * AspComponentFoundry.cs: reworked to allow same prefix for multiple
  237. controls. You can register 1 assembly plus any number of user controls
  238. under the same prefix.
  239. * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
  240. Hack to allow @Register access to assemblies in other places than bin
  241. directory.
  242. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  243. * AspElements.cs: added 'codebehind' attribute for page, control and
  244. application. It's ignored by MS, but allowed. Fixed typo.
  245. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  246. * AspGenerator.cs: fixed EnableSesssionState handling.
  247. 2003-01-05 Gonzalo Paniagua Javier <[email protected]>
  248. * AspGenerator.cs: don't generate instance fields for pages/controls
  249. when the base class specified in the Inherits attribute already has
  250. them. Closes bug #36262.
  251. 2002-12-19 Gonzalo Paniagua Javier <[email protected]>
  252. * AspGenerator.cs: generate code like 'control.XXX = value' also for
  253. public fields (properties were being handled in that way too).
  254. 2002-12-18 Gonzalo Paniagua Javier <[email protected]>
  255. * AspGenerator.cs: now it uses the current HttpContext when creating
  256. user controls. TemplateSourceDirectory is no longer a dummy value.
  257. * GlobalAsaxCompiler.cs:
  258. * PageCompiler.cs:
  259. * UserControlCompiler.cs: set the context which will be used to locate
  260. the files.
  261. 2002-12-13 Gonzalo Paniagua Javier <[email protected]>
  262. * AspGenerator.cs: added support for AutoEventWireup attribute in
  263. @Page and @Control.
  264. * CompilationResult.cs:
  265. * GlobalAsaxCompiler.cs:
  266. * PageCompiler.cs:
  267. * UserControlCompiler.cs: store the options.
  268. 2002-12-12 Gonzalo Paniagua Javier <[email protected]>
  269. * AspElements.cs: new method Tag.GetElements
  270. used to parse the inner contents of a tag looking for data binding or
  271. code render tags.
  272. New property HtmlControlTag.ParseChildren allows
  273. differentiation of a couple of HtmlControls that has children as
  274. properties (namely HtmlTable and HtmlTableRow).
  275. * AspGenerator.cs: fixed container semantics to
  276. match BindingContainer one. Implemented Inherits attribute for page and
  277. control.
  278. Support HtmlControls that has ChildrenAsProperties.
  279. Generate code for data binding functions that matches the semantic of
  280. Container.
  281. Handle data bound and code render attribute values.
  282. Set proper value return for TemplateSourceDirectory. Should be relative
  283. to appPath.
  284. * BaseCompiler.cs: moved CompilerOptions and
  285. References handling here.
  286. * CachingCompiler.cs: copy result of compilation.
  287. * CompilationException.cs: simple ToString () implementation.
  288. * CompilationResult.cs: implemented CopyFrom and ToString.
  289. * GlobalAsaxCompiler.cs:
  290. * PageCompiler.cs:
  291. * UserControlCompiler.cs: removed CompilerOptions as it's now handled
  292. in the base class. Get all the types in the generated assembly and
  293. look for one that derives from the correct Type.
  294. 2002-11-30 Gonzalo Paniagua Javier <[email protected]>
  295. * AspElements.cs: added @Application directive.
  296. * AspGenerator.cs: make it work also with application files. We
  297. currently generate an extra private function.
  298. 2002-11-29 Gonzalo Paniagua Javier <[email protected]>
  299. * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
  300. exists, it will be compiled into an HttpApplication derived class
  301. (directly or through a user-provided class).
  302. 2002-11-27 Gonzalo Paniagua Javier <[email protected]>
  303. * AspGenerator.cs: fixed target file name and generated class name.
  304. * BaseCompiler.cs: reference assemblies in PrivateBinPath.
  305. 2002-11-26 Gonzalo Paniagua Javier <[email protected]>
  306. * AspGenerator.cs: reworked user control
  307. compilation. Provide the options as a Hashtable for use in compilation.
  308. Create the user controls in the private bin path of the domain.
  309. * BaseCompiler.cs: base class for the various compiler types.
  310. * CachingCompiler.cs: actually executes mcs and do some poor caching
  311. (it will use Cache when finished).
  312. * CompilationException.cs: this exception has enough information to
  313. generate a nice error page.
  314. * CompilationResult.cs: used in caching.
  315. * PageCompiler.cs: now derives from BaseCompiler
  316. * TemplateFactory.cs: no longer needed.
  317. * UserControlCompiler.cs: new class used when compiling user controls.
  318. * WebServiceCompiler.cs: derives from BaseCompiler.
  319. 2002-11-13 Gonzalo Paniagua Javier <[email protected]>
  320. * AspElements.cs: added ServerComment class.
  321. * AspParser.cs: ignore ServerComments tags. Remove server comments when
  322. in verbatim mode.
  323. Fixes #33482.
  324. * PageCompiler.cs: check if the type is already cached before generating
  325. the C# file.
  326. * TemplateFactory.cs: if csFile parameter is null, only checks if we
  327. already have the page compiled.
  328. 2002-11-02 Gonzalo Paniagua Javier <[email protected]>
  329. * AspGenerator.cs: undo one-liner change.
  330. 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
  331. * AspGenerator.cs: removed a few hacks no longer needed.
  332. 2002-10-27 Gonzalo Paniagua Javier <[email protected]>
  333. * PageCompiler.cs: tracing.
  334. * TemplateFactory.cs: cache compiled types and tracing.
  335. * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
  336. 2002-10-23 Gonzalo Paniagua Javier <[email protected]>
  337. * AspComponentFoundry.cs: fixed typo.
  338. * TemplateFactory.cs: use csc style options.
  339. * AspGenerator.cs: don't use FileDependencies property of base class.
  340. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  341. * System.Web.Compilation/AspElements.cs:
  342. * System.Web.Compilation/AspGenerator.cs:
  343. * System.Web.Compilation/AspParser.cs:
  344. * System.Web.Compilation/PageCompiler.cs:
  345. * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
  346. pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
  347. 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
  348. * AspElements.cs: added WebService directive.
  349. * WebServiceCompiler.cs: New file.
  350. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  351. * PageCompiler.cs: fixed compilation.
  352. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  353. * PageCompiler.cs: generate C# file using AspGenerator.
  354. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  355. * AspComponentFoundry.cs: LookupFoundry now returns bool.
  356. * AspGenerator.cs: New file.
  357. 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
  358. * AspComponentFoundry.cs: New file.
  359. * AspElements.cs: renamed Component to Aspcomponent.
  360. 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
  361. * AspElements.cs:
  362. * AspParser.cs:
  363. * AspTokenizer.cs:
  364. * ChangeLog:
  365. * PageCompiler.cs:
  366. * TemplateFactory.cs: first steps to move xsp into System.Web.