+2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * GlobalAsaxCompiler.cs: removed Imports and Assemblies properties.
+
2004-02-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* AspGenerator.cs: error out when <object> server tag is not closed.
ApplicationFileParser parser;
static ArrayList applicationObjectTags = new ArrayList (1);
static ArrayList sessionObjectTags = new ArrayList (1);
- static ArrayList imports;
- static ArrayList assemblies;
public GlobalAsaxCompiler (ApplicationFileParser parser)
: base (parser)
{
applicationObjectTags.Clear ();
sessionObjectTags.Clear ();
-
- if (imports != null)
- imports.Clear ();
-
- if (assemblies != null)
- assemblies.Clear ();
-
this.parser = parser;
}
public static Type CompileApplicationType (ApplicationFileParser parser)
{
AspGenerator generator = new AspGenerator (parser);
- Type type = generator.GetCompiledType ();
- imports = parser.Imports;
- assemblies = parser.Assemblies;
- return type;
+ return generator.GetCompiledType ();
}
protected override void CreateMethods ()
internal static ArrayList SessionObjects {
get { return sessionObjectTags; }
}
-
- internal static ArrayList Assemblies {
- get { return assemblies; }
- }
-
- internal static ArrayList Imports {
- get { return imports; }
- }
}
}
+2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * TemplateParser.cs: don't add import statement or assemblies from
+ global.asax to every file. Fixes bug #55496.
+
2004-03-09 Juraj Skripsky <juraj@hotfeet.ch>
* DataBinder.cs: allow unquoted string expressions (e.g. "[test]") and
AddAssembliesInBin ();
language = CompilationConfig.DefaultLanguage;
- if (GlobalAsaxCompiler.Assemblies != null) {
- foreach (string assembly in GlobalAsaxCompiler.Assemblies) {
- if (!assemblies.Contains (assembly)) {
- AddAssemblyByName (assembly);
- }
- }
- }
-
- if (GlobalAsaxCompiler.Imports != null) {
- foreach (string import in GlobalAsaxCompiler.Imports) {
- if (!imports.Contains (import)) {
- imports.Add (import);
- }
- }
- }
}
internal void AddApplicationAssembly ()