ChangeLog 19 KB

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