예제 #1
0
        public virtual void Setup()
        {
            var mtouchPaths = SetupProjectPaths("MySingleView");

            MonoTouchProjectBinPath    = mtouchPaths.ProjectBinPath;
            MonoTouchProjectObjPath    = mtouchPaths.ProjectObjPath;
            MonoTouchProjectCSProjPath = mtouchPaths.ProjectCSProjPath;
            MonoTouchProjectPath       = mtouchPaths.ProjectPath;

            AppBundlePath = mtouchPaths.AppBundlePath;

            var libraryPaths = SetupProjectPaths("MyLibrary", "../MySingleView/", false);

            LibraryProjectBinPath    = libraryPaths.ProjectBinPath;
            LibraryProjectObjPath    = libraryPaths.ProjectObjPath;
            LibraryProjectPath       = libraryPaths.ProjectPath;
            LibraryProjectCSProjPath = libraryPaths.ProjectCSProjPath;

            SetupEngine();

            MonoTouchProject         = SetupProject(Engine, MonoTouchProjectCSProjPath);
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();
            LibraryProject           = SetupProject(Engine, LibraryProjectCSProjPath);
            LibraryProjectInstance   = LibraryProject.CreateProjectInstance();

            CleanUp();
        }
예제 #2
0
        public virtual void Setup()
        {
            var mtouchPaths = SetupProjectPaths("MySingleView");

            MonoTouchProjectBinPath    = mtouchPaths ["project_binpath"];
            MonoTouchProjectObjPath    = mtouchPaths ["project_objpath"];
            MonoTouchProjectCSProjPath = mtouchPaths ["project_csprojpath"];
            MonoTouchProjectPath       = mtouchPaths ["project_path"];

            AppBundlePath = mtouchPaths ["app_bundlepath"];

            var libraryPaths = SetupProjectPaths("MyLibrary", "../MySingleView/", false);

            LibraryProjectBinPath    = libraryPaths ["project_binpath"];
            LibraryProjectObjPath    = libraryPaths ["project_objpath"];
            LibraryProjectPath       = libraryPaths ["project_path"];
            LibraryProjectCSProjPath = libraryPaths ["project_csprojpath"];

            SetupEngine();

            MonoTouchProject         = SetupProject(Engine, MonoTouchProjectCSProjPath);
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();
            LibraryProject           = SetupProject(Engine, LibraryProjectCSProjPath);
            LibraryProjectInstance   = LibraryProject.CreateProjectInstance();

            CleanUp();
        }
예제 #3
0
        public void DetectAppManifest_ExecutableProject_NoPList()
        {
            RemoveItemsByName(MonoTouchProject, "None");
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();

            RunTarget_WithErrors(MonoTouchProjectInstance, TargetName.DetectAppManifest);
            Assert.That(MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), Is.Null.Or.Empty, "#1");
        }
예제 #4
0
        public void DetectAppManifest_ExecutableProject_TwoPLists()
        {
            RemoveItemsByName(MonoTouchProject, "None");
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();

            MonoTouchProjectInstance.AddItem("None", "Fake/Info.plist");
            MonoTouchProjectInstance.AddItem("None", "Info.plist");

            RunTargetOnInstance(MonoTouchProjectInstance, TargetName.DetectAppManifest);
            Assert.AreEqual("Info.plist", MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), "#1");
        }
예제 #5
0
        public void DetectAppManifest_ExecutableProject_LogicalNamePList()
        {
            string logicalPlist = CreateTempFile(Path.Combine(TempDir, "Logical.plist"));

            RemoveItemsByName(MonoTouchProject, "None");
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();

            var item = MonoTouchProjectInstance.AddItem("None", logicalPlist);

            item.SetMetadata("LogicalName", "Info.plist");

            RunTargetOnInstance(MonoTouchProjectInstance, TargetName.DetectAppManifest);
            Assert.AreEqual(logicalPlist, MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), "#1");
        }