+2005-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * CompilerCollection.cs:
+ * CompilationConfigurationHandler.cs:
+ * Compiler.cs:
+ * CompilationSection.cs:
+ * CompilationConfiguration.cs: reverted last patch and/or disable code
+ until the whole config system is migrated to 2.0. Fixes bug #73736.
+
2005-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* CodeSubDirectoriesCollection.cs:
num_recompiles_before_app_restart = parent.num_recompiles_before_app_restart;
strict = parent.strict;
temp_directory = parent.temp_directory;
-#if !NET_2_0
compilers = new CompilerCollection (parent.compilers);
-#else
- compilers = new CompilerCollection ();
-#endif
ArrayList p = parent.assemblies;
assembliesInBin = parent.assembliesInBin;
ICollection coll = (p == null) ? (ICollection) new object [0] : p;
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-
using System;
using System.Collections;
using System.Configuration;
ThrowException ("Unexpected element", child);
Compiler compiler = new Compiler ();
-#if !NET_2_0
-// Removing this for 2.0 is a hack until the whole config. system is migrated to 2.0
compiler.Language = AttValue ("language", child);
compiler.Extension = AttValue ("extension", child);
compiler.Type = AttValue ("type", child);
compiler.CompilerOptions = AttValue ("compilerOptions", child, true, true);
compiler.WarningLevel = AttUIntValue ("warningLevel", child, 0);
-#endif
config.Compilers [compiler.Language] = compiler;
}
}
props.Add (batchTimeout);
codeSubDirectories = new ConfigurationProperty ("codeSubDirectories", typeof (CodeSubDirectoriesCollection), 0);
props.Add (codeSubDirectories);
- compilers = new ConfigurationProperty ("compilers", typeof (CompilerCollection), 0);
- props.Add (compilers);
+ //compilers = new ConfigurationProperty ("compilers", typeof (CompilerCollection), 0);
+ //props.Add (compilers);
debug = new ConfigurationProperty ("debug", boolType, false, boolTypeConv, null, 0);
props.Add (debug);
defaultLanguage = new ConfigurationProperty ("defaultLanguage", strType, "c#", strTypeConv, null, 0);
get { return (CodeSubDirectoriesCollection) this [codeSubDirectories]; }
}
+ /*
public CompilerCollection Compilers {
get { return (CompilerCollection) this [compilers]; }
}
+ */
public bool Debug {
get { return (bool) this [debug]; }
namespace System.Web.Configuration
{
-#if !NET_2_0
class Compiler
{
public string Language;
"CompilerOptions: " + CompilerOptions + "\n";
}
}
-#else // NET_2_0
+#if false
public sealed class Compiler : ConfigurationElement
{
static ConfigurationPropertyCollection props;
namespace System.Web.Configuration
{
-#if !NET_2_0
sealed class CompilerCollection
{
Hashtable compilers;
}
}
}
-#else // NET_2_0
+#if false
public sealed class CompilerCollection : ConfigurationElementCollection
{
static ConfigurationPropertyCollection props;