ChangeLog 128 KB

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