ChangeLog 112 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283
  1. 2009-02-25 Marek Habersack <[email protected]>
  2. * AspTokenizer.cs: put_back now uses a stack and allows more than
  3. one invocation when called inside a tag.
  4. * AspGenerator.cs: when a nested parser is used, pay attention to
  5. server tags found inside client tags and add them to the control
  6. tree.
  7. 2009-02-24 Marek Habersack <[email protected]>
  8. * BuildManager.cs: Path.Combine must not be passed null first
  9. parameter.
  10. 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
  11. * System.Web.Compilation/BuildManager.cs: updated comment.
  12. 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
  13. * TemplateControlCompiler.cs: lowercase place holder names
  14. * BuildManager.cs: initial support for precompiled sites.
  15. 2009-02-13 Marek Habersack <[email protected]>
  16. * AspParser.cs: added an event raised when parsing is complete.
  17. * AspGenerator.cs: added support for PageParserFilter which, if
  18. found, is used to control certain aspects of code parsing
  19. (accepting/rejecting control types, accepting/rejecting code
  20. snippets, parsing completion)
  21. Added the AddControl method, used by PageParserFilter when a
  22. custom filter wants to inject a control in the current control
  23. builder tree.
  24. 2009-02-05 Marek Habersack <[email protected]>
  25. * AppResourcesCompiler.cs: implemented a type resolver for
  26. ResXResourceReader so that it can correctly resolve
  27. System.Resources types which are normally found in
  28. System.Windows.Forms but are included by System.Web
  29. directly. Without the type resolver, code comparing types inside
  30. ResXResourceReader when file references are used in side the .resx
  31. file will not work correctly. The reason for that is that .resx
  32. files will name "System.Resources.ResXFileRef,
  33. System.Windows.Forms" as the file reference handler, while inside
  34. System.Web ResXFileRef will be of type
  35. "System.Resources.ResXFileRef, System.Web". Fixes bug #466059
  36. * GenericBuildProvider.cs: added a new virtual method, MapPath,
  37. which can be overriden by builders which need special handling of
  38. virtual path mapping.
  39. * PageBuildProvider.cs: provide implementation of
  40. GenericBuildProvider.MapPath which takes into account fake virtual
  41. paths. Fixes bug #463950
  42. 2009-01-26 Marek Habersack <[email protected]>
  43. * BuildManagerDirectoryBuilder.cs: added support for fake virtual
  44. paths.
  45. * CompilationException.cs: added a Message override to make error
  46. messages more useful.
  47. 2009-01-23 Gonzalo Paniagua Javier <[email protected]>
  48. * AspComponentFoundry.cs: no need to throw. Caller handles a null
  49. return value.
  50. 2009-01-23 Marek Habersack <[email protected]>
  51. * BuildManager.cs: use -1 for infinite wait in calls to
  52. Acquire{Reader,Writer}Lock ().
  53. 2009-01-22 Marek Habersack <[email protected]>
  54. * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
  55. attribute.
  56. * BuildProvider.cs: added new internal virtual method,
  57. ExtractDependencies() whose purpose is to extract virtual path
  58. dependencies without compiling the code, if possible.
  59. * TemplateBuildProvider.cs: implemented the new
  60. ExtractDependencies () method which uses regular expressions to
  61. extract file dependencies from the source without having to
  62. compile the file.
  63. * CompilationException.cs: added a new public property, Results,
  64. which returns the compilation results.
  65. * BuildProviderGroup.cs: added. A simple class descending from
  66. List <BuildProvider> which is used to hold a compilation batch -
  67. that is a collection of BuildProvider instances.
  68. * BuildManagerDirectoryBuilder.cs: new class which takes care of
  69. generating compilation batches for the requested virtual path. A
  70. set of batches is generated from files found in the same virtual
  71. directory as the requested virtual path and all of the
  72. dependencies of those files. All files are grouped in batches
  73. within which no file depends upon its siblings. An attempt is made
  74. to sort the batches from the "least dependent" to the "most
  75. dependent" batches - i.e. the batches which do not depend on other
  76. batches go to the top.
  77. Code generating the batches now correctly detects dependency loops
  78. and throws an exception when one is encountered.
  79. Batches are represented as instances of a new class -
  80. BuildProviderGroup.
  81. * BuildManagerCacheItem.cs: added. Contains all the compilation
  82. result information needed by BuildManager. See below.
  83. * BuildManager.cs: complete batch building rewrite:
  84. - only one build lock is held instead of a set of compilation
  85. tickets. Only one thread can compile anything at one given
  86. time.
  87. - retrieving types from the build cache now uses a slim rw lock,
  88. so that readers aren't blocked while compilation is in
  89. progress. Writer lock is acquired only when adding a newly
  90. compiled type to the build cache and when removing it after its
  91. dependencies made it invalid.
  92. - assembly references for each compilation are now collected
  93. dynamically as the source is being compiled, this removed a lot
  94. of complexity in dealing with assembles containing conflicting
  95. types. As a consequence right now there may exist several
  96. loaded assemblies containing the same type, but only the latest
  97. of them will be used in new compiles.
  98. - the thread compiling code can recurse into the Build method
  99. which causes the recursively referenced code to be compiled
  100. into a separate, uniquely named, assembly. This deals with all
  101. recursion loops and dependency problems.
  102. - automatic app domain restart after a certain number of compiles
  103. is enabled now.
  104. - improved compilation error handling. If a compilation error
  105. occurs, the code attempts to recompile the assembly up to 3
  106. times, each time removing from the batch the files/virtual
  107. paths which failed parsing/compilation. If the attempts failed,
  108. another one is made to compile only the virtual path requested
  109. by the calling code. Only should that fail a compilation
  110. exception is thrown. All the compilation errors are written to
  111. stdout if the application is in the debug mode.
  112. - changed assembly naming. It now generates assembly names based
  113. on whether the compilation is recursive and whether the batch
  114. being compiled contains more than one code unit or
  115. not.
  116. - compilation results are now stored in the cache as instances of
  117. the new BuildManagerCacheItem class, which contains all the
  118. information required by BuildManager to return types,
  119. assemblies, dependencies etc.
  120. - GetReferencedAssemblies now correctly returns only the
  121. assemblies defined in the .config files.
  122. - GetVirtualPathDependencies does not need to compile code
  123. anymore in order to extract virtual path dependencies. New code
  124. in BuildProvider.ExtractDependencies () takes care of that.
  125. - a BuildManagerDirectoryBuilder class instance is used to
  126. generate compilation batches.
  127. - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
  128. ReaderWriterLockSlim
  129. * AssemblyBuilder.cs: added support for keeping track of which
  130. code unit was generated by which BuildProvider andr which
  131. BuildProvider produced a given source file. Both changes serve the
  132. purpose of dealing with compilation errors in BuildManager.
  133. * ApplicationFileBuildProvider.cs: added missing
  134. BuildProviderAppliesTo attribute
  135. 2009-01-14 Marek Habersack <[email protected]>
  136. * AspGenerator.cs: implemented a work around which allows the
  137. server controls embedded in client tag attributes to be parsed and
  138. compiled.
  139. 2009-01-13 Marek Habersack <[email protected]>
  140. * TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
  141. GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
  142. ControlBuilder cleanup.
  143. 2009-01-12 Marek Habersack <[email protected]>
  144. * TemplateControlCompiler.cs: do not generate #line pragmas for
  145. plain strings. Fixes bug #461214
  146. 2008-12-11 Marek Habersack <[email protected]>
  147. * BaseCompiler.cs: added a new method, InitializeType, to be
  148. overriden in child classes when any class initialization needs to
  149. be performed before methods, constructors and fields are created.
  150. * TemplateControlCompiler.cs: if the parser has any custom
  151. controls registered, compile them here - in the InitializeType
  152. method.
  153. 2008-12-10 Marek Habersack <[email protected]>
  154. * ParseException.cs: made serializable.
  155. * PageCompiler.cs: CreateStronglyTypedProperty calls
  156. AddReferencedAssembly to add type's assembly to the unit's
  157. references after the typed property has been created.
  158. * BaseCompiler.cs: added a new helper method,
  159. AddReferencedAssembly to be used whenever an assembly location
  160. needs to be added to the compilation unit's list after the parsing
  161. is done (e.g. when processing PreviousPageType or MasterPageType
  162. properties in PageParser)
  163. 2008-12-08 Marek Habersack <[email protected]>
  164. * TemplateControlCompiler.cs: use the correct regex match group
  165. index in SanitizeBindCall (), fixes bug #457011
  166. 2008-12-05 Marek Habersack <[email protected]>
  167. * BuildManager.cs: attempt to enter the compilation critical
  168. section with a timeout up to 3 times before giving up. This avoids
  169. deadlocks in situations where there are two virtual directores
  170. each containing user controls referencing user controls from the
  171. other directory.
  172. 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
  173. * AspParser.cs: reset to the next character in a partial match in case
  174. of failure. Fixes bug #314688.
  175. 2008-12-01 Marek Habersack <[email protected]>
  176. * TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
  177. instances to the ContentPlaceHolders collection when the
  178. placeholder is instantiated in the control build method, collect
  179. the ids and store them in ContentPlaceHolders inside the
  180. constructor. Fixes bug #449970
  181. For each content placeholder generate a public virtual property
  182. named "Template_PLACEHOLDERID", this is compatible with what .NET
  183. does.
  184. * BaseCompiler.cs: added new virtual method,
  185. AddStatementsToConstructor, which is called just before
  186. CreateConstructor returns.
  187. 2008-11-25 Marek Habersack <[email protected]>
  188. * AspComponentFoundry.cs: GetComponentType methods replaced with
  189. GetComponent returning an instance of AspComponent which fully
  190. describes the registered item. Components are cached, indexed by
  191. full tag name.
  192. * AspComponent.cs: added
  193. 2008-11-21 Marek Habersack <[email protected]>
  194. * CompilationException.cs: made serializable.
  195. * TemplateControlCompiler.cs: make the Bind regex stricter.
  196. When creating Eval expression from Bind, replace single quotes
  197. with double quotes. Fixes bug #447597
  198. When processing Bind expressions and the regex doesn't match,
  199. throw an exception.
  200. 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
  201. * AspTokenizer.cs: if there's a newline between the opening server tag
  202. and any other special character, treat the block as a code-render
  203. block.
  204. Bug #445889 fixed.
  205. 2008-11-14 Marek Habersack <[email protected]>
  206. * TemplateControlCompiler.cs: treat Eval and Bind expressions as
  207. verbatim code. The only difference between the two is that in the
  208. latter case Bind is replaced with Eval in the output code. Fixes
  209. bug #444725
  210. If BindingDirection of the parent template builder is OneWay in
  211. RegisterBindingInfo, do not throw an exception but simply do not
  212. register the binding.
  213. 2008-10-29 Marek Habersack <[email protected]>
  214. * BuildManager.cs: seal the internal classes.
  215. Remove unused BuildCacheItem.ValidBuild property.
  216. 2008-10-16 Marek Habersack <[email protected]>
  217. * TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
  218. use PropertyInfo.CanWrite to check whether the property is
  219. writable anymore, it calls GetSetMethod (false) instead.
  220. 2008-10-10 Marek Habersack <[email protected]>
  221. * TemplateControlCompiler.cs: allow whitespace around parentheses
  222. in the Bind and Eval expressions.
  223. 2008-10-09 Marek Habersack <[email protected]>
  224. * BuildManager.cs: if monoSettings section is found in the
  225. system.web section in web.config, use its contents to augment
  226. compiler configuration. Used to work around the issue reported in
  227. bug #433806
  228. 2008-10-08 Marek Habersack <[email protected]>
  229. * TemplateControlCompiler.cs: templates must be instantiated even
  230. for builders which process children as properties.
  231. 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
  232. * AssemblyBuilder.cs: use CodeBase to get to the original assembly
  233. path because Location might point the the shadow copy. Bug #409646
  234. and others fixed.
  235. 2008-10-03 Marek Habersack <[email protected]>
  236. * BuildManager.cs: if an assembly fails to build out of a batch of
  237. files, extract the virtual path that was requested by the client
  238. and attempt to compile it alone.
  239. 2008-09-29 Marek Habersack <[email protected]>
  240. * BuildManagerRemoveEntryEventHandler.cs: added
  241. * BuildManager.cs: added a static event to notify interested
  242. parties when an entry is removed from the buildCache. Fixes bug
  243. #429926.
  244. 2008-09-26 Marek Habersack <[email protected]>
  245. * BuildManager.cs: when creating a cache entry for a virtual path,
  246. make it depend on a list of files built recursively from all the
  247. virtual path's dependencies. Fixes bug #430114
  248. 2008-09-24 Andreia Gaita <[email protected]>
  249. * AspParser.cs: When parsing text which contain xml tags that resemble
  250. the end string, append the original text instead of the end string,
  251. because the casing might not match between the two. Fixes #320445
  252. 2008-09-23 Marek Habersack <[email protected]>
  253. * AspGenerator.cs: ignore whitespace only if it's between
  254. CodeRender blocks, not between DataBinding and
  255. CodeRenderExpression.
  256. 2008-09-01 Marek Habersack <[email protected]>
  257. * BaseCompiler.cs: AssignAppRelativeVirtualPath works with
  258. null/empty parser.InputFile now.
  259. * AspGenerator.cs: AddTypeToCache works checks whether inputFile
  260. is null or empty and does not assume the dependencies ArrayList is
  261. present.
  262. CloseControl uses ControlBuilder's OriginalTagName property,
  263. should the property/tag name be prefixed with 'prefix:'
  264. * CachingCompiler.cs: expect the dependencies ArrayList to be null
  265. or empty.
  266. 2008-08-31 Marek Habersack <[email protected]>
  267. * TemplateControlCompiler.cs: trust builder.BindingContainerType
  268. in the 2.0+ profile - do not use container properties to detect
  269. the type.
  270. Added a helper method, compiled only when DEBUG is defined, to
  271. generate Console.WriteLine CodeDOM calls.
  272. Templates are processed before anything else, so that children
  273. which may depend on parent's templates can get access to them.
  274. * BaseCompiler.cs: add line pragmas only if enabled for the
  275. current file.
  276. 2008-08-29 Marek Habersack <[email protected]>
  277. * AppCodeCompiler.cs: properly handle profile base class
  278. specifications which refer to full type names.
  279. 2008-08-26 Marek Habersack <[email protected]>
  280. * BuildManager.cs: use VirtualPathUtility.Combine in
  281. GetAbsoluteVirtualPath for non-rooted paths.
  282. 2008-08-19 Marek Habersack <[email protected]>
  283. * ThemeDirectoryBuildProvider.cs: theme directory dependencies
  284. should use only virtual paths for CSS files. Fixes bug #397187
  285. 2008-08-18 Marek Habersack <[email protected]>
  286. * TemplateControlCompiler.cs: process expression when they are
  287. used used in values of attributes without associated
  288. properties. Fixes bug #417883
  289. * ResourceExpressionBuilder.cs: added two overloads of
  290. CreateGetLocalResourceObject to encompass cases when the generated
  291. expression is not assigned to a property but rather used as a
  292. parameter to the SetAttribute method. Fixes bug #417883
  293. 2008-08-14 Marek Habersack <[email protected]>
  294. * AspGenerator.cs: do not ignore directives inside HTML comments.
  295. * TemplateControlCompiler.cs: .NET allows for whitespace between
  296. the directive start (<%) and the directive type character. Added
  297. code which copes with such situations correctly.
  298. 2008-08-13 Marek Habersack <[email protected]>
  299. * TemplateControlCompiler.cs: rewrote the Bind regular expressions
  300. to allow for single quotes and an optional second parameter to the
  301. "call".
  302. Added an Eval regular expression.
  303. Both Bind and Eval calls in data expressions are now converted
  304. into a CodeDOM method invocations, to allow support for possible
  305. languages which use a different call format (previously code
  306. snippets were used)
  307. Added a method to construct the Eval invoke expression which
  308. simplifies code in other areas.
  309. 2008-08-06 Marek Habersack <[email protected]>
  310. * TemplateControlCompiler.cs: handle situation when a property of
  311. a control for which we're generating the code is of type
  312. 'Type'. In such case, variable.GetType() will return
  313. System.MonoType, which must not be output to the generated
  314. source. Thanks to Robert Jordan for giving the idea for the hack!
  315. 2008-06-30 Marek Habersack <[email protected]>
  316. * AspGenerator.cs: hush the warnings and fix invalid type
  317. comparison.
  318. * AssemblyBuilder.cs: hush the warnings and add some debugging
  319. CWLs.
  320. * AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
  321. CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
  322. SimpleBuildProvider.cs, BuildManager.cs: hush the warnings
  323. 2008-06-18 Marek Habersack <[email protected]>
  324. * TemplateControlCompiler.cs: AddChildCall properly processes the
  325. PartialCachingAttribute now.
  326. 2008-06-11 Marek Habersack <[email protected]>
  327. * BuildManager.cs: if an error occurs while assigning the
  328. requested path to an assembly builder inside BuildAssembly, throw
  329. an exception.
  330. * BaseCompiler.cs: do not generate #line pragma for code which
  331. exists only in memory.
  332. 2008-05-30 Marek Habersack <[email protected]>
  333. * ClientBuildManager.cs: do not use synthetized event accessors
  334. (to avoid locks).
  335. 2008-05-28 Marek Habersack <[email protected]>
  336. * AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
  337. for #pragma checksum
  338. 2008-05-19 Marek Habersack <[email protected]>
  339. * AspGenerator.cs: if the last tag parsed was a code directive,
  340. ignore any accumulated text if it's 100% whitespace.
  341. Do not parse code render directives inside comments.
  342. 2008-05-15 Marek Habersack <[email protected]>
  343. * AspComponentFoundry.cs: treat AssemblyFoundry in a special way
  344. when adding a foundry to the array list. AssemblyFoundry instances
  345. are stacked at the end of the array list in a LIFO manner. That
  346. way TagNameFoundry takes precedence over AssemblyFoundry should
  347. the two contain the same type.
  348. 2008-05-14 Marek Habersack <[email protected]>
  349. * ParseException.cs: location can be null in the FileText property
  350. getter.
  351. 2008-05-07 Marek Habersack <[email protected]>
  352. * AspGenerator.cs: push the include file directory to the parser
  353. include directory stack and pop it after parsing the include, so
  354. that the relative file paths are resolved correctly. Fixes bug
  355. #324536
  356. 2008-05-06 Marek Habersack <[email protected]>
  357. * TemplateControlCompiler.cs: compatibility - added the
  358. __stringResource static field to the generated class and a call to
  359. SetStringResourcePointer to the FrameworkInitialize method.
  360. * PageCompiler.cs: __fileDependencies should also be defined in
  361. the 1.x profile.
  362. Page properties assigned in the page directive should be set
  363. inside BuildControlTree in the 2.0 profile.
  364. 2008-04-29 Marek Habersack <[email protected]>
  365. * WebServiceCompiler.cs: if compiling a body-less web service, try
  366. to load the class type from the loaded assemblies before
  367. attempting to find it in the assemblies on disk.
  368. 2008-04-28 Marek Habersack <[email protected]>
  369. * BuildManager.cs: ignore bad assemblies in the bin/
  370. directory. Fixes bug #315816
  371. 2008-04-26 Marek Habersack <[email protected]>
  372. * GenericBuildProvider.cs: the Parse () method should reuse the
  373. previously opened TextReader when calling generator.Parse (), to
  374. avoid opening the input file multiple times. Fixes bug #383881
  375. 2008-04-25 Marek Habersack <[email protected]>
  376. * AspGenerator.cs: put some safeguards in, to make sure streams
  377. are closed in any case.
  378. 2008-04-24 Marek Habersack <[email protected]>
  379. * AspComponentFoundry.cs: added a new GetComponentType overload
  380. which returns component source and a boolean flag whether the
  381. control was registered from web.config (2.0).
  382. 2008-04-22 Marek Habersack <[email protected]>
  383. * BuildManager.cs: ignore also arbitrary exceptions when
  384. batch-building an assembly. Fixes bug #323556
  385. 2008-04-19 Marek Habersack <[email protected]>
  386. * BuildManager.cs: use absolute virtual path to query the
  387. VirtualPathProvider for path existence.
  388. When ASP.NET is self-hosted, force
  389. non-batch compilation. Fixes bug #380985
  390. * ILocation.cs: added a new property, FileText.
  391. * Location.cs: added implementation of the ILocation.FileText
  392. property.
  393. * ParseException.cs: use the new ILocation.FileText, if defined,
  394. to get the file source.
  395. * AspGenerator.cs: when TextReader is present, use it to read with
  396. the VirtualPathProvider to read the file source. Fixes bug #381364
  397. * AspParser.cs: added a new property FileText to provide the file
  398. contents which was read in the constructor.
  399. 2008-04-18 Marek Habersack <[email protected]>
  400. * BuildManager.cs: when any parsing error occurs during batch
  401. building, ignore the file which caused it. If the file with
  402. parsing error is the one requested by user, throw the parsing
  403. exception. Fixes bug #323742
  404. 2008-04-15 Marek Habersack <[email protected]>
  405. * CachingCompiler.cs: dispose of streams the way it should
  406. be done.
  407. 2008-04-09 Marek Habersack <[email protected]>
  408. * BuildManager.cs: refactoring - the SetCommonParameters and
  409. GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
  410. and made internal static.
  411. Do not catch compilation exceptions and wrap them in
  412. HttpException, let the CompilationException pass through. Fixes
  413. bug #377904
  414. * AppWebReferencesCompiler.cs: added - support for compiling of
  415. wsdl files found in the App_WebResources directory. Fixes bug
  416. #377934
  417. * BuildProvider.cs: refactoring - moved the SetCommonParameters
  418. and GetDefaultCompilerTypeForLanguage to BuildManager
  419. * WsdlBuildProvider.cs: added the CodeCompilerType property
  420. override.
  421. Namespace for the generated code is taken from the wsdl path,
  422. relative to App_Code or App_WebReferences, if the wsdl in question
  423. is under on of those directories.
  424. GenerateCode uses OpenReader () so that VirtualPathProvider works
  425. for wsdl files.
  426. * AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
  427. when generating source from code unit and use
  428. WebEncoding.FileEncoding when adding code files to the unit. Fixes
  429. bug #377938
  430. Cope with virtualPath being null in BuildAssembly.
  431. Reference assemblies specified in web.config when linking.
  432. 2008-04-08 Marek Habersack <[email protected]>
  433. * AspComponentFoundry.cs: add loaded assembly to the
  434. BuildManager's list of referenced assemblies instead to
  435. WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
  436. * AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
  437. * BuildManager.cs: switched to VirtualPath instead of a string
  438. path in several methods.
  439. Batch compilation is turned off if we have a custom
  440. VirtualPathProvider which implements only the VirtualFile and
  441. falls back to DefaultVirtualDirectory implementation for directory
  442. access.
  443. Added an internal method AddToReferencedAssemblies.
  444. Remove invalidated entry from
  445. WebConfigurationManager.ExtraAssemblies.
  446. * GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
  447. * BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
  448. * AssemblyBuilder.cs: constructors use the new VirtualPath class
  449. now.
  450. AddCodeFile can use the VirtualPathProvider if necessary now.
  451. BuildAssembly overloads accept VirtualPath parameter instead of a
  452. string path now.
  453. * TemplateBuildProvider.cs: GetCodeBehindSource returns the
  454. virtual path now.
  455. 2008-03-31 Marek Habersack <[email protected]>
  456. * AppCodeCompiler.cs: implemented support for AppInitialize (a
  457. static method in any class defined in the App_Code source files),
  458. ran just after the App_Code assemblies are compiled in order to
  459. perform any application initialization actions.
  460. 2008-03-27 Marek Habersack <[email protected]>
  461. * BuildManager.cs: AssertVirtualPathExists now queries the
  462. VirtualPathProvider for path existence if physical path check
  463. fails, before throwing the 404 exception.
  464. 2008-03-13 Marek Habersack <[email protected]>
  465. * BuildManager.cs: if we're running in a case-insensitive
  466. environment, use case-insensitive comparer for the build caches.
  467. 2008-02-29 Marek Habersack <[email protected]>
  468. * BuildManager.cs: implement a mechanism to ignore certain virtual
  469. paths when batch compiling. Helps applications which may have
  470. .as?x files which won't work on mono for various reasons (one such
  471. sample is mojoportal).
  472. 2008-02-28 Marek Habersack <[email protected]>
  473. * TemplateControlCompiler.cs: make sure that data-bound attribute
  474. assignments properly convert the Bind expression to the Eval
  475. one. Fixes bug #362039
  476. * AspGenerator.cs: in 2.0+, aspx files which contain the Content
  477. controls can contain only them, whitespace and directives. Fixes
  478. bug #339747
  479. 2008-02-27 Marek Habersack <[email protected]>
  480. * AspComponentFoundry.cs: use BuildManager.GetCompiledType in the
  481. LoadType method for the 2.0 profile.
  482. * CompilationException.cs: use a different format of ErrorMessage
  483. for the 2.0+ profile.
  484. 2008-02-26 Marek Habersack <[email protected]>
  485. * BuildManager.cs: known file types extensions are now matched
  486. case-insensitively.
  487. 2008-02-25 Marek Habersack <[email protected]>
  488. * TemplateControlCompiler.cs: GetContainerType now checks whether
  489. the binding container returned from the builder implements
  490. IDataItemContainer (for 2.0+ profiles) and looks for one more
  491. property, Rows, if no Items property is found.
  492. 2008-02-08 Gert Driesen <[email protected]>
  493. * AppSettingsExpressionBuilder.cs: Improve exception messages. Return
  494. "raw" appsetting value if targetType is null.
  495. 2008-02-07 Marek Habersack <[email protected]>
  496. * CompilationException.cs: added new constructor which takes
  497. CompilerResults as one of the parameters.
  498. Added CompilerOutput property.
  499. * AssemblyBuilder.cs: use the new CompilationError constructor.
  500. * BuildManager.cs: check for virtualPath existence before
  501. attempting to compile the assemblies. Fixes bug #359465
  502. 2008-02-06 Marek Habersack <[email protected]>
  503. * GenericBuildProvider.cs: GetGeneratedType may return a type even
  504. though the results are null.
  505. * AssemblyBuilder.cs: if there are no units, no source files, no
  506. resources and no embedded resources in the passed options then
  507. do not attempt to compile the assembly. Fixes bug #359325
  508. * AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: expect that
  509. BuildAssembly may return null results.
  510. * BuildManager.cs: protect non-page builds from endless recursion
  511. if a non-page file recursively references/includes another file
  512. from the same batch. If such case is detected, the recursively
  513. referenced file is compiled into a separate assembly and removed
  514. from the previous compilation batch. Fixes bug #358742.
  515. If AssemblyBuilder returns no results from BuildAssembly, it might
  516. mean we're dealing with a compilation of empty .as[hm]x files,
  517. with no code and only code-behind in bin/. Do not report an error
  518. in that case, only add the compiled types to the cache. Fixes bug
  519. #357624.
  520. 2008-02-05 Marek Habersack <[email protected]>
  521. * BuildManager.cs: GetAbsoluteVirtualPath correctly converts
  522. non-rooted relative paths to absolute ones now. Fixes bug
  523. #357504.
  524. * GenericBuildProvider.cs: introduced a new abstract method,
  525. GetReferencedAssemblies, which is called on descendant builders to
  526. get a list of assemblies referenced by the parsed file. Fixes bug
  527. #357499.
  528. * AssemblyBuilder.cs: added a new overload of the
  529. AddAssemblyReference method, to be used by build providers to
  530. register assemblies collected by the corresponding parser.
  531. * TemplateBuildProvider.cs, SimpleBuildProvider.cs: implemented
  532. overload of the new abstract method GetReferencedAssemblies.
  533. * AspGenerator.cs: introduced a new overload for the Parse method
  534. which accepts a bool indicating whether or not to initialize the
  535. parser. The overload is used when parsing server-side
  536. includes. Fixes bug #357498
  537. 2008-02-04 Marek Habersack <[email protected]>
  538. * AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
  539. generating source code files. Fixes bug #357053.
  540. * AspGenerator.cs: set isApplication before parsing. Fixes bug
  541. #357036.
  542. 2008-01-31 Jb Evain <[email protected]>
  543. * AspGenerator.cs: correct typo. Fix #357547.
  544. 2008-01-27 Marek Habersack <[email protected]>
  545. * BuildManager.cs: GetReferencedAssemblies includes the extra
  546. assemblies and the App_Code assemblies. Patch from Mike Morano
  547. <[email protected]>, thanks!
  548. 2008-01-24 Marek Habersack <[email protected]>
  549. * WebHandlerBuildProvider.cs: derive from the new
  550. SimpleBuildProvider class.
  551. * BuildManager.cs: full implementation of the batch compilation
  552. for the 2.0 profile. The implementation is most probably different
  553. to MS.NET's but the effects are the same (or nearly the same -
  554. there are some minor differences). There are missing bits and
  555. pieces, but minor ones - to be added later.
  556. * SimpleBuildProvider.cs: new build provider abstract class
  557. deriving from the GenericBuildProvider that implements common code
  558. for building web handlers and web services.
  559. * GenericBuildProvider.cs: new generic abstract class used to
  560. implement base builder code for all the build provider types and
  561. maximize code reuse.
  562. * PageBuildProvider.cs: derive from the new TemplateBuildProvider
  563. class and implement all the necessary abstract members.
  564. Handle "fake" virtual paths, to properly support generating of the
  565. WSDL helper code.
  566. * BuildProvider.cs: SetVirtualPath now converts the passed path to
  567. absolute URL.
  568. Added internal virtual method GenerateCode, used by derived
  569. classes.
  570. SetCommonParameters no longer sets the referenced assemblies, this
  571. is done in BuildManager now.
  572. Added an internal virtual property CodeUnit which returns the
  573. build provider's compilation unit.
  574. * PageCompiler.cs: fix assignment of base types for asynchronous
  575. pages, to match MS.NET.
  576. For asynchronous pages, add the necessary methods generation.
  577. * BaseCompiler.cs: default namespace is now set using a constant.
  578. Renamed the Init method into ConstructType, to better reflect its
  579. purpose and made the method internal - it is used by the build
  580. providers.
  581. Added several CreateProvider overloads for easier and more unified
  582. compilation provider creation.
  583. Added an internal MainClassType property to enable class type name
  584. retrieval from other parts of the class hierarchy.
  585. * ApplicationFileBuildProvider.cs: new build provider deriving
  586. from the TemplateBuildProvider class to compile the global.asax
  587. file.
  588. * AspGenerator.cs: properly handle parsers which have no input
  589. file path given, but use TextReader instead.
  590. Dependencies are virtual paths now, convert them to physical ones
  591. before creating cache dependency.
  592. * CachingCompiler.cs: parser dependencies are virtual paths now,
  593. convert them to physical ones before creating cache dependency.
  594. * AssemblyBuilder.cs: full implementation of the documented
  595. functionality as well as a lot of internal build code
  596. added. Produces assemblies using the same style what MS.NET for
  597. temporary and target file naming. Handles partial type squashing
  598. if the same partial type is used by several code compile units
  599. added to the same builder instance.
  600. * MasterPageBuildProvider.cs: use the new TemplateBuildProvider
  601. base class and add implementation of all the abstract methods
  602. required by it.
  603. * ThemeDirectoryBuildProvider.cs: new build provider to compile
  604. theme directories. Replaces the old ThemeDirectoryCompiler class.
  605. * UserControlBuildProvider.cs: use the new TemplateBuildProvider
  606. base class and add implementation of all the abstract methods
  607. required by it.
  608. * TemplateBuildProvider.cs: new internal abstract class which
  609. implements the common tasks for all the template control build
  610. providers.
  611. * WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
  612. type to implement building.
  613. 2008-01-17 Igor Zelmanovich <[email protected]>
  614. * BaseCompiler.cs: Assign AppRelativeVirtualPath correctly
  615. 2008-01-08 Marek Habersack <[email protected]>
  616. * TemplateControlCompiler.cs: statements to assign
  617. fields/properties from resources must be processed at the very end
  618. of the control creation method. Some controls (like HyperLink) can
  619. set their Text attribute using literal content. In such cases, in
  620. order to properly localize the control, the value read from the
  621. local page resources must be assigned after the literal value has
  622. been added to the control. Fixes bug #323494
  623. 2008-01-07 Marek Habersack <[email protected]>
  624. * CachingCompiler.cs: added an overload to the Compile method
  625. which accepts a flag whether or not to include debug information
  626. in the generated assembly.
  627. 2008-01-02 Marek Habersack <[email protected]>
  628. * TemplateControlCompiler.cs: add line pragma wherever necessary.
  629. * PageCompiler.cs: reorder the statements to match MS.NET output.
  630. Output line pragma information for directive attributes.
  631. * BaseCompiler.cs: add a set of AddLinePragma methods for various
  632. CodeDOM elements.
  633. Output line pragmas when adding server-side scripts to the CodeDOM
  634. tree.
  635. * AspGenerator.cs: use ServerSideScript to store script location
  636. in the original file.
  637. * UserControlCompiler.cs: output line pragmas for the init
  638. method.
  639. 2007-12-28 Marek Habersack <[email protected]>
  640. * PageCompiler.cs: MS.NET compatibility: added the
  641. __fileDependencies object to the generated class.
  642. Refactored the output to match MS.NET more closely.
  643. IHttpHandler or IHttpAsyncHandler are now added to the generated
  644. class list of implemented interfaces.
  645. * BaseCompiler.cs: Main class field references are prefixed with
  646. 'global::' now.
  647. Refactored the output to match MS.NET more closely.
  648. 2007-12-27 Marek Habersack <[email protected]>
  649. * BaseCompiler.cs: check for base type globality in all the
  650. location it is used.
  651. 2007-12-23 Vladimir Krasnov <[email protected]>
  652. * AppSettingsExpressionBuilder.cs: fixed GetAppSetting, should convert
  653. to property type
  654. 2007-12-21 Marek Habersack <[email protected]>
  655. * BaseCompiler.cs: Refactoring. Move the provider creation code to
  656. an internal static method, so that other piece of code which need
  657. to create the provider can do it using the same code.
  658. Added setters to several internal properties, so that they can be
  659. shared with derivative classes.
  660. * WebServiceCompiler.cs: adjust to the changes above. Fixes bug
  661. #350398.
  662. * CachingCompiler.cs: adjust to the changes above. Also some
  663. refactoring.
  664. 2007-12-15 Marek Habersack <[email protected]>
  665. * AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.
  666. * BaseCompiler.cs: do not use CreateCompiler () in the 2.0
  667. profile, it's obsoleted. CachingCompiler will use the
  668. CodeDomProvider methods directly in that case.
  669. * WebServiceCompiler.cs: Updated GetCompiledType to acquire
  670. compiler information for the 2.0 profile from system.codeDom.
  671. * CachingCompiler.cs: the Compile overloads do not use the
  672. compiler instance, but call appropriate methods on the
  673. CodeDomProvider instance directly.
  674. Updated some Compile overloads to acquire compiler information for
  675. the 2.0 profile from system.codeDom.
  676. 2007-12-14 Juraj Skripsky <[email protected]>
  677. * TemplateControlCompiler.cs (AddExpressionAssign):
  678. Make sure expression does not contain prefix.
  679. * AppSettingsExpressionBuilder.cs: Pass type of property to
  680. GetAppSetting, not type of declaring type.
  681. 2007-12-13 Marek Habersack <[email protected]>
  682. * TemplateControlCompiler.cs, AspComponentFoundry.cs,
  683. AssemblyBuilder.cs, AppResourcesCompiler.cs,
  684. AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
  685. optimization - use String.Concat instead of String.Format in some
  686. cases.
  687. 2007-11-22 Marek Habersack <[email protected]>
  688. * PageCompiler.cs: use
  689. pageParser.OutputCacheVaryByContentEncodings when initializing the
  690. output cache in the 2.0 profile.
  691. 2007-11-06 Marek Habersack <[email protected]>
  692. * BuildManager.cs: properly retrieve the BuildProviderCollection
  693. from configuration files.
  694. 2007-11-03 Marek Habersack <[email protected]>
  695. * TemplateControlCompiler.cs: do not call converters specified in
  696. the member custom attributes if 'str' is null in
  697. GetExpressionFromString.
  698. 2007-10-23 Marek Habersack <[email protected]>
  699. * AppResourcesAssemblyBuilder.cs: do not output preservation files
  700. for satellite assemblies, just for the main assembly. Also, don't
  701. add the satellite assemblies to the list of top-level assemblies.
  702. 2007-10-17 Marek Habersack <[email protected]>
  703. * PageCompiler.cs: added code to set the AsyncMode and
  704. AsyncTimeout Page properties.
  705. 2007-10-15 Marek Habersack <[email protected]>
  706. * TemplateControlCompiler.cs, WebServiceCompiler.cs,
  707. BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
  708. HttpApplication.LoadType instead of Type.GetType.
  709. 2007-10-10 Marek Habersack <[email protected]>
  710. * TemplateControlCompiler.cs: be careful when using type
  711. converters taken from attributes attached to class members. They
  712. may come from the System.Design namespace, which is mostly not
  713. implemented on Mono.
  714. 2007-10-01 Marek Habersack <[email protected]>
  715. * AppResourcesCompiler.cs: resources are no longer compiled into a
  716. single assembly. Instead, the common assembly construction code
  717. has been moved to AppResourcesAssemblyBuilder to use satellite
  718. assemblies.
  719. * AppResourcesAssemblyBuilder.cs: new resource assembly
  720. construction code which takes care of outputting satellite
  721. assemblies.
  722. 2007-09-27 Marek Habersack <[email protected]>
  723. * TemplateControlCompiler.cs: support nullable types in
  724. GenerateExpressionFromString.
  725. 2007-09-21 Marek Habersack <[email protected]>
  726. * TemplateControlCompiler.cs: if we're running on a platform with
  727. the directory separator character that's different to the Unix
  728. style '/' one, convert the input file path to the virtual path
  729. style string, with path parts separated by '/'. Patch from Robert
  730. Jordan <[email protected]>, thanks! Fixes bug #324229.
  731. 2007-09-20 Marek Habersack <[email protected]>
  732. * TemplateControlCompiler.cs: if a member passed to
  733. GetExpressionFromString has a TypeConverter attribute set, try to
  734. use the named type converter to convert the string value into the
  735. target type. Fixes bug #325489.
  736. 2007-09-14 Marek Habersack <[email protected]>
  737. * AppResourcesCompiler.cs: use _culture and _resourceManager
  738. instead of culture and resourceManger in the generated code, to
  739. avoid case problems for languages that are case-insensitive.
  740. 2007-09-10 Marek Habersack <[email protected]>
  741. * TemplateControlCompiler.cs: cast the expression to the field
  742. type whenever appropriate in GetExpressionFromString.
  743. When generating an object instance and one of the parameters is
  744. System.Type, return a typeof expression.
  745. 2007-09-07 Marek Habersack <[email protected]>
  746. * TemplateControlCompiler.cs: another modification to the way
  747. TemplateInstance.Single templates are treated. The search for
  748. parent with this attribute set stops as soon as the first
  749. TemplateBuilder is encountered, no matter what the value of its
  750. TemplateInstance attribute is.
  751. 2007-09-06 Marek Habersack <[email protected]>
  752. * TemplateControlCompiler.cs: ID must be assigned as soon as
  753. possible, before any other attributes of the control are
  754. accessed. The control code may rely on ID being set.
  755. Extend the process of checking if a control is located within a
  756. template with the TemplateInstance.Single attribute set, to all
  757. the parents of the current builder.
  758. 2007-09-05 Marek Habersack <[email protected]>
  759. * ThemeDirectoryCompiler.cs: all the skin files compiled in one
  760. batch must share the same component foundry. Under MS.NET if any
  761. earlier .skin file registers a control prefix any later .skin
  762. files may use it without registering.
  763. 2007-09-04 Marek Habersack <[email protected]>
  764. * TemplateControlCompiler.cs: make sure that base class doesn't
  765. contain a field of the same name which is accessible from the
  766. current control if we're within a singleton template.
  767. When generating code for a property or field, use the name
  768. retrieved from the metadata by reflection instead of the one
  769. parsed from html. Fixes bug #82687. Patch from SunHo Kim
  770. <[email protected]>, thanks!
  771. 2007-08-29 Marek Habersack <[email protected]>
  772. * CachingCompiler.cs: consider contents of the
  773. <compilation><assemblies> section when constructing a list of
  774. assemblies during compilation.
  775. * TemplateControlCompiler.cs: mark fields corresponding to the
  776. controls as global references.
  777. When control tree is constructed and the parent of the current
  778. builder is a TemplateBuilder marked with the TemplateInstance
  779. attribute set to Single, use the control's ID as the field
  780. name. This makes it possible to refer to controls inside templates
  781. by name instead of by using FindControl.
  782. 2007-08-23 Marek Habersack <[email protected]>
  783. * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
  784. and HttpApplication.LoadTypeFromBin.
  785. * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
  786. AddAssembliesInBin.
  787. 2007-08-21 Marek Habersack <[email protected]>
  788. * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
  789. to look up assemblies in the binary path(s).
  790. 2007-08-19 Juraj Skripsky <[email protected]>
  791. * GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
  792. for scope case insensitive. Fixes bug #82479.
  793. 2007-08-14 Marek Habersack <[email protected]>
  794. * TemplateControlCompiler.cs: remove dead code.
  795. * AssemblyBuilder.cs: include actual exception information when
  796. reporting inability to load a compiled assembly.
  797. * AppCodeCompiler.cs: remove unused variables.
  798. * AspComponentFoundry.cs: use an ArrayList to implement LIFO for
  799. component collections, instead of the old Queue which implemented
  800. FIFO. Fixes situations when a control registered later for a
  801. certain prefix would not be used in preference to a previously
  802. registered one of the same name.
  803. 2007-08-06 Marek Habersack <[email protected]>
  804. * AspComponentFoundry.cs: properly add new foundry if the
  805. corresponding entry in the foundries collection is a Queue. Patch
  806. from Juraj Skripsky <[email protected]>, thanks! Fixes bug #82285.
  807. 2007-07-31 Marek Habersack <[email protected]>
  808. * AspComponentFoundry.cs: do not overwrite previously registered
  809. foundries when a new one is registered with the same prefix. Fixes
  810. bug #82216
  811. 2007-07-18 Marek Habersack <[email protected]>
  812. * TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
  813. does not look up the Item/Items properties to determine the
  814. container type, instead it just returns the type reported by the
  815. builder passed to this method. This change makes the generated
  816. code match MS.NET. Fixes bug #82119.
  817. 2007-07-02 Marek Habersack <[email protected]>
  818. * TemplateControlCompiler.cs: don't use StartWith to see if a
  819. variable's value is a bind expression, as it erroneously renames
  820. all calls to methods starting with the string Bind. Use a regular
  821. expression now instead. Fixes bug #81928.
  822. 2007-06-20 Marek Habersack <[email protected]>
  823. * AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
  824. private entries.
  825. * CachingCompiler.cs: as above
  826. * AspGenerator.cs: as above
  827. 2007-06-13 Marek Habersack <[email protected]>
  828. * TemplateControlCompiler.cs: make sure control has a writable
  829. TemplateControl property prior to assigning values to it.
  830. 2007-06-09 Marek Habersack <[email protected]>
  831. * TemplateControlCompiler.cs: TemplateControl is assigned for
  832. controls that are placed within ContentPlaceHolder and not for the
  833. ContentPlaceHolder itself.
  834. No longer add the overriden version of TemplateSourceDirectory to
  835. the generated source, all the work is now done in
  836. Control.TemplateSourceDirectory.
  837. * BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
  838. slash, for compatibility with MS.NET
  839. 2007-06-05 Marek Habersack <[email protected]>
  840. * TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
  841. profile uses the TemplateControl property instead of Parent. This
  842. allows to return the correct path.
  843. 2007-06-01 Marek Habersack <[email protected]>
  844. * TemplateControlCompiler.cs: be case-insensitive when looking for
  845. Bind requests.
  846. 2007-05-29 Marek Habersack <[email protected]>
  847. * ThemeDirectoryCompiler.cs: pass the skin file's
  848. virtual path to the skin file parser as its first paramenter, and
  849. not a physical path.
  850. 2007-05-28 Marek Habersack <[email protected]>
  851. * ResourceExpressionBuilder.cs: properly cast
  852. GetGlobalResourceObject calls to the type of the property being
  853. assigned to.
  854. 2007-05-25 Marek Habersack <[email protected]>
  855. * TemplateControlCompiler.cs: Changed a few incorrect
  856. ObjectCreationExpression to the correct DelegateCreationExpression.
  857. Fixes #81706.
  858. 2007-05-24 Marek Habersack <[email protected]>
  859. * PageCompiler.cs: added support for the PreviousPageType directive.
  860. * Directive.cs: as above.
  861. 2007-05-22 Marek Habersack <[email protected]>
  862. * UserControlCompiler.cs: the Profile property should be present
  863. also in user controls.
  864. 2007-05-15 Marek Habersack <[email protected]>
  865. * ResourceExpressionBuilder.cs: added a static method to generate
  866. a GetLocalResourceObject call which properly handles types which
  867. cannot be converted from strings.
  868. * TemplateControlCompiler.cs: use code described above to generate
  869. code for properties assigned from resources.
  870. * WsdlBuildProvider.cs: make the code actually work - get the
  871. physical path of VirtualPath instead of converting it to absolute
  872. URI path.
  873. Do not generate source, add the code unit to assembly builder
  874. instead.
  875. * XsdBuildProvider.cs: added
  876. 2007-05-08 Marek Habersack <[email protected]>
  877. * TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
  878. so use a delegate create expression - it may make difference for
  879. languages other than C# (e.g. VisualBasic).
  880. 2007-05-07 Marek Habersack <[email protected]>
  881. * AspGenerator.cs: if the parser's language is implicit (i.e. set
  882. from the default configuration), the first script with the
  883. language attribute present sets the language of the parser.
  884. 2007-05-04 Marek Habersack <[email protected]>
  885. * TemplateControlCompiler.cs: do not query the parent for
  886. TemplateSourceDirectory if we are generating code for a Master
  887. Page.
  888. 2007-04-30 Marek Habersack <[email protected]>
  889. * ConnectionStringsExpressionBuilder.cs: support expressions with
  890. suffixes .ProviderName and .ConnectionString (case-insensitie) and
  891. generate a call to GetConnectionStringProviderName in the former
  892. case. Fixes bug #81490
  893. * AppCodeCompiler.cs: support for cases when there exists a custom
  894. profile class but there is no App_Code directory or it's
  895. empty. Fixes bug #81489.
  896. * TemplateControlCompiler.cs: fix generation of code for
  897. declarative attribute assignments of the form Font-Size="small"
  898. (i.e. when a font size is assigned a symbolic, relative size
  899. value). This fixes for example rendering of the 0th level of
  900. TreeView controls.
  901. 2007-04-27 Marek Habersack <[email protected]>
  902. * AppCodeCompiler.cs: do not look at the number of errors, check
  903. the compiler return code instead.
  904. Resolve assembly names from the global web.config to their
  905. locations before passing them to the compiler provider.
  906. * AssemblyBuilder.cs: as above
  907. * AppResourcesCompiler.cs: as above
  908. * AspComponentFoundry.cs: formatting changes.
  909. AssemblyFoundry looks for the specified namespace+type in the
  910. top-level assemblies if necessary.
  911. 2007-04-26 Marek Habersack <[email protected]>
  912. * AssemblyBuilder.cs: handle compilation failures in a better
  913. way.
  914. * PageCompiler.cs: the Master property must be in the partial
  915. class if present. Fixes bug #81442
  916. 2007-04-20 Marek Habersack <[email protected]>
  917. * AppCodeCompiler.cs: fix App_Code build when the directory
  918. contains both known and unknown files.
  919. 2007-04-19 Gert Driesen <[email protected]>
  920. * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
  921. tabs.
  922. 2007-04-19 Marek Habersack <[email protected]>
  923. * AppCodeCompiler.cs: yet another method of detecting if we have a
  924. custom profile.
  925. * BaseCompiler.cs: as above
  926. * AspComponentFoundry.cs: implemented delayed loading of control
  927. assemblies. Fixes bug #81058.
  928. 2007-04-19 Gert Driesen <[email protected]>
  929. * BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
  930. then use it instead of the default ASP namespace. Fixes part of bug
  931. #81399.
  932. 2007-04-19 Marek Habersack <[email protected]>
  933. * BaseCompiler.cs: don't look at the number of profile properties
  934. when deciding if we have a custom profile. It is possible to have
  935. a profile that just inherits from a base class and does not list
  936. any custom properties. Fixes bug #81396.
  937. * AppCodeCompiler.cs: as above
  938. 2007-04-15 Marek Habersack <[email protected]>
  939. * AppCodeCompiler.cs: properly convert physical file path to
  940. virtual path for build providers.
  941. Make sure there's actually anything to compile.
  942. 2007-04-11 Marek Habersack <[email protected]>
  943. * AppCodeCompiler.cs: move custom profile type check till after
  944. the App_Code compilation is done. That way we can have custom
  945. profile providers in there. Fixes bug #81307.
  946. 2007-04-10 Marek Habersack <[email protected]>
  947. * AppResourceFilesCollection.cs: watch App_LocalResources for
  948. changes.
  949. 2007-04-06 Marek Habersack <[email protected]>
  950. * BaseCompiler.cs: display the source of the file in which the
  951. error actually happened if the file exists, or the unit
  952. otherwise.
  953. 2007-04-03 Marek Habersack <[email protected]>
  954. * AppResourcesCompiler.cs: global resources are put in the
  955. "Resources." namespace while local ones are not. Fixes bug #81174
  956. which was reopened after r75261.
  957. 2007-03-26 Marek Habersack <[email protected]>
  958. * TemplateControlCompiler.cs: refactor assining properties from
  959. resources a bit to support pages and user controls. Fixes bug
  960. #81204.
  961. Process meta:resourcekey after all the field/attribute assignments
  962. are done. Fixes bug #80809.
  963. Clean the code up a bit.
  964. Use GetExpressionFromString to generate a correct expression for
  965. custom page/control attributes. Fixes bug #81132.
  966. 2007-03-21 Marek Habersack <[email protected]>
  967. * BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
  968. AssignAppRelativeVirtualPath if the attribute was defined.
  969. * TemplateControlCompiler.cs: added support for setting custom
  970. attributes of a base class from the Page or Control directive
  971. attributes.
  972. 2007-03-20 Marek Habersack <[email protected]>
  973. * ResourceExpressionBuilder.cs: if the resource class key is null
  974. or empty, call GetLocalResourceObject, if not,
  975. GetGlobalResourceObject. Fixes bug #81174.
  976. 2007-03-16 Marek Habersack <[email protected]>
  977. * AppCodeCompiler.cs: produce message that makes more sense.
  978. 2007-03-15 Marek Habersack <[email protected]>
  979. * AppResourcesCompiler.cs: handle global resource keys with dots
  980. the way MS.NET does. All the dots are replaced with underscores
  981. when generating the stronly-typed property.
  982. 2007-03-14 Marek Habersack <[email protected]>
  983. * AppResourcesCompiler.cs: Fix a bug with global resources file
  984. grouping where no translated resources were processed due to base
  985. name mismatch.
  986. * TemplateControlCompiler.cs: hadle situations when there exist a
  987. control in the page with id matching the name of a field/property
  988. in the parent class. In this case we use 'protected new' to
  989. override the parent.
  990. 2007-03-13 Marek Habersack <[email protected]>
  991. * AspParser.cs: fix an off-by-one parsing bug with server-side
  992. includes.
  993. * PageThemeCompiler.cs: let property builders through, stop the
  994. builders that have no control type. Fixes bug #81092
  995. * PageCompiler.cs: interfaces are to be implemented by the parent
  996. partial class, not the generated one.
  997. * AppResourceFilesCollection.cs: added separate constructor for
  998. local resources handling.
  999. * TemplateControlCompiler.cs: request the local resource object
  1000. with proper virtual path.
  1001. Put field declarations for controls in the partial class.
  1002. Make sure builders are in valid state before trying to use them.
  1003. * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
  1004. property in the page/control constructor.
  1005. Change the generated code model for pages/controls to comply with
  1006. the way MS.NET does (partial class contains only two properties
  1007. plus declarations of all the controls, the actual control/page
  1008. class inherits from the partial class). Fixes bug #81001.
  1009. * AppResourcesCompiler.cs: does not require specifying manually
  1010. whether it's a global or local resource compiler anymore. New
  1011. constructors take care of that.
  1012. Changed to compile local resources on demand, when a control/page
  1013. is parsed.
  1014. 2007-03-12 Marek Habersack <[email protected]>
  1015. * AspParser.cs: revert r73587 as it breaks more than it fixes.
  1016. * AspComponentFoundry.cs: try to register foundries from App_Code
  1017. assemblies if tag prefix and its namespace are defined. Fixes bug
  1018. #78797.
  1019. * BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
  1020. of Assembly instances, not strings.
  1021. * CachingCompiler.cs: make sure items in the CodeAssemblies and
  1022. TopLevelAssemblies are really instances of the Assembly class
  1023. before trying to use them.
  1024. CodeAssemblies is a collection of Assembly instances, not
  1025. strings.
  1026. * AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
  1027. assemblies, not paths to assemblies.
  1028. 2007-03-10 Marek Habersack <[email protected]>
  1029. * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
  1030. CreateProfileProperty and InternalCreatePageProperty to
  1031. BaseCompiler from PageCompiler.
  1032. * GlobalAsaxCompiler.cs: generate the Profile property for the
  1033. Global_asax class.
  1034. 2007-03-09 Marek Habersack <[email protected]>
  1035. * AppCodeCompiler.cs: Add the GetProfile method to the
  1036. ProfileCommon auto-generated class.
  1037. * AppResourcesCompiler.cs: attempt to load the resource file
  1038. earlier in the process, to gracefully handle empty files.
  1039. * ThemeDirectoryCompiler.cs: make compiled themes depend on the
  1040. .skin and .css files composing the theme.
  1041. 2007-03-05 Marek Habersack <[email protected]>
  1042. * PageThemeCompiler.cs: Use correct theme path for
  1043. AppRelativeTemplateSourceDirectory.
  1044. Do not process builders of type CodeRenderBuilder.
  1045. Make sure builder.ControlType is not null before depending on it.
  1046. * ThemeDirectoryCompiler.cs: theme parser should be passed the
  1047. virtual directory of the theme.
  1048. 2007-03-03 Marek Habersack <[email protected]>
  1049. * PageCompiler.cs: Added support for setting the
  1050. MaintainScrollPositionOnPostBack property if the corresponding
  1051. page directive attribute is found.
  1052. * Directive.cs: added the MaintainScrollPositionOnPostBack and
  1053. LinePragmas directives.
  1054. 2007-03-02 Marek Habersack <[email protected]>
  1055. * AppCodeCompiler.cs: Correctly process App_Code directories which
  1056. have no compilable files in the top-level directory. Fixes bug
  1057. #80998.
  1058. Write preservation files for the App_Code assemblies.
  1059. 2007-03-01 Marek Habersack <[email protected]>
  1060. * AspParser.cs: fix GetVerbatim for cases when the end is
  1061. e.g. --> or --%> and the string matched is ---> or ---%>
  1062. respectively. The new code always backs out to make sure the end is
  1063. matched correctly.
  1064. 2007-02-27 Marek Habersack <[email protected]>
  1065. * TemplateControlCompiler.cs: ParseExpression returns an object,
  1066. don't assume any concrete type.
  1067. Use the current culture when converting the expression to a
  1068. string.
  1069. * ConnectionStringsExpressionBuilder.cs: Implement support for
  1070. expressions of the <%$ ConnectionStrings:StringName %> form
  1071. 2007-02-19 Marek Habersack <[email protected]>
  1072. * ResourceExpressionBuilder.cs: Do not prepend the .Resources prefix here
  1073. 2007-02-16 Marek Habersack <[email protected]>
  1074. * CachingCompiler.cs, BaseCompiler.cs: Make sure that no assembly
  1075. is referenced twice by the compiler(s).
  1076. * TemplateControlCompiler.cs: Fix the problem with cultures which
  1077. have a comma as their decimal separator and font/whatever
  1078. units. New code does not reparse the text representation of the
  1079. unit on the runtime (e.g. 0.9em) but instead it constructs the
  1080. property using the FontUnit/Unit constructors which take,
  1081. respectively, Unit and double/unittype parameters. This avoids
  1082. culture-specific parsing.
  1083. Also fix converting from invariant strings in a culture-aware
  1084. environment (e.g. in a page that uses Culture="auto") during the
  1085. page parsing phase.
  1086. 2007-02-12 Marek Habersack <[email protected]>
  1087. * PreservationFile.cs: Support preservation (assembly mapping)
  1088. files (the ones with .compiled extension in the ASP.NET temporary
  1089. directory). This one implements a loader/saver class.
  1090. * AppResourcesCompiler.cs: support for assembly name mapping.
  1091. * AppCodeCompiler.cs: support for assembly name mapping.
  1092. 2007-02-08 Marek Habersack <[email protected]>
  1093. * TemplateControlCompiler.cs: Fix TemplateSourceDirectory.
  1094. * AspComponentFoundry.cs: Avoid duplicate control registration
  1095. exception.
  1096. * ResourceExpressionBuilder.cs: Make sure all the global resources
  1097. are looked up using the "Resources." prefix.
  1098. * AppResourcesCompiler.cs: Make sure all the global resources are
  1099. embedded with the "Resources." prefix.
  1100. 2007-02-02 Marek Habersack <[email protected]>
  1101. * AspGenerator.cs: Move the cache insert code to a separate method, for
  1102. use from other places.
  1103. * AspComponentFoundry.cs: Register controls mentioned in web.config, but
  1104. defer their compilation to the moment when they are actually requested.
  1105. 2007-01-22 Marek Habersack <[email protected]>
  1106. * ThemeDirectoryCompiler.cs: Make sure the code works for empty themes.
  1107. 2007-01-20 Miguel de Icaza <[email protected]>
  1108. * ClientBuildManager.cs: Remove unused variable (this could be a
  1109. real problem, we never use the appPhysicalTargetDir)
  1110. * AssemblyBuilder.cs: Remove unused field.
  1111. * AppResourceFilesCollection.cs: Remove unused field.
  1112. * TemplateControlCompiler.cs (GetExpressionFromString): Remove
  1113. unused variable.
  1114. * AppResourcesCompiler.cs: Remove unused variable.
  1115. * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
  1116. parameter.
  1117. * PageCompiler.cs: Put InternalCreatePageProperty inside the
  1118. NET_2_0 block to eliminate warnings.
  1119. 2007-01-20 Gert Driesen <[email protected]>
  1120. * BaseCompiler.cs: Fixed build on 1.0 profile.
  1121. 2007-01-20 Marek Habersack <[email protected]>
  1122. * BaseCompiler.cs: If the control base type is in the root
  1123. namespace, make sure global:: is prepended to it.
  1124. * TemplateControlCompiler.cs: AutoHandlers is obsolete in 2.0,
  1125. mark it as such in the generated code as well.
  1126. * AppCodeCompiler.cs: Include debug information if configured in
  1127. web.config. Fixes bug #80096.
  1128. 2007-01-17 Marek Habersack <[email protected]>
  1129. * AppCodeCompiler.cs: Reference toplevel assemblies (at this stage
  1130. App_GlobalResources) when compiling App_Code sources.
  1131. * CachingCompiler.cs: Reference toplevel assemblies when compiling
  1132. e.g. Global.asax
  1133. * AppResourcesCompiler.cs: Close the streams properly.
  1134. * AspGenerator.cs: Don't ignore thead/tbody anymore.
  1135. 2007-01-15 Marek Habersack <[email protected]>
  1136. * WsdlBuildProvider.cs: New build provider for WSDL files.
  1137. Compile only when System.Web.Services are present.
  1138. * TemplateControlCompiler.cs: Forgotten in the previous commit -
  1139. don't pass the current culture to GetLocalResourceObject, let the
  1140. method figure it out on its own.
  1141. 2007-01-05 Marek Habersack <[email protected]>
  1142. * AppResourceFilesCollection.cs: new class to keep and manage
  1143. collection of resource files for the App_{Global,Local}Resources
  1144. folders.
  1145. * TemplateControlCompiler.cs: rely on
  1146. HttpContext.GetLocalResourceObject to select the correct culture.
  1147. * AppResourceFileInfo.cs: new class for keeping resource files
  1148. information.
  1149. * AppResourcesCompiler.cs: new implementation.
  1150. 2006-12-20 Marek Habersack <[email protected]>
  1151. * AssemblyBuilder.cs: add an internal version of the
  1152. AddCodeCompileUnit method.
  1153. * AppCodeCompiler.cs: implement support for ProfileCommon
  1154. generation from properties named in the <profile> element in
  1155. Web.config.
  1156. * PageCompiler.cs: create the Profile property in 2.0 code.
  1157. 2006-12-12 Vladimir Krasnov <[email protected]>
  1158. * ThemeDirectoryCompiler.jvm.cs: fixed virtual path for themes
  1159. 2006-12-10 Igor Zelmanovich <[email protected]>
  1160. * ThemeDirectoryCompiler.cs: refactoring.
  1161. 2006-11-28 Marek Habersack <[email protected]>
  1162. * BuildManager.cs: Add an internal property to signal whether or
  1163. not we have any resources from App_{Global,Local}Resources
  1164. * AspGenerator.cs: Register controls from
  1165. system.web/pages/controls collection before parsing.
  1166. * AppResourcesCompiler.cs: Let the build process know if we have
  1167. compiled any resources from App_{Global,Local}Resources
  1168. 2006-11-27 Marek Habersack <[email protected]>
  1169. * CachingCompiler.cs: Automatically reference App_Code
  1170. assemblies.
  1171. * AppCodeCompiler.cs: Add ~/bin/*.dll to the referenced assemblies
  1172. when compiling.
  1173. 2006-11-25 Marek Habersack <[email protected]>
  1174. * AppResourcesCompiler.cs: small optimizations.
  1175. * AppResourceFilesCompiler.cs: small optimizations.
  1176. 2006-11-21 Gonzalo Paniagua Javier <[email protected]>
  1177. * WebServiceCompiler.cs: add the type to the cache after getting it
  1178. from the compiled assembly.
  1179. 2006-11-20 Marek Habersack <[email protected]>
  1180. * AppCodeCompiler.cs: Reference assemblies listed in
  1181. system.web/compilation/assemblies.
  1182. Don't create empty assemblies.
  1183. 2006-11-19 Igor Zelmanovich <[email protected]>
  1184. * TemplateControlCompiler.cs: fixed:
  1185. When <%# Bind(...) %>-expression is used more then once for same control
  1186. The variable associated with this control is declared only once.
  1187. 2006-11-18 Marek Habersack <[email protected]>
  1188. * AppResourceFilesCompiler.cs: Fixed an exception thrown when
  1189. files with names like File.resources or File.resx are found in the
  1190. resource directories.
  1191. 2006-11-16 Marek Habersack <[email protected]>
  1192. * ForceCopyBuildProvider.cs: Added the build provider for
  1193. copy-only files.
  1194. * MasterPageBuildProvider.cs: Added the build provider for Master
  1195. Pages.
  1196. * IgnoreFileBuildProvider.cs: Make the class sealed.
  1197. * AppCodeCompiler.cs: Fixed BuildProvider creation for a path. Now
  1198. correctly uses the BuildProviderCollection to retrieve the
  1199. appropriate builder and maps the physical input file path into
  1200. application relative path when setting the virtual path of the
  1201. build provider.
  1202. 2006-11-13 Marek Habersack <[email protected]>
  1203. * AssemblyBuilder.cs: Added referenced assemblies support. Added a
  1204. constructor with just the CodeDomProvider argument. CreateCodeFile
  1205. now uses the code provider's file extension. Added internal method
  1206. to add pre-generated source code files. Added a BuildAssembly
  1207. overload that takes no virtual path as the
  1208. parameter. BuildAssembly now uses an array of source files instead
  1209. of compile units and also handles embedded resources and
  1210. referenced assemblies. BuildAssembly deletes the temporary files
  1211. if MONO_ASPNET_NODELET isn't set in the environment.
  1212. * AppCodeCompiler.cs: Use the FileUtils methods for temporary file
  1213. creation. Use the build providers collection to build unknown
  1214. files in App_Code. Use AssemblyBuilder to compile the assembly.
  1215. * AppResourceFilesCompiler.cs: Use the FileUtils methods for
  1216. temporary file creation.
  1217. * WebHandlerBuildProvider.cs: Added the BuildProviderAppliesTo
  1218. attribute.
  1219. * UserControlBuildProvider.cs: Added the BuildProviderAppliesTo
  1220. attribute.
  1221. * PageBuildProvider.cs: Added the BuildProviderAppliesTo
  1222. attribute.
  1223. * WebServiceBuildProvider.cs: Added the BuildProviderAppliesTo
  1224. attribute.
  1225. * IgnoreFileBuildProvider.cs: Added the BuildProviderAppliesTo
  1226. attribute.
  1227. 2006-11-08 Marek Habersack <[email protected]>
  1228. * BuildProvider.cs: Implemented the GetCustomString
  1229. method. Removed the necessity to retrieve the CompilationSection
  1230. twice when GetDefaultCompilerType is called.
  1231. * AppResourcesCompiler.cs: Added resource compiler results
  1232. handling.
  1233. * AppCodeCompiler.cs: The App_Code compiler classes
  1234. * BuildManager.cs: Implement the CodeAssemblies property.
  1235. Added an internal TopLevelTypes property to be used in the custom
  1236. GetType methods. Implemented the GetCompiledCustomString method.
  1237. Implemented the GetType method overloads. Implemented the
  1238. GetVirtualPathDependencies method.
  1239. * BaseCompiler.cs: Reference the assemblies from App_Code, if any
  1240. 2006-10-18 Marek Habersack <[email protected]>
  1241. * TemplateControlCompiler.cs: add support for resource
  1242. expressions in tag attributes.
  1243. * ResourceExpressionBuilder.cs: add support for resource
  1244. expressions in tag attributes.
  1245. * BaseCompiler.cs: add global/local resource assemblies to
  1246. compilation references, if present.
  1247. * AppResourcesCompiler.cs: global/local resources compiler.
  1248. * AppResourceFilesCompiler.cs: compiler of resource files.
  1249. 2006-10-03 Igor Zelmanovich <[email protected]>
  1250. * TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
  1251. At run time, the Bind method calls the Eval method, if there is DataItem
  1252. != null to bind to.
  1253. If there is DataItem == null (like InsertItemTemplate in FormView) Bind
  1254. method don't raise exception and works properly to extract data from
  1255. bounded controls on postback.
  1256. 2006-09-20 Gonzalo Paniagua Javier <[email protected]>
  1257. * AspGenerator.cs: if we are tracking non-server tags for
  1258. well-formedness, handle tags that do not need to be closed (br, img,...)
  1259. Fixes bug #79437.
  1260. 2006-09-18 Gonzalo Paniagua Javier <[email protected]>
  1261. * PageCompiler.cs: support the EnableEventValidation attribute.
  1262. 2006-09-08 Gonzalo Paniagua Javier <[email protected]>
  1263. * AspGenerator.cs: after parsing an include file, don't error out if we
  1264. still have opened tags unless this was the last file to parse. Fixes
  1265. bug #79318.
  1266. 2006-09-05 Konstantin Triger <[email protected]>
  1267. * ParseException.cs: Ensure the source file stream is closed.
  1268. 2006-08-25 Kornél Pál <[email protected]>
  1269. * AppSettingsExpressionBuilder.cs: Use assembly name constants.
  1270. * ConnectionStringsExpressionBuilder.cs: Use name reference
  1271. constants.
  1272. * ResourceExpressionBuilder.cs: Use assembly name constants.
  1273. 2006-08-20 Vladimir Krasnov <[email protected]>
  1274. * ThemeDirectoryCompiler.jvm.cs: implemented GetCompiledInstance
  1275. 2006-08-10 Gonzalo Paniagua Javier <[email protected]>
  1276. * ClientBuildManager.cs: handle domain shutdown and unload.
  1277. Implemented some properties. Commented.
  1278. 2006-08-10 Andrew Skiba <[email protected]>
  1279. * ThemeDirectoryCompiler.cs: render css path as a virtual path.
  1280. 2006-08-08 Vladimir Krasnov <[email protected]>
  1281. * added ThemeDirectoryCompiler.jvm.cs
  1282. 2006-07-28 Gonzalo Paniagua Javier <[email protected]>
  1283. * PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
  1284. the property Items does not exist. Patch by Marek Habersack that fixes
  1285. bug #78971.
  1286. 2006-07-28 Gonzalo Paniagua Javier <[email protected]>
  1287. * TemplateControlCompiler.cs: support assigning nullable types.
  1288. Patch by Marek Habersack that fixes bug #78970.
  1289. 2006-07-13 Gonzalo Paniagua Javier <[email protected]>
  1290. * TemplateControlCompiler.cs: make password work again.
  1291. 2006-06-21 Juraj Skripsky <[email protected]>
  1292. * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
  1293. MS.NET handles nested quotes differently for server controls and
  1294. for "normal" controls. Add a property "AlternatingQuotes" to the
  1295. tokenizer and let the parser decide whether it is well-formed or not.
  1296. 2006-06-20 Andrew Skiba <[email protected]>
  1297. * PageThemeCompiler.cs, TemplateControlCompiler.cs: take care of
  1298. UrlPropertyAttribute.
  1299. 2006-06-18 Andrew Skiba <[email protected]>
  1300. * TemplateControlCompiler.cs: check IsWritablePropertyOrField before
  1301. generating code for assignment statement and DataBind event.
  1302. 2006-06-15 Juraj Skripsky <[email protected]>
  1303. * AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
  1304. Don't allow an attribute value to contain the same quote characters
  1305. as the ones used for delimiting the value itself. Add a token
  1306. NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
  1307. 2006-06-08 Konstantin Triger <[email protected]>
  1308. * ThemeDirectoryCompiler.cs: use physical path instead of virtual path.
  1309. 2006-04-24 Andrew Skiba <[email protected]>
  1310. * ThemeDirectoryCompiler.cs: use UrlUtils.Combine to combine pathes
  1311. 2006-04-23 Andrew Skiba <[email protected]>
  1312. * PageThemeCompiler.cs: initialize __linkedStyleSheets field with the
  1313. array of style sheets from the parser
  1314. * ThemeDirectoryCompiler.cs: scan *.css files in theme directory and
  1315. put them in LinkedStyleSheets of PageThemeParser
  1316. 2006-04-20 Chris Toshok <[email protected]>
  1317. * BaseCompiler.cs: for 2.0, emit the correct namespace and class
  1318. names in the case where you use "NS.ClassName" in the Inherits
  1319. attribute. Fixes bug #78135.
  1320. 2006-04-20 Gonzalo Paniagua Javier <[email protected]>
  1321. * CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
  1322. already acquired the lock even when we might have not created the 'key'
  1323. to the compilation ticket.
  1324. 2006-04-16 Andrew Skiba <[email protected]>
  1325. * ThemeDirectoryCompiler.cs: add to the directory parser all the
  1326. assemblies found by PageThemeFileParsers
  1327. 2006-04-12 Lluis Sanchez Gual <[email protected]>
  1328. * TemplateControlCompiler.cs: Properly read all content of
  1329. string properties.
  1330. 2006-04-11 Andrew Skiba <[email protected]>
  1331. * TemplateControlCompiler.cs : fix for partial parsers
  1332. 2006-04-11 Andrew Skiba <[email protected]>
  1333. * ThemeDirectoryCompiler.cs : map the virtual path to the physical
  1334. path
  1335. 2006-04-08 Miguel de Icaza <[email protected]>
  1336. * TemplateControlCompiler.cs: An attempt to fix the regression
  1337. introduced in r58505 (a bug fix for 77762). This was reported in
  1338. the mailing list with a batch of new 2.0 failures.
  1339. We really need a test suite in NUnit to check on ASP.NET aspx
  1340. changes.
  1341. 2006-03-27 Robert Jordan <[email protected]>
  1342. * CachingCompiler.cs: change the compilation locking scheme
  1343. from "one mcs per process" to "one mcs per file".
  1344. 2006-03-24 Gonzalo Paniagua Javier <[email protected]>
  1345. * System.Web.Compilation/TemplateControlCompiler.cs: handle the new
  1346. StringPropertyBuilder.
  1347. 2006-03-24 Chris Toshok <[email protected]>
  1348. * BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
  1349. if system.web/compilation doesn't list a compiler for our
  1350. language.
  1351. 2006-03-13 Chris Toshok <[email protected]>
  1352. * TemplateControlCompiler.cs (InitMethod): when generating the
  1353. call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
  1354. argument to it. Only do that if the class we're compiling is
  1355. actually a subclass of Page. If it's not, pass this.Page.
  1356. 2006-03-07 Chris Toshok <[email protected]>
  1357. * AspGenerator.cs: refactor the parsing code so that we can
  1358. initiate parsing from outside this class.
  1359. * PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
  1360. method, add our StyleSheetTheme assignment here.
  1361. (AppendStatementsToFrameworkInitialize): rename AddStatements* to
  1362. this.
  1363. * TemplateControlCompiler.cs (EnsureID): make protected.
  1364. (CreateAssignStatementsFromAttributes): same
  1365. (AddChildCall): same.
  1366. (CreateControlTree): same.
  1367. (CreateFrameworkInitializeMethod): change
  1368. "AddStatementsToFrameworkInitialize" to
  1369. "AppendStatementsToFrameworkInitialize", and add call to
  1370. "PrependStatementsToFrameworkInitialize" before the generation of
  1371. "base.FrameworkInitialize()."
  1372. * PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
  1373. 2006-03-07 Chris Toshok <[email protected]>
  1374. * ThemeDirectoryCompiler.cs: new file.
  1375. * PageThemeCompiler.cs: new file.
  1376. 2006-03-07 Chris Toshok <[email protected]>
  1377. * BaseCompiler.cs: fix typo in "initialize" in multiple places.
  1378. (Init): move the CreateMethods call here.
  1379. 2006-03-02 Chris Toshok <[email protected]>
  1380. * TemplateControlCompiler.cs (InitMethod): emit an assignment for
  1381. SkinID just after the creation of our object, and right after that
  1382. call "_ctrl.ApplyStyleSheetSkin (page)".
  1383. (CreateAssignStatementsFromAttributes): split out the majority of
  1384. this code to CreateAssignStatementFromAttribute, and change this
  1385. method to simply a loop over the attribute keys. In the 2.0 case,
  1386. skip the SkinID property, since that's handled explicitly in
  1387. InitMethod.
  1388. * PageCompiler.cs (AddStatementsToInitMethod): emit assignments
  1389. for Theme and StyleSheetTheme.
  1390. 2006-02-23 Chris Toshok <[email protected]>
  1391. * TemplateControlCompiler.cs (AddContentTemplateInvocation): track
  1392. change from ContentControlBuilderInternal to
  1393. ContentBuilderInternal.
  1394. (AddCodeRender): same.
  1395. 2006-02-16 Gonzalo Paniagua Javier <[email protected]>
  1396. * AssemblyBuilder.cs:
  1397. * BuildManager.cs: compile the assembly from AssemblyBuilder and use
  1398. GetGeneratedType() on the BuildProvider instead of loading the assembly
  1399. and trying a wild guess at the type name.
  1400. 2006-02-14 Gonzalo Paniagua Javier <[email protected]>
  1401. * GlobalAsaxCompiler.cs:
  1402. * PageCompiler.cs:
  1403. * TemplateControlCompiler.cs: CreateMethods is now internal.
  1404. * WebServiceBuildProvider.cs:
  1405. * PageBuildProvider.cs:
  1406. * UserControlBuildProvider.cs:
  1407. * WebHandlerBuildProvider.cs: new build providers.
  1408. * BuildProvider.cs: add assemblies.
  1409. * BaseCompiler.cs: expose the provider and the compile unit through
  1410. properties.
  1411. 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
  1412. * CompilerType.cs: implemented.
  1413. * AssemblyBuilder.cs: implemented most of it.
  1414. * WebServiceCompiler.cs:
  1415. * CachingCompiler.cs: update 2.0 compiler instance creation code.
  1416. * ClientBuildManager.cs: implemented some of its methods. Not yet
  1417. ready.
  1418. * BuildManager.cs: the more interesting methods are implemented now.
  1419. * BaseCompiler.cs: delete the temporary files in case of error.
  1420. * BuildProvider.cs: implemented the Get*Compiler* protected methods.
  1421. 2006-02-07 Chris Toshok <[email protected]>
  1422. * TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
  1423. calls to AddParsedSubObject to a special statement collection --
  1424. builder.flushOutputStatements -- not to builder.method.Statements.
  1425. (InitMethod): initially, set flushOutputStatements to
  1426. method.Statements. If we're dealing with a ContentPlaceHolder,
  1427. set flushOutputStatements to be the else block of a conditional we
  1428. create. This causes the compiled control to fall back to the
  1429. ContentPlaceHolder's child controls in case there's no
  1430. corresponding Content template.
  1431. (AddChildCall): use methodStatements instead of method.Statements.
  1432. (CreateControlTree): same.
  1433. * PageCompiler.cs (CreatePropertyAssign): factor out the
  1434. string,string implementation and add one that also takes a
  1435. CodeExpression; make the string,string implementation call the
  1436. three arg one with thisRef.
  1437. (AddStatementsToInitMethod): make use of the 3-arg form of
  1438. CreatePropertyAssign to reduce code. Also, add support for
  1439. setting the page's Title from the parser's Title.
  1440. 2006-02-07 Chris Toshok <[email protected]>
  1441. * UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
  1442. assign __ctrl.MasterPageFile to our master page, if we have one.
  1443. * PageCompiler.cs (CreateContructor): remove the MasterPageFile
  1444. assignment from here.
  1445. (AddStatementsToInitMethod): and move it here.
  1446. * TemplateControlCompiler.cs (InitMethod): in the case where
  1447. builder is a RootBuilder (we're building the __BuildControlTree
  1448. method), call a virtual method so that subclasses can add their
  1449. own statements to the method (used by both Page and MasterPage);
  1450. Also, in the RootBuilder case, the argument should be the
  1451. parser.ClassName type (the class we're building); lastly, expand
  1452. the ContentPlaceHolder logic to include all the
  1453. ContentTemplates/InstantiateIn magic.
  1454. (AddStatementsToInitMethod): empty virtual method.
  1455. (AddContentTemplateInvocation): ContentControlBuilder ->
  1456. ContentControlBuilderInternal.
  1457. (CreateControlTree): same.
  1458. (CallBaseFrameworkInitialize): new function, create call to
  1459. base.FrameworkInitialize.
  1460. (CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
  1461. 2006-02-06 Gonzalo Paniagua Javier <[email protected]>
  1462. * IgnoreFileBuildProvider.cs: it's not public.
  1463. * BuildProvider.cs: mostly implemented.
  1464. 2006-02-01 Chris Toshok <[email protected]>
  1465. * WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
  1466. GetSection instead of GetWebApplicationSection.
  1467. * CachingCompiler.cs: same.
  1468. * AspGenerator.cs: same.
  1469. * BaseCompiler.cs: same.
  1470. 2006-01-23 Gonzalo Paniagua Javier <[email protected]>
  1471. * AspGenerator.cs: ignore 'thead'. Fixes bug #77326.
  1472. 2006-01-22 Chris Toshok <[email protected]>
  1473. * IgnoreFileBuildProvider.cs: build provider which does nothing.
  1474. 2006-01-22 Chris Toshok <[email protected]>
  1475. * AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
  1476. Hashtable ctor to silence a couple of warning.
  1477. (CompoundFoundry.ctor): same
  1478. * Directive.cs (InitHash): use a 2.0 friendly form of the
  1479. Hashtable ctor to silence a couple of warning.
  1480. * TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
  1481. Hashtable ctor to silence a warning.
  1482. (GetDictionary): same.
  1483. 2006-01-22 Chris Toshok <[email protected]>
  1484. * AppSettingsExpressionBuilder.cs: implement this, patterning it
  1485. after an example on msdn. Also, enable the ExpressionEditor
  1486. attribute, but use the string rather than the Type overload so we
  1487. won't have yet another circular dep.
  1488. * ConnectionStringsExpressionBuilder.cs: partial implementation.
  1489. Same deal with the ExpressionEditor attribute.
  1490. * ResourceExpressionBuilder.cs: same deal with the
  1491. ExpressionEditor attribute.
  1492. 2006-01-20 Chris Toshok <[email protected]>
  1493. * ResourceExpressionBuilder.cs (ParseExpression): implement.
  1494. * ResourceExpressionFields.cs: implement.
  1495. 2006-01-20 Chris Toshok <[email protected]>
  1496. * ClientBuildManagerParameter.cs: implement.
  1497. * ClientBuildManagerCallback.cs: this class contains an empty
  1498. default implementation.
  1499. 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
  1500. * AspGenerator.cs: add support for 'src' in <script runat="server">.
  1501. Fixes bug #77150.
  1502. 2006-01-04 Chris Toshok <[email protected]>
  1503. * WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
  1504. code.
  1505. * AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.
  1506. 2005-12-06 Gonzalo Paniagua Javier <[email protected]>
  1507. * AspGenerator.cs: fix yesterday's fix.
  1508. 2005-12-06 Gonzalo Paniagua Javier <[email protected]>
  1509. * AspGenerator.cs: only do special processing for <script> if it has
  1510. the runat="server" attribute. Fixes bug #76918.
  1511. 2005-12-01 Gonzalo Paniagua Javier <[email protected]>
  1512. * TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
  1513. Fixes bug #76677.
  1514. 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
  1515. * TemplateControlCompiler.cs: handle data bound attributes for html
  1516. controls. Fixes bug #76785.
  1517. 2005-11-28 Chris Toshok <[email protected]>
  1518. * CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.
  1519. * BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.
  1520. 2005-11-22 Gonzalo Paniagua Javier <[email protected]>
  1521. * WebServiceCompiler.cs: fixed caching for web handlers.
  1522. 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
  1523. * AspParser.cs: don't change case for verbatim IDs.
  1524. Fixes bug #76657.
  1525. 2005-09-23 Gonzalo Paniagua Javier <[email protected]>
  1526. * AspParser.cs: when processing verbatim input, throw if we reach EOF
  1527. before the expected end of the data.
  1528. 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
  1529. * CachingCompiler.cs:
  1530. * WebServiceCompiler.cs: when caching a type loaded from an assembly
  1531. that we didn't compile, make it depend on the file itself, not on a
  1532. non-existing cache key. This problem affected performance of web
  1533. services and .ashx, making unnecessary extra calls to LoadFrom every
  1534. time the cache was cleared.
  1535. 2005-09-10 Gonzalo Paniagua Javier <[email protected]>
  1536. * BaseCompiler.cs: set the domain's DynamicBase property instead of
  1537. guessing it in BaseCompiler.
  1538. 2005-08-18 Gonzalo Paniagua Javier <[email protected]>
  1539. * WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
  1540. 75146 for pages/controls.
  1541. 2005-08-09 Miguel de Icaza <[email protected]>
  1542. * WebServiceCompiler.cs: Use the new DynamicDir method.
  1543. * BaseCompiler.cs: Use the DynamicBase property as a hint, but
  1544. since this value is null most of the time, compute the real value.
  1545. Added Bonus: if the directory has some kind of permission problem,
  1546. try a different directory name.
  1547. 2005-07-13 Miguel de Icaza <[email protected]>
  1548. * AspGenerator.cs (AspGenerator.CheckLanguage): Use
  1549. BaseParser.Context for the context.
  1550. 2005-06-26 Gonzalo Paniagua Javier <[email protected]>
  1551. * TagAttributes.cs:
  1552. * AspParser.cs:
  1553. * TemplateControlCompiler.cs: use invariant culture versions of starts/
  1554. endswith.
  1555. 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
  1556. * TemplateControlCompiler.cs: comparison between member name and the
  1557. first part of the id provided by the user should also be
  1558. case-insensitive. Fixes bug #75379.
  1559. 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
  1560. * CachingCompiler.cs: use cache.InsertPrivate.
  1561. * AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
  1562. AddDependency.
  1563. 2005-06-24 Gonzalo Paniagua Javier <[email protected]>
  1564. * CachingCompiler.cs: create the assemly in the DynamicBase directory,
  1565. as all the others, when compiling an assembly from a Src file. Fixes
  1566. bug #75371.
  1567. 2005-06-15 Gonzalo Paniagua Javier <[email protected]>
  1568. * TemplateControlCompiler.cs: if the property is not found, don't forget
  1569. about trying the field.
  1570. 2005-06-13 Lluis Sanchez Gual <[email protected]>
  1571. * Directive.cs: Register the MasterType directive.
  1572. * PageCompiler.cs: If a MasterType is specified, add a type specific
  1573. Master property. All this fixes bug #75192.
  1574. 2005-06-11 Gonzalo Paniagua Javier <[email protected]>
  1575. * TemplateControlCompiler.cs: when mapping an attribute name to a field
  1576. or property name, there's no need to try with every property and field,
  1577. but just the one found when searching by name (no case). There was one
  1578. call to ProcessPropertiesAndFields per property or field until found,
  1579. now only one if the property/field is found, none otherwise.
  1580. 2005-06-11 Gonzalo Paniagua Javier <[email protected]>
  1581. * TemplateControlCompiler.cs: allow more than 2 levels when looking for
  1582. properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
  1583. bug #75234.
  1584. 2005-06-05 Gonzalo Paniagua Javier <[email protected]>
  1585. * BaseCompiler.cs: when the OutputAssembly is null, we can still have
  1586. the assembly file there and be able to load it. Thanks to Rogerio and
  1587. Mark.
  1588. 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
  1589. * AspParser.cs: InvariantCulture love.
  1590. 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
  1591. * TemplateControlCompiler.cs: use the Page AddContentTemplate method,
  1592. as the one in Master is protected. Fixes bug #75157.
  1593. 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
  1594. * AspComponentFoundry.cs: tagnames have precedence over types in
  1595. assemblies when they use the same prefix. Fixes bug #71855.
  1596. 2005-05-03 Lluis Sanchez Gual <[email protected]>
  1597. * WebServiceCompiler.cs: Create the temp directory before
  1598. creating the web service source code file.
  1599. 2005-04-25 Gonzalo Paniagua Javier <[email protected]>
  1600. * AspGenerator.cs: when checking languages, try to match other aliases
  1601. too (ie, 'cs' == 'c#').
  1602. 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
  1603. * BaseCompiler.cs: check that DynamicBase directory exists before
  1604. creating the TempFileCollection.
  1605. 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
  1606. * AspGenerator.cs: use a stack for non-server tags even before getting
  1607. to a form. Fixes bug #70274.
  1608. 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
  1609. * AspParser.cs: don't error out on ill formed tags if it's not a server
  1610. tag (ie, allow something like '<table align="left cellpadding="0">' to
  1611. work, as MS does. Fixes bug #67909.
  1612. 2005-04-20 Rafael Teixeira <[email protected]>
  1613. * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
  1614. @Page/@Control directives to CodeDOM (VB.NET support)
  1615. 2005-04-19 Lluis Sanchez Gual <[email protected]>
  1616. * AspParser.cs: Fixed parsing of data binding tags in server
  1617. tag attributes. Allow <%...%> blocks not assigned to
  1618. attributes in client tags.
  1619. * TagAttributes.cs: Make sure that data binding blocks in server
  1620. tags are always assigned to attributes.
  1621. 2005-04-15 Lluis Sanchez Gual <[email protected]>
  1622. * TemplateControlCompiler.cs: Implemented support for two-way
  1623. binding.
  1624. 2005-04-14 Lluis Sanchez Gual <[email protected]>
  1625. * TemplateControlCompiler.cs: Use the new BindingContainerType
  1626. property to find the type of the binding container.
  1627. 2005-04-07 Lluis Sanchez Gual <[email protected]>
  1628. * TemplateControlCompiler.cs: Avoid using the GetConverter() trick
  1629. for primitive types. Parse an empty color string as Color.Empty.
  1630. Get the converter for a property using its PropertyDescriptor.
  1631. 2005-04-05 Lluis Sanchez Gual <[email protected]>
  1632. * TemplateControlCompiler.cs: Don't autogenerate IDs for
  1633. controls inside Content template.
  1634. 2005-03-18 Gonzalo Paniagua Javier <[email protected]>
  1635. * TemplateControlCompiler.cs: make typedesc.aspx work again.
  1636. 2005-02-17 Gonzalo Paniagua Javier <[email protected]>
  1637. * ExpressionBuilderContext.cs:
  1638. * ExpressionBuilder.cs: implemented.
  1639. 2005-02-11 Gonzalo Paniagua Javier <[email protected]>
  1640. * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
  1641. 2005-01-28 Lluis Sanchez Gual <[email protected]>
  1642. * TemplateControlCompiler.cs: When generating a property value,
  1643. check for TypeConverterAttribute in the PropertyInfo, not only in the
  1644. property type.
  1645. Implemented code generation using InstanceDescriptor, when the type
  1646. converter supports conversion to that type.
  1647. 2005-01-21 Lluis Sanchez Gual <[email protected]>
  1648. * Directive.cs: Added MASTER directive.
  1649. * AspGenerator.cs: Use UserControlCompiler for compiling master pages.
  1650. * PageCompiler.cs: Set the master file name when generating the page.
  1651. * TemplateControlCompiler.cs: When generating the method for a
  1652. content holder, register the content holder in the base MasterPage.
  1653. Added method for registering a Content control for a MasterPage.
  1654. Generate code for Content controls.
  1655. 2005-01-10 Lluis Sanchez Gual <[email protected]>
  1656. * TemplateControlCompiler.cs: Get the container type from the
  1657. template (if it was defined using TemplateContainerAttribute.
  1658. 2004-10-29 Gonzalo Paniagua Javier <[email protected]>
  1659. * AspGenerator.cs: correctly process script tags that self-closing.
  1660. Fixes bug #69657.
  1661. 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
  1662. * CachingCompiler.cs: when compiling a single .cs file, add the file
  1663. itself to dependencies. Fixes bug #68788.
  1664. 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
  1665. * ControlBuilder.cs: don't close server tags when we get to a closing
  1666. tag that is not applied to a server control. Fixes bug #60323.
  1667. 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
  1668. * WebServiceCompiler.cs: fix buglet in my last commit.
  1669. 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
  1670. * BaseCompiler.cs:
  1671. * CachingCompiler.cs:
  1672. * WebServiceCompiler.cs: correctly cache Type instead of the assembly
  1673. for ashx/asmx. Otherwise we need to open the file and check for the
  1674. class name in there. Thanks to Ben for pointing this out.
  1675. 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
  1676. * AspParser.cs:
  1677. * AspTokenizer.cs: prevent quotes from being swallowed when we're
  1678. inside a server tag and they are the next non-whitespace character.
  1679. Fixes bug #63451.
  1680. 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
  1681. * CachingCompiler.cs: don't try to watch for changes in system
  1682. assemblies. Fixes bug #64871.
  1683. 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
  1684. * AspGenerator.cs: handle builders that need to process inner text
  1685. with tags.
  1686. * Location.cs: added setters for the properties.
  1687. 2004-08-02 Duncan Mak <[email protected]>
  1688. * BuildProviderResultFlags.cs:
  1689. * IImplicitResourceProvider.cs:
  1690. * ImplicitResourceKey.cs:
  1691. * IResourceReader.cs: Added.
  1692. 2004-07-21 Gonzalo Paniagua Javier <[email protected]>
  1693. * AspGenerator.cs: the path for file was treated as virtual, but it's
  1694. physical. Fixes bug #61524.
  1695. 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
  1696. * AspParser.cs: fixed case-sensitivity issues with #include and its
  1697. attributes. Closes #61429.
  1698. 2004-07-07 Gonzalo Paniagua Javier <[email protected]>
  1699. * BaseCompiler.cs:
  1700. * WebServiceCompiler.cs: really create the dlls under DynamicBase
  1701. 2004-06-19 Gonzalo Paniagua Javier <[email protected]>
  1702. * TemplateControlCompiler.cs: for system colors, use SystemColors class
  1703. instead of Color. Fixes bug #60249.
  1704. 2004-06-16 Gonzalo Paniagua Javier <[email protected]>
  1705. * BaseCompiler.cs: try getting the Type from the cache before doing the
  1706. real work. Remove temporary files right after successful compilation.
  1707. * CachingCompiler.cs: added GetTypeFromCache.
  1708. * UserControlCompiler.cs: nothing interesting.
  1709. * WebServiceCompiler.cs: try getting the Type from the cache before
  1710. doing anything else. Remove temp files on sucessful compilation.
  1711. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  1712. * AspGenerator.cs:
  1713. * CachingCompiler.cs: use a different prefix when caching compiler
  1714. results or Types.
  1715. 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
  1716. * BaseCompiler.cs: dynamicBase is now protected. Check
  1717. MONO_ASPNET_NODELETE here.
  1718. * TemplateControlCompiler.cs: if the type is not known but has a
  1719. TypeConverter, invoke ConvertFromString in the generated code.
  1720. * WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
  1721. the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
  1722. * CachingCompiler.cs: updated compilation of web services and simple
  1723. web handlers.
  1724. 2004-06-08 Gonzalo Paniagua Javier <[email protected]>
  1725. * CSCompiler.cs: removed.
  1726. * CachingCompiler.cs: language independent compilation for single files.
  1727. 2004-06-08 Gonzalo Paniagua Javier <[email protected]>
  1728. * BaseCompiler.cs:
  1729. * WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
  1730. * CachingCompiler.cs: use HttpRuntime.Cache.
  1731. 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
  1732. * PageCompiler.cs: fixed Trace and add support for Buffer.
  1733. 2004-06-04 Gonzalo Paniagua Javier <[email protected]>
  1734. * PageCompiler.cs: override CreateConstructor to add assignment for
  1735. ClientTarget.
  1736. 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
  1737. * TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
  1738. of CodeObjectCreateExpression for the render method delegate. Thanks
  1739. to Jochen Wezel.
  1740. 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
  1741. * BaseCompiler.cs: use DynamicBase for the output assemblies.
  1742. 2004-05-12 Gonzalo Paniagua Javier <[email protected]>
  1743. * AspGenerator.cs: ObjectTagBuilder do not override HasBody now.
  1744. 2004-05-06 Gonzalo Paniagua Javier <[email protected]>
  1745. * AspParser.cs: indent a few lines.
  1746. * AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
  1747. attribute value. This way we can simulate reading 2 characters ahead
  1748. (one in ungetc and the other in Peek) and work with values like
  1749. text/javascript. Fixes bug #57302.
  1750. 2004-05-06 Gonzalo Paniagua Javier <[email protected]>
  1751. * AspParser.cs: ignore whitespace after directives. Fixes bug #58057.
  1752. 2004-04-02 Lluis Sanchez Gual <[email protected]>
  1753. * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
  1754. 2004-03-15 Gonzalo Paniagua Javier <[email protected]>
  1755. * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
  1756. 2004-02-23 Gonzalo Paniagua Javier <[email protected]>
  1757. * AspGenerator.cs: error out when <object> server tag is not closed.
  1758. Ignore any content inside it.
  1759. 2004-02-10 Jackson Harper <[email protected]>
  1760. * AspTokenizer.cs: Collect discarded characters that might be used
  1761. in client side scripts. Patch by Liyu Liu.
  1762. * AspParser.cs: Add discarded characters. Patch by Liyu Liu.
  1763. 2004-02-10 Jackson Harper <[email protected]>
  1764. * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
  1765. bug #54117.
  1766. 2004-01-30 Jackson Harper <[email protected]>
  1767. * TemplateControlCompiler.cs: Call ToString on the types hashcode,
  1768. the build method takes strings not ints.
  1769. 2004-01-28 Gonzalo Paniagua Javier <[email protected]>
  1770. * AspGenerator.cs: handle more possible errors in global.asax file.
  1771. * BaseCompiler.cs: added utility methods for creating <object> related
  1772. properties and fields.
  1773. * GlobalAsaxCompiler.cs: keep around applications and session scope
  1774. objects builders. Also a list of imports and assemblies added in
  1775. global.asax.
  1776. * TemplateControlCompiler.cs: use base class methods for <object> stuff.
  1777. 2004-01-28 Gonzalo Paniagua Javier <[email protected]>
  1778. * AspGenerator.cs: use the Cache to store compiled Types. Don't parse
  1779. pages more than once. Thanks to Eric Lindvall for pointing this out.
  1780. 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
  1781. * TemplateControlCompiler.cs: allow handling subproperties for other
  1782. types than Style and Font. Fixes bug #53217.
  1783. 2004-01-16 Jackson Harper <[email protected]>
  1784. * TagAttribute.cs: attributes can be stored as encoded html so we
  1785. decode them here.
  1786. 2004-01-14 Jackson Harper <[email protected]>
  1787. * TemplateControlCompiler.cs: Is a user control is cached and
  1788. shared use the controls type hashcode for the GUID so it will be
  1789. the same across instances.
  1790. 2004-01-13 Jackson Harper <[email protected]>
  1791. * TemplateControlCompiler.cs: If an item has the partial caching
  1792. attribute build a PartialCachingControl in the parents __Build method.
  1793. * BaseCompiler.cs: Add a method for adding class attributes to the
  1794. class.
  1795. * UserControlCompiler.cs: If caching is enabled on a user control
  1796. add the PartialCachingAttribute to it.
  1797. 2004-01-12 Gonzalo Paniagua Javier <[email protected]>
  1798. * PageCompiler.cs: invoke Request.ValidateInput if required.
  1799. 2004-01-03 Gonzalo Paniagua Javier <[email protected]>
  1800. * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
  1801. #52521. Patch by [email protected].
  1802. 2003-12-25 Jackson Harper <[email protected]>
  1803. * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
  1804. #52522.
  1805. 2003-12-17 Gonzalo Paniagua Javier <[email protected]>
  1806. * PageCompiler.cs: assign the ErrorPage property if provided.
  1807. 2003-12-15 Jackson Harper <[email protected]>
  1808. * PageCompiler.cs: Add Trace and TraceMode to framework initialize
  1809. method if they are set.
  1810. 2003-12-15 Gonzalo Paniagua Javier <[email protected]>
  1811. * AspGenerator.cs: ignore <tbody> when we're inside a server table and
  1812. fail when runat="server" is applied to <tbody> with a parse error
  1813. instead of waiting for a compilation error. Fixes bug #52157.
  1814. 2003-12-02 Gonzalo Paniagua Javier <[email protected]>
  1815. * AspGenerator.cs: basic checking of ID validity. Throw a
  1816. ParseException when mixing languages.
  1817. 2003-11-30 Gonzalo Paniagua Javier <[email protected]>
  1818. * PageCompiler.cs: assign LCID, Culture and/or UICulture in
  1819. FrameworInitialize() if provided in @Page.
  1820. Fixes bug #51511.
  1821. 2003-11-20 Gonzalo Paniagua Javier <[email protected]>
  1822. * TemplateControlCompiler.cs: support for expressions of
  1823. System.Drawing.Size type. Allow getting Color from comma separated
  1824. numbers, which is not allowed by ColorConverter.
  1825. This makes http://www.codeproject.com/aspnet/asppopup.asp work.
  1826. 2003-11-13 Jackson Harper <[email protected]>
  1827. * PageCompiler.cs: Call InitOutputCache when the OutputCache
  1828. directive is set.
  1829. 2003-11-05 Gonzalo Paniagua Javier <[email protected]>
  1830. * AspGenerator.cs: use fileEncoding from configuration files.
  1831. * PageCompiler.cs: add assign statements for ContentType,
  1832. ResponseEncoding and CodePage if supplied.
  1833. 2003-10-21 Gonzalo Paniagua Javier <[email protected]>
  1834. * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
  1835. a return statement for user controls with 'void' return type.
  1836. 2003-10-19 Gonzalo Paniagua Javier <[email protected]>
  1837. * AspParser.cs: fixed bug #49627.
  1838. 2003-10-14 Gonzalo Paniagua Javier <[email protected]>
  1839. * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
  1840. 2003-10-13 Gonzalo Paniagua Javier <[email protected]>
  1841. * Directive.cs: new attribute for @Page directive in 1.1.
  1842. 2003-10-11 Gonzalo Paniagua Javier <[email protected]>
  1843. * AspParser.cs:
  1844. * TagAttributes.cs: allow duplicated runat=server attributes and display
  1845. error page when duplicated attributes and runat is specified.
  1846. 2003-10-10 Gonzalo Paniagua Javier <[email protected]>
  1847. * AspTokenizer.cs: moved token numbers above unicode.
  1848. 2003-09-22 Gonzalo Paniagua Javier <[email protected]>
  1849. * AspGenerator.cs: don't process code render tags inside scripts. Check
  1850. the language of the script and treat javascript as verbatim input.
  1851. Fixes bug #48592.
  1852. 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
  1853. * TemplateControlCompiler.cs: fixed bug #48212.
  1854. 2003-09-18 Gonzalo Paniagua Javier <[email protected]>
  1855. * WebServiceCompiler.cs: remove the temporary files here too.
  1856. 2003-08-03 Gonzalo Paniagua Javier <[email protected]>
  1857. * AspGenerator.cs: fixed bug #46429.
  1858. 2003-08-01 Gonzalo Paniagua Javier <[email protected]>
  1859. * Directive.cs: support @WebHandler.
  1860. 2003-07-16 Gonzalo Paniagua Javier <[email protected]>
  1861. * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
  1862. 2003-07-08 Gonzalo Paniagua Javier <[email protected]>
  1863. * BaseCompiler.cs: first look for cached items, then generate the tree.
  1864. This should speed things up.
  1865. * CachingCompiler.cs: when compiling web services, use the full path of
  1866. the .asmx file as key when caching.
  1867. * WebServiceCompiler.cs: first look for cached items, then generate
  1868. the source file.
  1869. 2003-07-04 Gonzalo Paniagua Javier <[email protected]>
  1870. * AspParser.cs: more useful error information,
  1871. * BaseCompiler.cs:
  1872. * CachingCompiler.cs: honor the debug="true" option.
  1873. * TemplateControlCompiler.cs: small fixes for templates.
  1874. 2003-07-03 Gonzalo Paniagua Javier <[email protected]>
  1875. * BaseCompiler.cs: made Compiler property virtual.
  1876. * CachingCompiler.cs: added support for compiling web services.
  1877. * WebServiceCompiler.cs: implemented.
  1878. 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
  1879. * CachingCompiler.cs: fixed bug #43477.
  1880. 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
  1881. * AspParser.cs:
  1882. * AspTokenizer.cs: fixed bugs #43206 and #43371.
  1883. 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
  1884. * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
  1885. of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
  1886. reporting.
  1887. 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
  1888. * CompilationException.cs: don't add duplicated lines in the case that
  1889. mcs reports several errors for the same one.
  1890. 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
  1891. * AspGenerator.cs: fully support including files, ie., treat them just
  1892. as C treats #includes.
  1893. 2003-05-04 Gonzalo Paniagua Javier <[email protected]>
  1894. * AspGenerator.cs:
  1895. * AspParser.cs:
  1896. * TagType.cs: Added support for server side includes.
  1897. 2003-05-03 Gonzalo Paniagua Javier <[email protected]>
  1898. * CSCompiler.cs: actually add the list of referenced assemblies to the
  1899. compiler options. Throw a CompilationException if there's an error.
  1900. * CachingCompiler.cs: added a method to compile directly from a source
  1901. file.
  1902. 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
  1903. * AspGenerator.cs: copy the location before setting the value for the
  1904. control builders.
  1905. * BaseCompiler.cs: changed parameters for CompilationException.
  1906. * CompilationException.cs: it takes now line numbers and error
  1907. descriptions from the CompilerErrorCollection.
  1908. * Location.cs: used when a copy of an ILocation is needed.
  1909. * ParseException.cs: implemented new methods to provide line numbers
  1910. and souce file.
  1911. * TemplateControlCompiler.cs: throw a ParseException where appropiate.
  1912. 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
  1913. * AspGenerator.cs: also support data bind syntax inside tags not
  1914. processed as controls. Added debugging method.
  1915. * TemplateControlCompiler.cs: reset the number of data binding handlers
  1916. in the proper place. Small fix when getting the container type.
  1917. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  1918. * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
  1919. value.
  1920. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  1921. * AspGenerator.cs: handle code render syntax in tag attributes.
  1922. * AspParser.cs: the constructor now takes a TextReader.
  1923. * TemplateControlCompiler.cs: removed comment.
  1924. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  1925. * TemplateControlCompiler.cs: added support for data bound properties.
  1926. 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
  1927. * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
  1928. instead of their names.
  1929. * AspElements.cs: removed. No longer needed.
  1930. * AspGenerator.cs: this file is now in charge of interfacing between
  1931. the parser and the compiler. It manages the creation of the
  1932. ControlBuilder tree and the compilation of the CodeDOM tree.
  1933. * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
  1934. of different Types, tags are just and id and a set of attributes.
  1935. Implement ILocation interface.
  1936. * AspTokenizer.cs: added a few methods to help the parser implementing
  1937. ILocation.
  1938. * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
  1939. common to appliaction, page and user control, including the actual
  1940. compilation and error handling.
  1941. * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
  1942. * CachingCompiler.cs: simplified to use the new interfaces.
  1943. * CompilationException.cs: it's now using CompilationResult to report
  1944. errors.
  1945. * CompilationResult.cs: Removed file.
  1946. * Directive.cs: to check for the validity of a directive.
  1947. * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
  1948. in BaseCompiler.
  1949. * ILocation.cs: interface used to now the exact place where a parse
  1950. error happens.
  1951. * PageCompiler.cs: generates a couple of methods that are only used in
  1952. pages.
  1953. * ParseException.cs: use the ILocation interface.
  1954. * TagAttributes.cs: handles the attributes of the tags parsed.
  1955. * TagType.cs: an enum for the different kinds of tags.
  1956. * TemplateControlCompiler.cs: this is the one that does most of the
  1957. conversion from teh ControlBuilder tree into a CodeDOM tree.
  1958. * UserControlCompiler.cs: simplified as most of the work is done in
  1959. its base classes.
  1960. * WebServiceCompiler.cs: dummy.
  1961. 2003-04-20 Gonzalo Paniagua Javier <[email protected]>
  1962. * AspComponentFoundry.cs: added GetComponentType method.
  1963. 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
  1964. * AspTokenizer.cs: allow quotes inside server tags that are part of
  1965. attribute values.
  1966. * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
  1967. compilation fails.
  1968. 2003-03-27 Gonzalo Paniagua Javier <[email protected]>
  1969. * AspGenerator.cs: generate correct appbase path. It was working with
  1970. mcs but not with csc.
  1971. * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
  1972. * CachingCompiler.cs: quote source file.
  1973. 2003-03-26 Gonzalo Paniagua Javier <[email protected]>
  1974. * AspGenerator.cs: now the Inherits attribute works as expected for
  1975. global.asax file.
  1976. 2003-03-24 Gonzalo Paniagua Javier <[email protected]>
  1977. * CompilationException.cs:
  1978. * ParseException.cs: display the correct line number in error messages.
  1979. * AspElements.cs: added TargetSchema attribute for control. It's
  1980. ignored.
  1981. 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
  1982. * BaseCompiler.cs: fixed the hack to work under windows.
  1983. * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
  1984. 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
  1985. * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
  1986. 2003-03-17 George Kodinov <[email protected]>
  1987. * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
  1988. app's private bin path
  1989. 2003-03-10 Gonzalo Paniagua Javier <[email protected]>
  1990. * AspGenerator.cs:
  1991. * BaseCompiler.cs:
  1992. * CachingCompiler.cs:
  1993. * CompilationResult.cs:
  1994. * GlobalAsaxCompiler.cs:
  1995. * PageCompiler.cs:
  1996. * UserControlCompiler.cs: recompile the page if dependencies change.
  1997. 2003-02-15 Gonzalo Paniagua Javier <[email protected]>
  1998. * AspGenerator.cs: corrected typo and wrong fix.
  1999. 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
  2000. * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
  2001. when used explicitly.
  2002. 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
  2003. * AspElements.cs: get the property Type for controls that use
  2004. ParseChildren with a property name.
  2005. * AspGenerator.cs: generate correct signature for the method that
  2006. adds controls to the default property in ParseChildren.
  2007. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  2008. * AspGenerator.cs: rethrow exceptions that may come from parsing or
  2009. compilation if a user control.
  2010. 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
  2011. * AspGenerator.cs: throw ParseException on parse
  2012. error.
  2013. * AspParser.cs: added Line and Column props.
  2014. * CompilationException.cs: derives now from HtmlizedException.
  2015. * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
  2016. * GlobalAsaxCompiler.cs:
  2017. * PageCompiler.cs:
  2018. * UserControlCompiler.cs: pass the file name in the CompilationResult.
  2019. * ParseException.cs: new exception.
  2020. 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
  2021. * AspGenerator.cs: remove "file://" from the private bin path. Fixes
  2022. bug #37628.
  2023. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  2024. * AspParser.cs: the parser fires events when it parses an element.
  2025. * GlobalAsaxCompiler.cs:
  2026. * PageCompiler.cs:
  2027. * UserControlCompiler.cs:
  2028. * AspElements.cs: modified to use the new parser interface.
  2029. * AspGenerator.cs: modified to use the new parser. Merge multiple text
  2030. strings into one single LiteralControl.
  2031. * AspTokenizer.cs: added Line and Column properties.
  2032. 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
  2033. * AspParser.cs: fixed bug #36929.
  2034. 2003-01-21 Tim Haynes <[email protected]>
  2035. * AspGenerator.cs:
  2036. * BaseCompiler.cs:
  2037. * CachingCompiler.cs: changes to work around spaces and
  2038. directory-separators in the local filesystem.
  2039. 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
  2040. * AspGenerator.cs: make the generated file compile with csc after last
  2041. change.
  2042. 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
  2043. * AspGenerator.cs: removed unused variable. Added support for
  2044. properties/fields of type string [].
  2045. 2003-01-16 Gonzalo Paniagua Javier <[email protected]>
  2046. * AspGenerator.cs: modified loading of the parent type now that
  2047. Type.GetType is fixed.
  2048. 2003-01-10 Gonzalo Paniagua Javier <[email protected]>
  2049. * AspGenerator.cs: cast to Control if the container does not implement
  2050. INamingContainer.
  2051. 2003-01-10 Gonzalo Paniagua Javier <[email protected]>
  2052. * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
  2053. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  2054. * AspElements.cs: attributes without value lacked a space afterwards.
  2055. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  2056. * AspGenerator.cs: functions for columns don't return anything. Fixed
  2057. typo.
  2058. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  2059. * AspGenerator.cs: add data bound controls to code render function.
  2060. 2003-01-07 Gonzalo Paniagua Javier <[email protected]>
  2061. * AspComponentFoundry.cs: reworked to allow same prefix for multiple
  2062. controls. You can register 1 assembly plus any number of user controls
  2063. under the same prefix.
  2064. * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
  2065. Hack to allow @Register access to assemblies in other places than bin
  2066. directory.
  2067. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  2068. * AspElements.cs: added 'codebehind' attribute for page, control and
  2069. application. It's ignored by MS, but allowed. Fixed typo.
  2070. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  2071. * AspGenerator.cs: fixed EnableSesssionState handling.
  2072. 2003-01-05 Gonzalo Paniagua Javier <[email protected]>
  2073. * AspGenerator.cs: don't generate instance fields for pages/controls
  2074. when the base class specified in the Inherits attribute already has
  2075. them. Closes bug #36262.
  2076. 2002-12-19 Gonzalo Paniagua Javier <[email protected]>
  2077. * AspGenerator.cs: generate code like 'control.XXX = value' also for
  2078. public fields (properties were being handled in that way too).
  2079. 2002-12-18 Gonzalo Paniagua Javier <[email protected]>
  2080. * AspGenerator.cs: now it uses the current HttpContext when creating
  2081. user controls. TemplateSourceDirectory is no longer a dummy value.
  2082. * GlobalAsaxCompiler.cs:
  2083. * PageCompiler.cs:
  2084. * UserControlCompiler.cs: set the context which will be used to locate
  2085. the files.
  2086. 2002-12-13 Gonzalo Paniagua Javier <[email protected]>
  2087. * AspGenerator.cs: added support for AutoEventWireup attribute in
  2088. @Page and @Control.
  2089. * CompilationResult.cs:
  2090. * GlobalAsaxCompiler.cs:
  2091. * PageCompiler.cs:
  2092. * UserControlCompiler.cs: store the options.
  2093. 2002-12-12 Gonzalo Paniagua Javier <[email protected]>
  2094. * AspElements.cs: new method Tag.GetElements
  2095. used to parse the inner contents of a tag looking for data binding or
  2096. code render tags.
  2097. New property HtmlControlTag.ParseChildren allows
  2098. differentiation of a couple of HtmlControls that has children as
  2099. properties (namely HtmlTable and HtmlTableRow).
  2100. * AspGenerator.cs: fixed container semantics to
  2101. match BindingContainer one. Implemented Inherits attribute for page and
  2102. control.
  2103. Support HtmlControls that has ChildrenAsProperties.
  2104. Generate code for data binding functions that matches the semantic of
  2105. Container.
  2106. Handle data bound and code render attribute values.
  2107. Set proper value return for TemplateSourceDirectory. Should be relative
  2108. to appPath.
  2109. * BaseCompiler.cs: moved CompilerOptions and
  2110. References handling here.
  2111. * CachingCompiler.cs: copy result of compilation.
  2112. * CompilationException.cs: simple ToString () implementation.
  2113. * CompilationResult.cs: implemented CopyFrom and ToString.
  2114. * GlobalAsaxCompiler.cs:
  2115. * PageCompiler.cs:
  2116. * UserControlCompiler.cs: removed CompilerOptions as it's now handled
  2117. in the base class. Get all the types in the generated assembly and
  2118. look for one that derives from the correct Type.
  2119. 2002-11-30 Gonzalo Paniagua Javier <[email protected]>
  2120. * AspElements.cs: added @Application directive.
  2121. * AspGenerator.cs: make it work also with application files. We
  2122. currently generate an extra private function.
  2123. 2002-11-29 Gonzalo Paniagua Javier <[email protected]>
  2124. * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
  2125. exists, it will be compiled into an HttpApplication derived class
  2126. (directly or through a user-provided class).
  2127. 2002-11-27 Gonzalo Paniagua Javier <[email protected]>
  2128. * AspGenerator.cs: fixed target file name and generated class name.
  2129. * BaseCompiler.cs: reference assemblies in PrivateBinPath.
  2130. 2002-11-26 Gonzalo Paniagua Javier <[email protected]>
  2131. * AspGenerator.cs: reworked user control
  2132. compilation. Provide the options as a Hashtable for use in compilation.
  2133. Create the user controls in the private bin path of the domain.
  2134. * BaseCompiler.cs: base class for the various compiler types.
  2135. * CachingCompiler.cs: actually executes mcs and do some poor caching
  2136. (it will use Cache when finished).
  2137. * CompilationException.cs: this exception has enough information to
  2138. generate a nice error page.
  2139. * CompilationResult.cs: used in caching.
  2140. * PageCompiler.cs: now derives from BaseCompiler
  2141. * TemplateFactory.cs: no longer needed.
  2142. * UserControlCompiler.cs: new class used when compiling user controls.
  2143. * WebServiceCompiler.cs: derives from BaseCompiler.
  2144. 2002-11-13 Gonzalo Paniagua Javier <[email protected]>
  2145. * AspElements.cs: added ServerComment class.
  2146. * AspParser.cs: ignore ServerComments tags. Remove server comments when
  2147. in verbatim mode.
  2148. Fixes #33482.
  2149. * PageCompiler.cs: check if the type is already cached before generating
  2150. the C# file.
  2151. * TemplateFactory.cs: if csFile parameter is null, only checks if we
  2152. already have the page compiled.
  2153. 2002-11-02 Gonzalo Paniagua Javier <[email protected]>
  2154. * AspGenerator.cs: undo one-liner change.
  2155. 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
  2156. * AspGenerator.cs: removed a few hacks no longer needed.
  2157. 2002-10-27 Gonzalo Paniagua Javier <[email protected]>
  2158. * PageCompiler.cs: tracing.
  2159. * TemplateFactory.cs: cache compiled types and tracing.
  2160. * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
  2161. 2002-10-23 Gonzalo Paniagua Javier <[email protected]>
  2162. * AspComponentFoundry.cs: fixed typo.
  2163. * TemplateFactory.cs: use csc style options.
  2164. * AspGenerator.cs: don't use FileDependencies property of base class.
  2165. 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
  2166. * System.Web.Compilation/AspElements.cs:
  2167. * System.Web.Compilation/AspGenerator.cs:
  2168. * System.Web.Compilation/AspParser.cs:
  2169. * System.Web.Compilation/PageCompiler.cs:
  2170. * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
  2171. pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
  2172. 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
  2173. * AspElements.cs: added WebService directive.
  2174. * WebServiceCompiler.cs: New file.
  2175. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  2176. * PageCompiler.cs: fixed compilation.
  2177. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  2178. * PageCompiler.cs: generate C# file using AspGenerator.
  2179. 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
  2180. * AspComponentFoundry.cs: LookupFoundry now returns bool.
  2181. * AspGenerator.cs: New file.
  2182. 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
  2183. * AspComponentFoundry.cs: New file.
  2184. * AspElements.cs: renamed Component to Aspcomponent.
  2185. 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
  2186. * AspElements.cs:
  2187. * AspParser.cs:
  2188. * AspTokenizer.cs:
  2189. * ChangeLog:
  2190. * PageCompiler.cs:
  2191. * TemplateFactory.cs: first steps to move xsp into System.Web.