ChangeLog 119 KB

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