+2008-04-18 Marek Habersack <mhabersack@novell.com>
+
+ * CompilationSection.cs: when ASP.NET is self-hosted, force
+ non-batch compilation. Fixes bug #380985
+
2008-03-23 Dean Brettle <dean@brettle.com>
* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
static ConfigurationProperty expressionBuildersProp;
static ConfigurationProperty urlLinePragmasProp;
static ConfigurationProperty codeSubDirectoriesProp;
-
+ static bool hosted;
+
static CompilationSection ()
{
assembliesProp = new ConfigurationProperty ("assemblies", typeof (AssemblyCollection), null,
properties.Add (strictProp);
properties.Add (tempDirectoryProp);
properties.Add (urlLinePragmasProp);
+
+ AppDomain domain = AppDomain.CurrentDomain;
+ hosted = (domain.GetData (ApplicationHost.MonoHostedDataKey) as string) == "yes";
}
public CompilationSection ()
[ConfigurationProperty ("batch", DefaultValue = "True")]
public bool Batch {
- get { return (bool) base [batchProp]; }
+ get {
+ if (!hosted)
+ return false; // fix for bug #380985
+
+ return (bool) base [batchProp];
+ }
set { base [batchProp] = value; }
}