ChangeLog 115 KB

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