using System;
using Microsoft.CSharp;
using System.IO;
using System.Collections;
namespace CompilerTest
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
int n = 0;
string[] CompileCode = new string[args.GetLength(0)];
Hashtable ht = new Hashtable();
ht.Add("target", "exe");
foreach(string i in args)
{
TextReader tr = new StreamReader(i);
CompileCode[n++] = tr.ReadToEnd();
Console.WriteLine("Reading file " + i);
}
CompilerError[] CompilerErrors = Compiler.Compile(CompileCode,args, "test.exe",null,ht);
foreach(CompilerError i in CompilerErrors)
Console.WriteLine(i.ToString());
}
}
}