// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_0
using System;
using System.Collections;
using System.Configuration;
{
CompilationConfiguration config = new CompilationConfiguration (parent);
- config.TempDirectory = AttValue ("tempDirectory", section, true);
+ string tmp = AttValue ("tempDirectory", section, true);
+ if (tmp != null && tmp != "")
+ config.TempDirectory = tmp;
config.DefaultLanguage = AttValue ("defaultLanguage", section);
if (config.DefaultLanguage == null)
config.DefaultLanguage = "c#";
compiler.Type = AttValue ("type", child);
compiler.CompilerOptions = AttValue ("compilerOptions", child, true, true);
compiler.WarningLevel = AttUIntValue ("warningLevel", child, 0);
+#if NET_2_0
+ config.Compilers.Add (compiler);
+#else
config.Compilers [compiler.Language] = compiler;
+#endif
}
}
continue;
}
- aname = ShortAsmName (aname);
if (!assemblies.Contains (aname))
assemblies.Add (aname);
config.AssembliesInBin = false;
continue;
}
- aname = ShortAsmName (aname);
assemblies.Remove (aname);
continue;
}
return HandlersUtil.ExtractAttributeValue (name, node, true);
}
- private static string ShortAsmName (string long_name)
- {
- int i = long_name.IndexOf (',');
- if (i < 0)
- return long_name + ".dll";
- return long_name.Substring (0, i) + ".dll";
- }
-
static void ThrowException (string message, XmlNode node)
{
HandlersUtil.ThrowException (message, node);
}
}
}
+#endif