コード例 #1
0
        private void CompileGeneratedCode(string projectPath, IEnumerable <string> files, string language)
        {
            List <string> referenceAssemblies = OpenRiaServices.DomainServices.Tools.Test.MsBuildHelper.GetReferenceAssemblies(projectPath);

            if (language == "C#")
            {
                CompilerHelper.CompileCSharpSource(files, referenceAssemblies);
            }
            else
            {
                CompilerHelper.CompileVisualBasicSource(files, referenceAssemblies, "TheRootNamespace");
            }
        }