ChangeLog 93 KB

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