* PageParser.cs: added support for the PreviousPageType
directive.
2007-05-24 Marek Habersack <[email protected]>
* PageCompiler.cs: added support for the PreviousPageType directive.
* Directive.cs: as above.
svn path=/trunk/mcs/; revision=77907
* ResourceExpressionBuilder.cs: added a static method to generate
a GetLocalResourceObject call which properly handles types which
cannot be converted from strings.
* TemplateControlCompiler.cs: use code described above to generate
code for properties assigned from resources.
svn path=/trunk/mcs/; revision=77437
* WsdlBuildProvider.cs: make the code actually work - get the
physical path of VirtualPath instead of converting it to absolute
URI path.
Do not generate source, add the code unit to assembly builder
instead.
* XsdBuildProvider.cs: added
2007-05-15 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
System.Web.Compilation/XsdBuildProvider.cs
svn path=/trunk/mcs/; revision=77400
* TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
so use a delegate create expression - it may make difference for
languages other than C# (e.g. VisualBasic).
svn path=/trunk/mcs/; revision=76923
* TemplateParser.cs: added support for implicit language
detection. If the language isn't set explicitly in the Page
directive, the language value taken from the configuration
considered to be implicit - that is, it can be overwritten by the
first <script> with the runat="server" and language="xx" sets the
language for the parser. This makes it possible to have the
default language set to "C#" and the inline code in, e.g.,
VisualBasic.
2007-05-07 Marek Habersack <[email protected]>
* AspGenerator.cs: if the parser's language is implicit (i.e. set
from the default configuration), the first script with the
language attribute present sets the language of the parser.
svn path=/trunk/mcs/; revision=76870
2007-05-04 Marek Habersack <[email protected]>
* HtmlAnchor.cs: use ResolveClientUrl when generating
attributes. Necessary if the control is in a master page which is
in a different directory than the current page.
2007-05-04 Marek Habersack <[email protected]>
* AdRotator.cs: use the new GetPhysicalFilePath method to look up
the physical path of the ad file.
2007-05-04 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not query the parent for
TemplateSourceDirectory if we are generating code for a Master
Page.
2007-05-04 Marek Habersack <[email protected]>
* Control.cs: added an internal method to resolve a physical path
to a file from its virtual path considering the possibility that a
control is placed in a master page, which in turn is referenced
from a directory another than that of master page itself.
svn path=/trunk/mcs/; revision=76665
* ConnectionStringsExpressionBuilder.cs: support expressions with
suffixes .ProviderName and .ConnectionString (case-insensitie) and
generate a call to GetConnectionStringProviderName in the former
case. Fixes bug #81490
2007-04-30 Marek Habersack <[email protected]>
* SqlDataSource.cs: do not catch the exception if ProviderName is
not null or empty (as per docs and what MS.NET does).
2007-04-30 Marek Habersack <[email protected]>
* DbProviderFactories.cs: throw the same exception MS.NET does.
svn path=/trunk/mcs/; revision=76486
* AppCodeCompiler.cs: support for cases when there exists a custom
profile class but there is no App_Code directory or it's
empty. Fixes bug #81489.
svn path=/trunk/mcs/; revision=76483
* TemplateControlCompiler.cs: fix generation of code for
declarative attribute assignments of the form Font-Size="small"
(i.e. when a font size is assigned a symbolic, relative size
value). This fixes for example rendering of the 0th level of
TreeView controls.
svn path=/trunk/mcs/; revision=76472
* AppCodeCompiler.cs: Resolve assembly names from the global web.config to their
locations before passing them to the compiler provider.
svn path=/trunk/mcs/; revision=76378
* AppCodeCompiler.cs: do not look at the number of errors, check
the compiler return code instead.
* AssemblyBuilder.cs: as above
* AppResourcesCompiler.cs: as above
svn path=/trunk/mcs/; revision=76375
* AspComponentFoundry.cs: formatting changes.
AssemblyFoundry looks for the specified namespace+type in the
top-level assemblies if necessary.
2007-04-27 Marek Habersack <[email protected]>
* TemplateControlParser.cs: 2.0 allows 'Namespace' without the
'Assembly' attribute on tag prefix registration.
* TemplateParser.cs: do not rely on assembly name being not null.
svn path=/trunk/mcs/; revision=76364
* AppCodeCompiler.cs: yet another method of detecting if we have a
custom profile.
* BaseCompiler.cs: as above
* AspComponentFoundry.cs: implemented delayed loading of control
assemblies. Fixes bug #81058.
svn path=/trunk/mcs/; revision=75910
attribute. Fixed part of bug #81399.
* BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
then use it instead of the default ASP namespace. Fixes part of bug
#81399.
svn path=/trunk/mcs/; revision=75909
* BaseCompiler.cs: don't look at the number of profile properties
when deciding if we have a custom profile. It is possible to have
a profile that just inherits from a base class and does not list
any custom properties. Fixes bug #81396.
* AppCodeCompiler.cs: as above
svn path=/trunk/mcs/; revision=75908
* VirtualPathUtility.cs: converted to LF line endings and set the
svn:eol-style property to 'native'
2007-04-15 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: properly convert physical file path to
virtual path for build providers.
svn path=/trunk/mcs/; revision=75720
* AppCodeCompiler.cs: move custom profile type check till after
the App_Code compilation is done. That way we can have custom
profile providers in there. Fixes bug #81307.
svn path=/trunk/mcs/; revision=75597
* BaseCompiler.cs: display the source of the file in which the
error actually happened if the file exists, or the unit
otherwise.
svn path=/trunk/mcs/; revision=75482
* AppResourcesCompiler.cs: global resources are put in the
"Resources." namespace while local ones are not. Fixes bug #81174
which was reopened after r75261.
svn path=/trunk/mcs/; revision=75356
Use GetExpressionFromString to generate a correct expression for
custom page/control attributes. Fixes bug #81132.
svn path=/trunk/mcs/; revision=74980
Process meta:resourcekey after all the field/attribute assignments
are done. Fixes bug #80809.
Clean the code up a bit.
svn path=/trunk/mcs/; revision=74973
* TemplateParser.cs: support the meta:resourcekey attribute in
Page and Control directives. Fixes bug #81204.
2007-03-26 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: refactor assining properties from
resources a bit to support pages and user controls. Fixes bug
#81204.
svn path=/trunk/mcs/; revision=74972
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132
2007-03-21 Marek Habersack <[email protected]>
* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
AssignAppRelativeVirtualPath if the attribute was defined.
svn path=/trunk/mcs/; revision=74764
* TemplateControlCompiler.cs: added support for setting custom
attributes of a base class from the Page or Control directive
attributes.
2007-03-21 Marek Habersack <[email protected]>
* UnknownAttributeDescriptor.cs: an internal helper class for
custom directive attributes support.
* BaseParser.cs: ThrowParseException can now take variadic
parameters, for convenience.
* TemplateParser.cs: add support for custom attributes for the
Page and Control directives.
2007-03-21 Marek Habersack <[email protected]>
* System.Web.dll.sources: added UnknownAttributeDescriptor.cs
svn path=/trunk/mcs/; revision=74734
* ResourceExpressionBuilder.cs: if the resource class key is null
or empty, call GetLocalResourceObject, if not,
GetGlobalResourceObject. Fixes bug #81174.
svn path=/trunk/mcs/; revision=74672
* AppResourcesCompiler.cs: handle global resource keys with dots
the way MS.NET does. All the dots are replaced with underscores
when generating the stronly-typed property.
svn path=/trunk/mcs/; revision=74351
* AppResourcesCompiler.cs: Fix a bug with global resources file
grouping where no translated resources were processed due to base
name mismatch.
svn path=/trunk/mcs/; revision=74255
* TemplateControlCompiler.cs: hadle situations when there exist a
control in the page with id matching the name of a field/property
in the parent class. In this case we use 'protected new' to
override the parent.
svn path=/trunk/mcs/; revision=74239
builders that have no control type. Fixes bug #81092
* TemplateControlCompiler.cs:
Make sure builders are in valid state before trying to use them.
svn path=/trunk/mcs/; revision=74171
* TemplateParser.cs: name generated classes the same way MS.NET
does - include the app-relative path to the control/page in the
class name.
* PageCompiler.cs: interfaces are to be implemented by the parent
partial class, not the generated one.
* TemplateControlCompiler.cs:
Put field declarations for controls in the partial class.
* BaseCompiler.cs:
Change the generated code model for pages/controls to comply with
the way MS.NET does (partial class contains only two properties
plus declarations of all the controls, the actual control/page
class inherits from the partial class). Fixes bug #81001.
svn path=/trunk/mcs/; revision=74167
* AppResourceFilesCollection.cs: added separate constructor for
local resources handling.
* TemplateControlCompiler.cs: request the local resource object
with proper virtual path.
* BaseCompiler.cs: added code to assing AppRelativeVirtualPath
property in the page/control constructor.
* AppResourcesCompiler.cs: does not require specifying manually
whether it's a global or local resource compiler anymore. New
constructors take care of that.
Changed to compile local resources on demand, when a control/page
is parsed.
2007-03-13 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: added separate constructor for
local resources handling.
* TemplateControlCompiler.cs: request the local resource object
with proper virtual path.
* BaseCompiler.cs: added code to assing AppRelativeVirtualPath
property in the page/control constructor.
* AppResourcesCompiler.cs: does not require specifying manually
whether it's a global or local resource compiler anymore. New
constructors take care of that.
Changed to compile local resources on demand, when a control/page
is parsed.
2007-03-13 Marek Habersack <[email protected]>
* TemplateControl.cs: implement AppRelativeVirtualPath. Closes bug
#80634.
svn path=/trunk/mcs/; revision=74159
* BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
of Assembly instances, not strings.
* CachingCompiler.cs: make sure items in the CodeAssemblies and
TopLevelAssemblies are really instances of the Assembly class
before trying to use them.
CodeAssemblies is a collection of Assembly instances, not
strings.
* AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
assemblies, not paths to assemblies.
svn path=/trunk/mcs/; revision=74104
CreateProfileProperty and InternalCreatePageProperty to
BaseCompiler from PageCompiler.
* GlobalAsaxCompiler.cs: generate the Profile property for the
Global_asax class.
svn path=/trunk/mcs/; revision=74036