ChangeLog 132 KB

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