ChangeLog 18 KB

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