691 Commits
Author SHA1 Message Date
Marek Habersack da88af32fb 2007-04-27 Marek Habersack <[email protected]>
* 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
2007-04-27 01:00:43 +00:00
Marek Habersack b1d3722fca 2007-04-26 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: handle compilation failures in a better
	way.

svn path=/trunk/mcs/; revision=76352
2007-04-26 20:23:51 +00:00
Marek Habersack 76fb5fbaf4 2007-04-26 Marek Habersack <[email protected]>
* PageCompiler.cs: the Master property must be in the partial
	class if present. Fixes bug #81442


svn path=/trunk/mcs/; revision=76301
2007-04-26 09:28:04 +00:00
Marek Habersack 6a50b6441b 2007-04-20 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: fix App_Code build when the directory
	contains both known and unknown files.


svn path=/trunk/mcs/; revision=75999
2007-04-20 06:58:11 +00:00
Gert Driesen 26676f8379 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
tabs.

svn path=/trunk/mcs/; revision=75911
2007-04-19 09:23:22 +00:00
Marek Habersack 95c61dae1b 2007-04-19 Marek Habersack <[email protected]>
* 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
2007-04-19 08:04:38 +00:00
Gert Driesen 45616d6c5f * TemplateParser.cs: On 2.0 profile, allow namespace in ClassName
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
2007-04-19 07:33:02 +00:00
Marek Habersack a8d18c9fd5 2007-04-19 Marek Habersack <[email protected]>
* 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
2007-04-19 07:17:47 +00:00
Marek Habersack 114cd09856 2007-04-15 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: Make sure there's actually anything to compile.

svn path=/trunk/mcs/; revision=75722
2007-04-15 12:28:48 +00:00
Marek Habersack 431f90fc47 2007-04-15 Marek Habersack <[email protected]>
* 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
2007-04-15 12:15:27 +00:00
Marek Habersack 382c9d3c86 2007-04-11 Marek Habersack <[email protected]>
* 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
2007-04-11 07:51:40 +00:00
Marek Habersack 72a86061b2 2007-04-10 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: watch App_LocalResources for
	changes.

svn path=/trunk/mcs/; revision=75569
2007-04-10 10:47:12 +00:00
Marek Habersack cef141fb0d fix compilation for 1.1
svn path=/trunk/mcs/; revision=75483
2007-04-06 14:04:42 +00:00
Marek Habersack 0fe038646e 2007-04-06 Marek Habersack <[email protected]>
* 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
2007-04-06 13:01:59 +00:00
Marek Habersack a0bef8a979 2007-04-03 Marek Habersack <[email protected]>
* 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
2007-04-03 18:56:09 +00:00
Konstantin Triger e287c28d0d Path HttpContext to the PageMapper and use it. Throw resource not available exception at the highest level only - when it's known whether we should throw
svn path=/trunk/mcs/; revision=75145
2007-03-29 14:55:30 +00:00
Marek Habersack 5d089556fe 2007-03-26 Marek Habersack <[email protected]>
Use GetExpressionFromString to generate a correct expression for
	custom page/control attributes. Fixes bug #81132.

svn path=/trunk/mcs/; revision=74980
2007-03-26 13:47:27 +00:00
Marek Habersack 94e8fa3fd1 2007-03-26 Marek Habersack <[email protected]>
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
2007-03-26 11:56:44 +00:00
Marek Habersack 48885962c7 2007-03-26 Marek Habersack <[email protected]>
* 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
2007-03-26 11:42:01 +00:00
Marek Habersack 0fb47feff6 2007-03-21 Marek Habersack <[email protected]>
* 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
2007-03-21 21:14:03 +00:00
Marek Habersack 4b8b453f42 2007-03-21 Marek Habersack <[email protected]>
* 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
2007-03-21 14:09:18 +00:00
Marek Habersack d40600b83d 2007-03-20 Marek Habersack <[email protected]>
* 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
2007-03-20 09:19:05 +00:00
Marek Habersack 2d0b4476f2 2007-03-16 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: produce message that makes more sense.


svn path=/trunk/mcs/; revision=74447
2007-03-16 02:36:47 +00:00
Marek Habersack 37c1af47ac 2007-03-15 Marek Habersack <[email protected]>
* 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
2007-03-15 12:19:12 +00:00
Marek Habersack a3d6e98441 2007-03-14 Marek Habersack <[email protected]>
* 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
2007-03-14 13:57:18 +00:00
Marek Habersack 6b5f777e63 it should have come with the previous commit
svn path=/trunk/mcs/; revision=74240
2007-03-14 08:52:56 +00:00
Marek Habersack 7fe2e24626 2007-03-14 Marek Habersack <[email protected]>
* 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
2007-03-14 08:52:12 +00:00
Marek Habersack c9b55219e9 2007-03-13 Marek Habersack <[email protected]>
* AspParser.cs: fix an off-by-one parsing bug with server-side
	includes.

svn path=/trunk/mcs/; revision=74202
2007-03-13 19:53:04 +00:00
Marek Habersack 86823f9836 * PageThemeCompiler.cs: let property builders through, stop the
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
2007-03-13 14:31:46 +00:00
Marek Habersack fba0cc826e 2007-03-13 Marek Habersack <[email protected]>
* 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
2007-03-13 13:11:04 +00:00
Konstantin Triger 01968be1b2 align with recent changes
svn path=/trunk/mcs/; revision=74161
2007-03-13 10:49:22 +00:00
Marek Habersack 095b2a7004 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]>

        * 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
2007-03-13 09:56:36 +00:00
Konstantin Triger e762732a63 TARGET_J2EE: Add stub for BuildManager
svn path=/trunk/mcs/; revision=74125
2007-03-12 14:26:15 +00:00
Marek Habersack 9e2b329c50 * AspParser.cs: revert r73587 as it breaks more than it fixes
svn path=/trunk/mcs/; revision=74116
2007-03-12 12:08:39 +00:00
Marek Habersack 61740bb501 * AspComponentFoundry.cs: try to register foundries from App_Code
assemblies if tag prefix and its namespace are defined. Fixes bug
	#78797.

svn path=/trunk/mcs/; revision=74111
2007-03-12 11:25:19 +00:00
Marek Habersack c0d510eb33 2007-03-12 Marek Habersack <[email protected]>
* 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
2007-03-12 09:26:55 +00:00
Marek Habersack dee3ab3311 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
CreateProfileProperty and InternalCreatePageProperty to
	BaseCompiler from PageCompiler.

	* GlobalAsaxCompiler.cs: generate the Profile property for the
	Global_asax class.

svn path=/trunk/mcs/; revision=74036
2007-03-09 23:44:19 +00:00
Marek Habersack 4d00d430ca Add a missing method to ProfileCommon
svn path=/trunk/mcs/; revision=74032
2007-03-09 21:36:43 +00:00
Marek Habersack bd3a15661d Handle empty .resources files gracefully
svn path=/trunk/mcs/; revision=74022
2007-03-09 18:30:55 +00:00
Marek Habersack 832109351f Make sure themes are recompiled whenever .skin and .css files are updated
svn path=/trunk/mcs/; revision=73974
2007-03-08 23:41:36 +00:00
Marek Habersack c4799d34fb make themes work. Also fixes bug #80953
svn path=/trunk/mcs/; revision=73707
2007-03-05 13:58:16 +00:00
Marek Habersack fb27421ce2 Support a few more Page directive attributes
svn path=/trunk/mcs/; revision=73660
2007-03-03 15:26:40 +00:00
Marek Habersack 95b0b1d58e Write preservation files for App_Code assemblies
svn path=/trunk/mcs/; revision=73633
2007-03-02 10:17:56 +00:00
Marek Habersack 3f0de23c4f Fix for bug #80998
svn path=/trunk/mcs/; revision=73632
2007-03-02 10:12:02 +00:00
Marek Habersack b6a3d8cb11 Fix for the asp parser
svn path=/trunk/mcs/; revision=73587
2007-03-01 13:57:18 +00:00
Marek Habersack 3cfda3bfce remove debug stuff
svn path=/trunk/mcs/; revision=73461
2007-02-27 12:54:51 +00:00
Marek Habersack f7193c8afe Implement connection string expressions
svn path=/trunk/mcs/; revision=73460
2007-02-27 12:51:36 +00:00
Marek Habersack 560e3e6465 Fix for global resources
svn path=/trunk/mcs/; revision=73124
2007-02-19 17:52:43 +00:00
Marek Habersack 6ad6d72642 Fix culture problems of the control compiler System.Web.Compilation/ChangeLog System.Web.Compilation/TemplateControlCompiler.cs
svn path=/trunk/mcs/; revision=73015
2007-02-16 14:23:07 +00:00
Marek Habersack 1ce179138a Fix for bug 80808
svn path=/trunk/mcs/; revision=73014
2007-02-16 14:20:46 +00:00