-TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe t7.exe t8.exe t9.exe t10.exe t11.exe t12.exe t13.exe t14.exe t15.exe t16.exe t17.exe t18.exe t19.exe t20.exe t21.exe t22.exe t23.exe t24.exe t25.exe t26.exe t27.exe t28.exe t29.exe
+TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe t7.exe t8.exe t9.exe t10.exe t11.exe t12.exe t13.exe t14.exe t15.exe t16.exe t17.exe t18.exe t19.exe t20.exe t21.exe t22.exe t23.exe t24.exe t25.exe t26.exe t27.exe t28.exe t29.exe t30.exe t31.exe
check: local compare
rm -f *.exe *.mdb *.result
%.exe: %.cs
- gmcs /debug $< -r:System.Configuration.dll
+ gmcs /debug $< -r:System.Configuration.dll -r:System.Web.dll
--- /dev/null
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Text;
+using System.Configuration;
+using System.Web;
+using System.Web.Configuration;
+
+class T30
+{
+ static void Main(string[] args)
+ {
+ try
+ {
+ CompilationSection section = (CompilationSection)ConfigurationManager.GetSection ("system.web/compilation");
+
+ section = (CompilationSection)ConfigurationManager.GetSection ("system.web/compilation");
+
+ Console.WriteLine ("there are {0} assemblies listed in the section", section.Assemblies.Count);
+ }
+ catch (Exception e)
+ {
+ // Error.
+ Console.WriteLine(e.ToString());
+ }
+ }
+}
--- /dev/null
+<configuration>
+ <system.web>
+ <compilation debug="true">
+ <assemblies>
+ <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
+ <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
+ </assemblies>
+ </compilation>
+ </system.web>
+</configuration>
--- /dev/null
+there are 2 assemblies listed in the section
--- /dev/null
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Text;
+using System.Configuration;
+using System.Web;
+using System.Web.Configuration;
+using _Configuration = System.Configuration.Configuration;
+
+class T31
+{
+ static void Main(string[] args)
+ {
+ try
+ {
+ _Configuration cfg = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
+
+ CompilationSection section = (CompilationSection)cfg.GetSection ("system.web/compilation");
+
+ section = (CompilationSection)cfg.GetSection ("system.web/compilation");
+
+ Console.WriteLine ("there are {0} assemblies listed in the section", section.Assemblies.Count);
+ }
+ catch (Exception e)
+ {
+ // Error.
+ Console.WriteLine(e.ToString());
+ }
+ }
+}
--- /dev/null
+<configuration>
+ <system.web>
+ <compilation debug="true">
+ <assemblies>
+ <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
+ <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
+ </assemblies>
+ </compilation>
+ </system.web>
+</configuration>
--- /dev/null
+there are 2 assemblies listed in the section