* TemplateParser.cs: make sure the generated class name is a valid
language independent identifier. Fixes bug #431622
2008-10-03 Marek Habersack <[email protected]>
* BuildManager.cs: if an assembly fails to build out of a batch of
files, extract the virtual path that was requested by the client
and attempt to compile it alone.
svn path=/trunk/mcs/; revision=114732
* OutputCacheModule.cs: invalidate cache entries when the
corresponding source file (.as?x) is recompiled by hooking up to
System.Web.Compilation.BuildManager's build cache entry removal
event. Fixes bug #429926
2008-09-29 Marek Habersack <[email protected]>
* BuildManagerRemoveEntryEventHandler.cs: added
* BuildManager.cs: added a static event to notify interested
parties when an entry is removed from the buildCache. Fixes bug
#429926.
svn path=/trunk/mcs/; revision=114369
* BuildManager.cs: when creating a cache entry for a virtual path,
make it depend on a list of files built recursively from all the
virtual path's dependencies. Fixes bug #430114
svn path=/trunk/mcs/; revision=114205
the end string, append the original text instead of the end string,
because the casing might not match between the two. Fixes#320445
2008-09-24 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=113972
* AspGenerator.cs: ignore whitespace only if it's between
CodeRender blocks, not between DataBinding and
CodeRenderExpression.
svn path=/trunk/mcs/; revision=113844
* ControlBuilder.cs: CreatePropertyBuilder now correctly processes
property names with prefixes (e.g. 'prefix:PropertyName').
Original, parsed, tag name is stored to properly handle closing
tags.
2008-09-01 Marek Habersack <[email protected]>
* AspGenerator.cs:
CloseControl uses ControlBuilder's OriginalTagName property,
should the property/tag name be prefixed with 'prefix:'
svn path=/trunk/mcs/; revision=112003
* TemplateControl.cs: changed the way in which ParseControl is
implemented for the 2.0+ profile. Still not quite there, but
better and closer to .NET
2008-09-01 Marek Habersack <[email protected]>
* BaseCompiler.cs: AssignAppRelativeVirtualPath works with
null/empty parser.InputFile now.
* AspGenerator.cs: AddTypeToCache works checks whether inputFile
is null or empty and does not assume the dependencies ArrayList is
present.
* CachingCompiler.cs: expect the dependencies ArrayList to be null
or empty.
svn path=/trunk/mcs/; revision=111998
* TemplateControlCompiler.cs:
Templates are processed before anything else, so that children
which may depend on parent's templates can get access to them.
2008-08-31 Marek Habersack <[email protected]>
* Control.cs: improved FillControlCache
* ControlBuilder.cs:
Added a cache for children of TemplateBuilder, used later in
TemplateControlCompiler.
svn path=/trunk/mcs/; revision=111990
* TemplateParser.cs: added support for the LinePragmas directive
attribute.
* ControlBuilder.cs: if this instance is a TemplateBuilder do not
call MyNamingContainer, so that our own ContainerType can be used
as the binding container (if present).
2008-08-31 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: trust builder.BindingContainerType
in the 2.0+ profile - do not use container properties to detect
the type.
Added a helper method, compiled only when DEBUG is defined, to
generate Console.WriteLine CodeDOM calls.
* BaseCompiler.cs: add line pragmas only if enabled for the
current file.
svn path=/trunk/mcs/; revision=111983
* ThemeDirectoryBuildProvider.cs: theme directory dependencies
should use only virtual paths for CSS files. Fixes bug #397187
svn path=/trunk/mcs/; revision=110941
* TemplateControlCompiler.cs: process expression when they are
used used in values of attributes without associated
properties. Fixes bug #417883
* ResourceExpressionBuilder.cs: added two overloads of
CreateGetLocalResourceObject to encompass cases when the generated
expression is not assigned to a property but rather used as a
parameter to the SetAttribute method. Fixes bug #417883
svn path=/trunk/mcs/; revision=110844
* TemplateControlCompiler.cs: .NET allows for whitespace between
the directive start (<%) and the directive type character. Added
code which copes with such situations correctly.
svn path=/trunk/mcs/; revision=110441
* TemplateControlCompiler.cs: rewrote the Bind regular expressions
to allow for single quotes and an optional second parameter to the
"call".
Added an Eval regular expression.
Both Bind and Eval calls in data expressions are now converted
into a CodeDOM method invocations, to allow support for possible
languages which use a different call format (previously code
snippets were used)
Added a method to construct the Eval invoke expression which
simplifies code in other areas.
2008-08-13 Marek Habersack <[email protected]>
* TemplateBuilder.cs: use a generic List to store the bindings on
2.0+
2008-08-13 Marek Habersack <[email protected]>
* HttpException.cs: do not use StringBuilder.AppendFormat when
there is no need.
svn path=/trunk/mcs/; revision=110385
* TemplateControlCompiler.cs: handle situation when a property of
a control for which we're generating the code is of type
'Type'. In such case, variable.GetType() will return
System.MonoType, which must not be output to the generated
source. Thanks to Robert Jordan for giving the idea for the hack!
svn path=/trunk/mcs/; revision=109773
* AspTokenizer.cs: Added FIRST_TOKEN and LAST_TOKEN symbols to the
internal Token class.
* AspParser.cs: GetServerTag must use parsed identifiers when
gathering verbatim code strings.
GetVerbatim must not add to the text tokens which aren't
characters. Fixes bug #400807
svn path=/trunk/mcs/; revision=106068
* BuildManager.cs: if an error occurs while assigning the
requested path to an assembly builder inside BuildAssembly, throw
an exception.
svn path=/trunk/mcs/; revision=105637
* BaseCompiler.cs: do not generate #line pragma for code which
exists only in memory.
2008-06-11 Marek Habersack <[email protected]>
* TemplateControl.cs: make sure 'type' isn't null in LoadControl
before attempting to use it.
svn path=/trunk/mcs/; revision=105510
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
DataControlFieldCollection.cs, DataControlField.cs,
PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
event accessors (to avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
DefaultAuthenticationModule.cs, MembershipProvider.cs,
WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
RoleManagerModule.cs: do not use synthetized event accessors (to
avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
TraceContext.cs: do not use synthetized event accessors (to avoid
locks).
2008-05-30 Marek Habersack <[email protected]>
* SessionStateModule.cs: do not use synthetized event accessors
(to avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* ProfileModule.cs: do not use synthetized event accessors (to
avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* SessionStateModule.cs: do not use synthetized event accessors
(to avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
use synthetized event accessors (to avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* ClientBuildManager.cs: do not use synthetized event accessors
(to avoid locks).
2008-05-30 Marek Habersack <[email protected]>
* CacheDependency.cs: do not use synthetized event accessors (to
avoid locks).
svn path=/trunk/mcs/; revision=104569
* TemplateParser.cs: added support for #pragma checksum
2008-05-28 Marek Habersack <[email protected]>
* AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
for #pragma checksum
svn path=/trunk/mcs/; revision=104321
* AspGenerator.cs: if the last tag parsed was a code directive,
ignore any accumulated text if it's 100% whitespace.
svn path=/trunk/mcs/; revision=103541
* AspComponentFoundry.cs: treat AssemblyFoundry in a special way
when adding a foundry to the array list. AssemblyFoundry instances
are stacked at the end of the array list in a LIFO manner. That
way TagNameFoundry takes precedence over AssemblyFoundry should
the two contain the same type.
2008-05-14 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: do not add the same entry to a
hashtable twice
svn path=/trunk/mcs/; revision=103243
* TemplateParser.cs: added a stack of include directories, to
properly resolve file relative paths when the #include file=""
directive is used. Fixes bug #324536
2008-05-07 Marek Habersack <[email protected]>
* AspGenerator.cs: push the include file directory to the parser
include directory stack and pop it after parsing the include, so
that the relative file paths are resolved correctly. Fixes bug
#324536
svn path=/trunk/mcs/; revision=102729
* Calendar.cs: do not create dateInfo in the constructor - culture
might be not set yet at this point. Fixes bug #323566
Added a private property, DateInfo, which creates the dateInfo
when requested.
2008-05-06 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: compatibility - added the
__stringResource static field to the generated class and a call to
SetStringResourcePointer to the FrameworkInitialize method.
* PageCompiler.cs: __fileDependencies should also be defined in
the 1.x profile.
Page properties assigned in the page directive should be set
inside BuildControlTree in the 2.0 profile.
svn path=/trunk/mcs/; revision=102573
* WebConfigurationSettings.cs: if path mapping fails in
GetConfigFromFileName, fall back to the application's physical
directory.
2008-04-29 Marek Habersack <[email protected]>
* HttpException.cs: safe guard against context being null in
GetHtmlErrorMessage.
2008-04-29 Marek Habersack <[email protected]>
* WebServiceCompiler.cs: if compiling a body-less web service, try
to load the class type from the loaded assemblies before
attempting to find it in the assemblies on disk.
svn path=/trunk/mcs/; revision=102127
* GenericBuildProvider.cs: the Parse () method should reuse the
previously opened TextReader when calling generator.Parse (), to
avoid opening the input file multiple times. Fixes bug #383881
2008-04-26 Marek Habersack <[email protected]>
* VirtualPath.cs: added a new property, PhysicalPath.
svn path=/trunk/mcs/; revision=101897
* AspComponentFoundry.cs: added a new GetComponentType overload
which returns component source and a boolean flag whether the
control was registered from web.config (2.0).
2008-04-24 Marek Habersack <[email protected]>
* RootBuilder.cs: when registering a custom control, add its path
to the parser dependencies. Fixes bug #377915
In the 2.0 profile, if the custom control being used was
registered from web.config and is found in the same directory what
the file being parsed, throw an exception. This behavior matches
MS.NET.
* TemplateParser.cs: added new VirtualPath property, which stores
the virtual path to the file being parsed.
* PageParser.cs: set the VirtualPath property in the 2.0 profile
when constructing the parser.
svn path=/trunk/mcs/; revision=101623
* SimpleWebHandlerParser.cs: refactoring - move code between
constructors, reader should be set before initializing the rest of
the object. Fixes bug #381364
* TemplateParser.cs: RegisterCustomControl must use absolute
virtual path when querying the virtual path provider for
file. Fixes bug #381364
2008-04-19 Marek Habersack <[email protected]>
* BuildManager.cs: use absolute virtual path to query the
VirtualPathProvider for path existence.
When ASP.NET is self-hosted, force
non-batch compilation. Fixes bug #380985
* ILocation.cs: added a new property, FileText.
* Location.cs: added implementation of the ILocation.FileText
property.
* ParseException.cs: use the new ILocation.FileText, if defined,
to get the file source.
* AspGenerator.cs: when TextReader is present, use it to read with
the VirtualPathProvider to read the file source. Fixes bug #381364
* AspParser.cs: added a new property FileText to provide the file
contents which was read in the constructor.
svn path=/trunk/mcs/; revision=101177
* BuildManager.cs: when any parsing error occurs during batch
building, ignore the file which caused it. If the file with
parsing error is the one requested by user, throw the parsing
exception. Fixes bug #323742
svn path=/trunk/mcs/; revision=101115
* AssemblyResourceLoader.cs: dispose of streams the way it should
be done.
2008-04-15 Marek Habersack <[email protected]>
* MailDefinition.cs: dispose of streams the way it should
be done.
2008-04-15 Marek Habersack <[email protected]>
* HttpRequest.cs: dispose of streams the way it should
be done.
2008-04-15 Marek Habersack <[email protected]>
* CachingCompiler.cs: dispose of streams the way it should
be done.
svn path=/trunk/mcs/; revision=100690
* System.Web.dll.sources: added System.Web.Compilation/AppWebReferencesCompiler.cs
2008-04-09 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: compile web references. Fixes bug
#377934
* VirtualPath.cs: added a method to convert a physical path into a
virtual one, if the physical path is under the application root.
2008-04-09 Marek Habersack <[email protected]>
* BuildManager.cs: refactoring - the SetCommonParameters and
GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
and made internal static.
* AppWebReferencesCompiler.cs: added - support for compiling of
wsdl files found in the App_WebResources directory. Fixes bug
#377934
* BuildProvider.cs: refactoring - moved the SetCommonParameters
and GetDefaultCompilerTypeForLanguage to BuildManager
* WsdlBuildProvider.cs: added the CodeCompilerType property
override.
Namespace for the generated code is taken from the wsdl path,
relative to App_Code or App_WebReferences, if the wsdl in question
is under on of those directories.
GenerateCode uses OpenReader () so that VirtualPathProvider works
for wsdl files.
* AssemblyBuilder.cs: Cope with virtualPath being null in BuildAssembly.
Reference assemblies specified in web.config when linking.
svn path=/trunk/mcs/; revision=100266
* AssemblyBuilder.cs: make sure Encoding.UTF8 is explicitly used
when generating source from code unit and use
WebEncoding.FileEncoding when adding code files to the unit. Fixes
bug #377938
svn path=/trunk/mcs/; revision=100223
* AspComponentFoundry.cs: add loaded assembly to the
BuildManager's list of referenced assemblies instead to
WebConfigurationmanager.ExtraAssemblies. Fixes bug #377915
* BuildManager.cs: Added an internal method AddToReferencedAssemblies.
Remove invalidated entry from
WebConfigurationManager.ExtraAssemblies.
svn path=/trunk/mcs/; revision=100101
* VirtualPath.cs: added
2008-04-08 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web/VirtualPath.cs
2008-04-08 Marek Habersack <[email protected]>
* DefaultVirtualDirectory.cs: fixed the constructor - derive
virtual directory from the original path.
AddDirectories and AddFiles combine the virtual paths properly
now.
2008-04-08 Marek Habersack <[email protected]>
* TemplateParser.cs: CodeFile/Src handling uses
HostingEnvironment.VirtualPathProvider to check for file
existence.
2008-04-08 Marek Habersack <[email protected]>
* TemplateParser.cs: CodeFile/Src handling uses
HostingEnvironment.VirtualPathProvider to check for file
existence.
2008-04-08 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.
* BuildManager.cs: switched to VirtualPath instead of a string
path in several methods.
Batch compilation is turned off if we have a custom
VirtualPathProvider which implements only the VirtualFile and
falls back to DefaultVirtualDirectory implementation for directory
access.
* GenericBuildProvider.cs: AddCodeFile accepts a virtual path.
* BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.
* AssemblyBuilder.cs: constructors use the new VirtualPath class
now.
AddCodeFile can use the VirtualPathProvider if necessary now.
BuildAssembly overloads accept VirtualPath parameter instead of a
string path now.
* TemplateBuildProvider.cs: GetCodeBehindSource returns the
virtual path now.
svn path=/trunk/mcs/; revision=100063
* AppCodeCompiler.cs: implemented support for AppInitialize (a
static method in any class defined in the App_Code source files),
ran just after the App_Code assemblies are compiled in order to
perform any application initialization actions.
svn path=/trunk/mcs/; revision=99404
* BuildManager.cs: AssertVirtualPathExists now queries the
VirtualPathProvider for path existence if physical path check
fails, before throwing the 404 exception.
2008-03-27 Marek Habersack <[email protected]>
* DefaultVirtualPathProvider.cs: support relative virtual paths in
all the methods.
* VirtualPathProvider.cs: FileExists should chain to the previous
handler, if present.
2008-03-27 Marek Habersack <[email protected]>
* Page.cs: added an implementation of the ClientQueryString
property.
2008-03-27 Marek Habersack <[email protected]>
* HttpRequest.cs: make UrlComponents internal.
* HttpContext.cs: added support for resource provider factories.
svn path=/trunk/mcs/; revision=99122
* HttpApplication.cs: use HttpRuntime.CaseInsensitive instead of
own IsRunningOnWindows.
* HttpRuntime.cs: introduce two static properties -
CaseInsensitive (set to true whenever the environment is
case-insensitive - i.e. MONO_IOMAP="all" or MONO_IOMAP="case", or
running on Windows) and RunningOnWindows.
2008-03-13 Marek Habersack <[email protected]>
* BuildManager.cs: if we're running in a case-insensitive
environment, use case-insensitive comparer for the build caches
2008-03-13 Marek Habersack <[email protected]>
* ApplicationHost.cs: use HttpRuntime.CaseInsensitive when
checking whether we're running in a case-insensitive environment.
svn path=/trunk/mcs/; revision=98199
* BuildManager.cs: implement a mechanism to ignore certain virtual
paths when batch compiling. Helps applications which may have
.as?x files which won't work on mono for various reasons (one such
sample is mojoportal).
svn path=/trunk/mcs/; revision=96982
* TemplateControlCompiler.cs: make sure that data-bound attribute
assignments properly convert the Bind expression to the Eval
one. Fixes bug #362039
svn path=/trunk/mcs/; revision=96861
* AspGenerator.cs: in 2.0+, aspx files which contain the Content
controls can contain only them, whitespace and directives. Fixes
bug #339747
svn path=/trunk/mcs/; revision=96837