コード例 #1
0
        public void AllProjectsHaveSameOutputDirectory()
        {
            var testPath = Path.Combine("temp", "AllProjectsHaveSameOutputDirectory");
            var sb       = new SolutionBuilder("AllProjectsHaveSameOutputDirectory.sln")
            {
                SolutionPath = Path.Combine(Root, testPath),
                Verbosity    = LoggerVerbosity.Diagnostic,
            };

            var app1 = new XamarinAndroidApplicationProject()
            {
                ProjectName = "App1",
                OutputPath  = Path.Combine("..", "bin", "Debug"),
            };

            sb.Projects.Add(app1);
            var app2 = new XamarinAndroidApplicationProject()
            {
                ProjectName = "App2",
                OutputPath  = Path.Combine("..", "bin", "Debug"),
            };

            sb.Projects.Add(app2);
            Assert.IsTrue(sb.Build(), "Build of solution should have succeeded");
            Assert.IsTrue(sb.ReBuild(), "ReBuild of solution should have succeeded");
            sb.Dispose();
        }