Esempio n. 1
0
        public void Compile(string filename)
        {
            var provider = new FSharpCodeProvider();
            var compileParams = new CompilerParameters(GacAssembliesToCompileAgainst);
            compileParams.GenerateExecutable = true;
            compileParams.GenerateInMemory = false;
            compileParams.OutputAssembly = filename;

            CompilerResults r = provider.CompileAssemblyFromSource(compileParams, this.Code);
            Errors = r.Errors.Cast<CompilerError>().ToArray();
            ProducedExecutable = Errors.Length == 0;
        }