diff --git a/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets b/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets index 609d7bd49b..e5a91635a0 100644 --- a/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets +++ b/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets @@ -536,6 +536,9 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved. + + 10.0.0 2.0 {93788F78-16E5-432F-89D8-30F041C51974} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Library MyLibrary Resources MyLibrary + Xamarin.iOS + v1.0 true @@ -34,13 +36,12 @@ - + - @@ -66,4 +67,5 @@ + diff --git a/msbuild/tests/MySingleView/MySingleView.csproj b/msbuild/tests/MySingleView/MySingleView.csproj index 8ca160d2d0..bf636f0be6 100644 --- a/msbuild/tests/MySingleView/MySingleView.csproj +++ b/msbuild/tests/MySingleView/MySingleView.csproj @@ -6,11 +6,13 @@ 8.0.30703 2.0 {8F2D37C2-BF1F-408A-8E7E-1B89D2126DFB} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Exe MySingleView Resources MySingleView + Xamarin.iOS + v1.0 true @@ -47,6 +49,7 @@ false iPhone Developer Entitlements.plist + ARMv7 full @@ -57,6 +60,7 @@ iPhone Developer false Entitlements.plist + ARMv7, ARM64 full @@ -69,6 +73,7 @@ false Automatic:AdHoc Entitlements.plist + ARMv7, ARM64 full @@ -80,12 +85,13 @@ false Automatic:AppStore Entitlements.plist + ARMv7, ARM64 - + @@ -106,7 +112,6 @@ MySingleViewViewController.cs - {93788F78-16E5-432F-89D8-30F041C51974} @@ -167,4 +172,5 @@ + diff --git a/msbuild/tests/MySingleView/MySingleViewViewController.cs b/msbuild/tests/MySingleView/MySingleViewViewController.cs index dffa717eb2..d83f4d4021 100644 --- a/msbuild/tests/MySingleView/MySingleViewViewController.cs +++ b/msbuild/tests/MySingleView/MySingleViewViewController.cs @@ -1,7 +1,7 @@ using System; -using System.Drawing; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using CoreGraphics; +using Foundation; +using UIKit; namespace MySingleView { diff --git a/msbuild/tests/MySingleView/MySingleViewViewController.designer.cs b/msbuild/tests/MySingleView/MySingleViewViewController.designer.cs index eb3f641412..946fc18bea 100644 --- a/msbuild/tests/MySingleView/MySingleViewViewController.designer.cs +++ b/msbuild/tests/MySingleView/MySingleViewViewController.designer.cs @@ -3,7 +3,7 @@ // actions made in the Xcode designer. If it is removed, they will be lost. // Manual changes to this file may not be handled correctly. // -using MonoTouch.Foundation; +using Foundation; namespace MySingleView { diff --git a/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/BindingProject.cs b/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/BindingProject.cs index e54f6f60a6..41894bd798 100644 --- a/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/BindingProject.cs +++ b/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/BindingProject.cs @@ -13,10 +13,11 @@ namespace Xamarin.iOS.Tasks { Platform = platform; } + [Test] public void BuildTest () { - var mtouchPaths = SetupProjectPaths ("bindings-test", "../../../tests/", false, Platform); + var mtouchPaths = SetupProjectPaths ("bindings-test", "bindings-test-unified", "../../../tests/", false, Platform, "Any CPU/Debug-unified"); var proj = SetupProject (Engine, mtouchPaths ["project_csprojpath"]); @@ -36,7 +37,7 @@ namespace Xamarin.iOS.Tasks [Test] public void FrameworkTest () { - var mtouchPaths = SetupProjectPaths ("bindings-test", "../../../tests/", false, Platform); + var mtouchPaths = SetupProjectPaths ("bindings-test", "bindings-test-unified", "../../../tests/", false, Platform, "Any CPU/Debug-unified"); var proj = SetupProject (Engine, mtouchPaths ["project_csprojpath"]); AppBundlePath = mtouchPaths.AppBundlePath; diff --git a/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/Extensions/WatchKit.cs b/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/Extensions/WatchKit.cs index 8b45d50b6f..8adebdbfa9 100644 --- a/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/Extensions/WatchKit.cs +++ b/msbuild/tests/Xamarin.iOS.Tasks.Tests/ProjectsTests/Extensions/WatchKit.cs @@ -26,7 +26,7 @@ namespace Xamarin.iOS.Tasks { { var mtouchPaths = SetupProjectPaths ("MyWatchApp", platform: Platform); using (var xiproj = XIProject.Clone (mtouchPaths.ProjectPath, "MyWatchKitExtension", "MyWatchKitApp")) { - mtouchPaths = SetupProjectPaths ("MyWatchApp", xiproj.ProjectDirectory, platform: Platform); + mtouchPaths = SetupProjectPaths ("MyWatchApp", "MyWatchApp", xiproj.ProjectDirectory, platform: Platform); var appInfoPath = Path.Combine (mtouchPaths.ProjectPath, "Info.plist"); var appInfoContents = File.ReadAllText (appInfoPath); diff --git a/msbuild/tests/Xamarin.iOS.Tasks.Tests/TargetTests/TargetTests.cs b/msbuild/tests/Xamarin.iOS.Tasks.Tests/TargetTests/TargetTests.cs index bc6712303d..c6a7059606 100644 --- a/msbuild/tests/Xamarin.iOS.Tasks.Tests/TargetTests/TargetTests.cs +++ b/msbuild/tests/Xamarin.iOS.Tasks.Tests/TargetTests/TargetTests.cs @@ -79,8 +79,8 @@ namespace Xamarin.iOS.Tasks "System.Xml.dll.mdb", "System.dll", "System.dll.mdb", - "monotouch.dll", - "monotouch.dll.mdb", + "Xamarin.iOS.dll", + "Xamarin.iOS.dll.mdb", "mscorlib.dll", "mscorlib.dll.mdb", "runtime-options.plist", @@ -145,7 +145,7 @@ namespace Xamarin.iOS.Tasks Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Xml")), "#3b"); Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Core")), "#3c"); Assert.IsTrue (references.Any (t => t.Include.Contains ("mscorlib")), "#3d"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("monotouch")), "#3e"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("Xamarin.iOS")), "#3e"); } [Test] @@ -155,12 +155,11 @@ namespace Xamarin.iOS.Tasks var references = LibraryProject.GetEvaluatedItemsByName ("ReferencePath").ToArray (); Assert.AreEqual (5, references.Length, "#1"); - Assert.IsTrue (references.All (t => t.Include.Contains ("2.1")), "#2"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("System")), "#3a"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Xml")), "#3b"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Core")), "#3c"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("mscorlib")), "#3d"); - Assert.IsTrue (references.Any (t => t.Include.Contains ("monotouch")), "#3e"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("System")), "#2a"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Xml")), "#2b"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("System.Core")), "#2c"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("mscorlib")), "#2d"); + Assert.IsTrue (references.Any (t => t.Include.Contains ("Xamarin.iOS")), "#2e"); } [Test] diff --git a/msbuild/tests/Xamarin.iOS.Tasks.Tests/TestHelpers/TestBase.cs b/msbuild/tests/Xamarin.iOS.Tasks.Tests/TestHelpers/TestBase.cs index 794164b68e..8db777a413 100644 --- a/msbuild/tests/Xamarin.iOS.Tasks.Tests/TestHelpers/TestBase.cs +++ b/msbuild/tests/Xamarin.iOS.Tasks.Tests/TestHelpers/TestBase.cs @@ -92,7 +92,7 @@ namespace Xamarin.iOS.Tasks get; set; } - public ProjectPaths SetupProjectPaths (string projectName, string baseDir = "../", bool includePlatform = true, string platform = "iPhoneSimulator", string config = "Debug") + public ProjectPaths SetupProjectPaths (string projectName, string csprojName, string baseDir = "../", bool includePlatform = true, string platform = "iPhoneSimulator", string config = "Debug") { var projectPath = Path.Combine(baseDir, projectName); @@ -103,11 +103,16 @@ namespace Xamarin.iOS.Tasks ProjectPath = projectPath, ProjectBinPath = binPath, ProjectObjPath = objPath, - ProjectCSProjPath = Path.Combine (projectPath, projectName + ".csproj"), + ProjectCSProjPath = Path.Combine (projectPath, csprojName + ".csproj"), AppBundlePath = Path.Combine (binPath, projectName + ".app"), }; } + public ProjectPaths SetupProjectPaths (string projectName, string baseDir = "../", bool includePlatform = true, string platform = "iPhoneSimulator", string config = "Debug") + { + return SetupProjectPaths (projectName, projectName, baseDir, includePlatform, platform, config); + } + [SetUp] public virtual void Setup () {