Skip to content

Commit

Permalink
Added support for MonoTouch 5 XIB built types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjade committed Oct 20, 2011
1 parent b50b3cd commit ade10c3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
4 changes: 2 additions & 2 deletions VSMonoTouch/Properties/AssemblyInfo.cs
Expand Up @@ -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")]
4 changes: 3 additions & 1 deletion VSMonoTouch/VSMonoTouchPackage.cs
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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";
}
}
Expand All @@ -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;
}
}

Expand Down
52 changes: 26 additions & 26 deletions VSMonoTouch/source.extension.vsixmanifest
@@ -1,29 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
<Identifier Id="4e51e215-eb16-4614-b6d2-92e6e1d8c204">
<Name>MonoTouch for Visual Studio 2010</Name>
<Author>Jonas Follesø, David Jade, Lunat1k, </Author>
<Version>1.2</Version>
<Description xml:space="preserve">Load and build MonoTouch projects in Visual Studio 2010</Description>
<Locale>1033</Locale>
<MoreInfoUrl>https://github.com/follesoe/VSMonoTouch</MoreInfoUrl>
<GettingStartedGuide>https://github.com/follesoe/VSMonoTouch</GettingStartedGuide>
<InstalledByMsi>false</InstalledByMsi>
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
<SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
</Identifier>
<References>
<Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
<Name>Visual Studio MPF</Name>
</Reference>
</References>
<Content>
<VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
</Content>
<Identifier Id="4e51e215-eb16-4614-b6d2-92e6e1d8c204">
<Name>MonoTouch for Visual Studio 2010</Name>
<Author>Jonas Follesø, David Jade, Lunat1k, </Author>
<Version>1.21</Version>
<Description xml:space="preserve">Load and build MonoTouch projects in Visual Studio 2010</Description>
<Locale>1033</Locale>
<MoreInfoUrl>https://github.com/follesoe/VSMonoTouch</MoreInfoUrl>
<GettingStartedGuide>https://github.com/follesoe/VSMonoTouch</GettingStartedGuide>
<InstalledByMsi>false</InstalledByMsi>
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
<SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
</Identifier>
<References>
<Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
<Name>Visual Studio MPF</Name>
</Reference>
</References>
<Content>
<VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
</Content>
</Vsix>

0 comments on commit ade10c3

Please sign in to comment.