From ade10c3fa20da5d55c83024d9cbaf89347e0c5bf Mon Sep 17 00:00:00 2001 From: davidjade Date: Thu, 20 Oct 2011 16:05:20 -0700 Subject: [PATCH] Added support for MonoTouch 5 XIB built types --- VSMonoTouch/Properties/AssemblyInfo.cs | 4 +- VSMonoTouch/VSMonoTouchPackage.cs | 4 +- VSMonoTouch/source.extension.vsixmanifest | 52 +++++++++++------------ 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/VSMonoTouch/Properties/AssemblyInfo.cs b/VSMonoTouch/Properties/AssemblyInfo.cs index 5a67383..812ac3c 100644 --- a/VSMonoTouch/Properties/AssemblyInfo.cs +++ b/VSMonoTouch/Properties/AssemblyInfo.cs @@ -29,8 +29,8 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.2.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyVersion("1.2.1.0")] +[assembly: AssemblyFileVersion("1.2.1.0")] [assembly: InternalsVisibleTo("VSMonoTouch_IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100db5f6823765cc0097d3f29e2657fee0d71b1ae26a2c6f114d719dd062d9052f64e6951f8f131fb019bb2463f9d1ea48855fd16e52cce9382161693df2666f895c07ee60bc5c14d3cbedfd677551bf7df715cce0489fe599d68bb303d1b4e07a4aa985511ebbc8c9de80240252184b1dc0a1fcf3c63883da29beceef5f0bb8e8e")] [assembly: InternalsVisibleTo("VSMonoTouch_UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100db5f6823765cc0097d3f29e2657fee0d71b1ae26a2c6f114d719dd062d9052f64e6951f8f131fb019bb2463f9d1ea48855fd16e52cce9382161693df2666f895c07ee60bc5c14d3cbedfd677551bf7df715cce0489fe599d68bb303d1b4e07a4aa985511ebbc8c9de80240252184b1dc0a1fcf3c63883da29beceef5f0bb8e8e")] diff --git a/VSMonoTouch/VSMonoTouchPackage.cs b/VSMonoTouch/VSMonoTouchPackage.cs index 28b763e..6b7ca27 100644 --- a/VSMonoTouch/VSMonoTouchPackage.cs +++ b/VSMonoTouch/VSMonoTouchPackage.cs @@ -35,6 +35,7 @@ public sealed class VSMonoTouchPackage : Package private readonly SolutionEvents _solutionEvents = new SolutionEvents(); private uint _solutionEventsCookie; private IVsSolution _solution; + private string XibBuildType = null; protected override void Initialize() { @@ -68,6 +69,7 @@ private void MakeXibsNone(vsBuildScope scope, vsBuildAction action) var xibs = FindAllXibsInSolution(); foreach(var xib in xibs) { + if (XibBuildType == null) XibBuildType = (string)(xib.Properties.Item("ItemType").Value); xib.Properties.Item("ItemType").Value = "None"; } } @@ -77,7 +79,7 @@ private void MakeXibsPage(vsBuildScope scope, vsBuildAction action) var xibs = FindAllXibsInSolution(); foreach (var xib in xibs) { - xib.Properties.Item("ItemType").Value = "Page"; + xib.Properties.Item("ItemType").Value = XibBuildType; } } diff --git a/VSMonoTouch/source.extension.vsixmanifest b/VSMonoTouch/source.extension.vsixmanifest index 04050be..93dc060 100644 --- a/VSMonoTouch/source.extension.vsixmanifest +++ b/VSMonoTouch/source.extension.vsixmanifest @@ -1,29 +1,29 @@  - - MonoTouch for Visual Studio 2010 - Jonas Follesø, David Jade, Lunat1k, - 1.2 - Load and build MonoTouch projects in Visual Studio 2010 - 1033 - https://github.com/follesoe/VSMonoTouch - https://github.com/follesoe/VSMonoTouch - false - - - Ultimate - Premium - Pro - - - - - - - Visual Studio MPF - - - - |%CurrentProject%;PkgdefProjectOutputGroup| - + + MonoTouch for Visual Studio 2010 + Jonas Follesø, David Jade, Lunat1k, + 1.21 + Load and build MonoTouch projects in Visual Studio 2010 + 1033 + https://github.com/follesoe/VSMonoTouch + https://github.com/follesoe/VSMonoTouch + false + + + Ultimate + Premium + Pro + + + + + + + Visual Studio MPF + + + + |%CurrentProject%;PkgdefProjectOutputGroup| +