ChangeLog 136 KB

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