ChangeLog 19 KB

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