Ejemplo n.º 1
0
        public void CreateTemporaryApp(string code = null)
        {
            var testDir = CreateTemporaryDirectory();
            var app     = Path.Combine(testDir, "testApp.app");

            Directory.CreateDirectory(app);

            AppPath    = app;
            Executable = MTouch.CompileTestAppExecutable(testDir, code: code, profile: Profile);
        }
Ejemplo n.º 2
0
        public void CreateTemporaryApp(bool hasPlist = false, string appName = "testApp", string code = null)
        {
            var testDir = CreateTemporaryDirectory();
            var app     = Path.Combine(testDir, appName + ".app");

            Directory.CreateDirectory(app);

            AppPath    = app;
            Executable = MTouch.CompileTestAppExecutable(testDir, code, "", Profile, appName);

            if (hasPlist)
            {
                File.WriteAllText(Path.Combine(app, "Info.plist"), CreatePlist(Profile, appName));
            }
        }
Ejemplo n.º 3
0
        public void CreateTemporaryApp(bool hasPlist = false, string appName = "testApp", string code = null, string extraArg = "", string extraCode = null, string usings = null, bool use_csc = false)
        {
            string testDir;

            if (RootAssembly == null)
            {
                testDir = CreateTemporaryDirectory();
            }
            else
            {
                // We're rebuilding an existing executable, so just reuse that
                testDir = Path.GetDirectoryName(RootAssembly);
            }
            var app = AppPath ?? Path.Combine(testDir, appName + ".app");

            Directory.CreateDirectory(app);
            AppPath      = app;
            RootAssembly = MTouch.CompileTestAppExecutable(testDir, code, extraArg, Profile, appName, extraCode, usings, use_csc);

            if (hasPlist)
            {
                File.WriteAllText(Path.Combine(app, "Info.plist"), CreatePlist(Profile, appName));
            }
        }