Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
follesoe committed May 15, 2011
0 parents commit beaf0fb
Show file tree
Hide file tree
Showing 30 changed files with 2,415 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ReSharper meta directory
_ReSharper*
*.user

# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
bin
obj

# mstest test results
TestResults
14 changes: 14 additions & 0 deletions IntegrationTests.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings
id="85f80678-5acf-4267-a4f8-e5bf47bd5e87"
name="IntegrationTests"
enableDefaultDataCollectors="false"
xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>This test run configuration uses the VS IDE host type in the test run.</Description>
<Deployment enabled="false" />
<Execution>
<Hosts>
<VSSDKTestHostRunConfig name="VS IDE" HiveName="10.0Exp" xmlns="http://microsoft.com/schemas/VisualStudio/SDK/Tools/IdeHostAdapter/2006/06" />
</Hosts>
</Execution>
</TestSettings>
9 changes: 9 additions & 0 deletions UnitTests.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings
id="906380a7-c058-43a6-8f36-966013e5a9eb"
name="UnitTests"
enableDefaultDataCollectors="false"
xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Deployment enabled="false" />
<Description>This test run configuration is used for running the unit tests</Description>
</TestSettings>
38 changes: 38 additions & 0 deletions VSMonoTouch.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSMonoTouch", "VSMonoTouch\VSMonoTouch.csproj", "{6A03B5F6-5859-4F40-AE81-FA9EFBE5B140}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSMonoTouch_IntegrationTests", "VSMonoTouch\VSMonoTouch_IntegrationTests\VSMonoTouch_IntegrationTests.csproj", "{00782522-5DDE-4F6B-8681-98AA1B556EAD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{49D4505E-F643-4923-8413-3B8D0B2F4366}"
ProjectSection(SolutionItems) = preProject
IntegrationTests.testsettings = IntegrationTests.testsettings
UnitTests.testsettings = UnitTests.testsettings
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSMonoTouch_UnitTests", "VSMonoTouch\VSMonoTouch_UnitTests\VSMonoTouch_UnitTests.csproj", "{78EF1A7B-613B-4AC0-BCA2-98CC71F72262}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6A03B5F6-5859-4F40-AE81-FA9EFBE5B140}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A03B5F6-5859-4F40-AE81-FA9EFBE5B140}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A03B5F6-5859-4F40-AE81-FA9EFBE5B140}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A03B5F6-5859-4F40-AE81-FA9EFBE5B140}.Release|Any CPU.Build.0 = Release|Any CPU
{00782522-5DDE-4F6B-8681-98AA1B556EAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00782522-5DDE-4F6B-8681-98AA1B556EAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00782522-5DDE-4F6B-8681-98AA1B556EAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00782522-5DDE-4F6B-8681-98AA1B556EAD}.Release|Any CPU.Build.0 = Release|Any CPU
{78EF1A7B-613B-4AC0-BCA2-98CC71F72262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78EF1A7B-613B-4AC0-BCA2-98CC71F72262}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78EF1A7B-613B-4AC0-BCA2-98CC71F72262}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78EF1A7B-613B-4AC0-BCA2-98CC71F72262}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added VSMonoTouch.suo
Binary file not shown.
11 changes: 11 additions & 0 deletions VSMonoTouch/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project. Project-level
// suppressions either have no target or are given a specific target
// and scoped to a namespace, type, member, etc.
//
// To add a suppression to this file, right-click the message in the
// Error List, point to "Suppress Message(s)", and click "In Project
// Suppression File". You do not need to add suppressions to this
// file manually.

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")]
16 changes: 16 additions & 0 deletions VSMonoTouch/Guids.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Guids.cs
// MUST match guids.h
using System;

namespace Follesoe.VSMonoTouch
{
static class GuidList
{
public const string guidVSMonoTouchPkgString = "4e51e215-eb16-4614-b6d2-92e6e1d8c204";
public const string guidVSMonoTouchCmdSetString = "3c2c3edd-b7a6-4566-8780-888f78686380";
public const string guidSolutionFolder = "66A26720-8FB5-11D2-AA7E-00C04F688DDE";
public const string guidMonoTouchProjectFactory = "E613F3A2-FE9C-494F-B74E-F63BCB86FEA6";

public static readonly Guid guidVSMonoTouchCmdSet = new Guid(guidVSMonoTouchCmdSetString);
};
}
Binary file added VSMonoTouch/Key.snk
Binary file not shown.
63 changes: 63 additions & 0 deletions VSMonoTouch/ProjectUtils.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell.Interop;
using EnvDTE;

namespace Follesoe.VSMonoTouch
{
public class ProjectUtils
{
public static string GetProjectTypeGuids(Project proj)
{
string projectTypeGuids = "";
IVsHierarchy hierarchy;
IVsAggregatableProject aggregatableProject;
int result;

object service = GetService(proj.DTE, typeof(IVsSolution));
var solution = (IVsSolution)service;

result = solution.GetProjectOfUniqueName(proj.UniqueName, out hierarchy);

if (result == 0)
{
aggregatableProject = (IVsAggregatableProject)hierarchy;
aggregatableProject.GetAggregateProjectTypeGuids(out projectTypeGuids);
}

return projectTypeGuids;

}

private static object GetService(object serviceProvider, Type type)
{
return GetService(serviceProvider, type.GUID);
}

private static object GetService(object serviceProviderObject, Guid guid)
{

object service = null;
Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider;
IntPtr serviceIntPtr;
int hr;

Guid SIDGuid = guid;
Guid IIDGuid = SIDGuid;
serviceProvider = (Microsoft.VisualStudio.OLE.Interop.IServiceProvider)serviceProviderObject;
hr = serviceProvider.QueryService(ref SIDGuid, ref IIDGuid, out serviceIntPtr);

if (hr != 0)
{
Marshal.ThrowExceptionForHR(hr);
}
else if (!serviceIntPtr.Equals(IntPtr.Zero))
{
service = Marshal.GetObjectForIUnknown(serviceIntPtr);
Marshal.Release(serviceIntPtr);
}

return service;
}
}
}
36 changes: 36 additions & 0 deletions VSMonoTouch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("VSMonoTouch")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Follesoe")]
[assembly: AssemblyProduct("VSMonoTouch")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: NeutralResourcesLanguage("en-US")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: InternalsVisibleTo("VSMonoTouch_IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100db5f6823765cc0097d3f29e2657fee0d71b1ae26a2c6f114d719dd062d9052f64e6951f8f131fb019bb2463f9d1ea48855fd16e52cce9382161693df2666f895c07ee60bc5c14d3cbedfd677551bf7df715cce0489fe599d68bb303d1b4e07a4aa985511ebbc8c9de80240252184b1dc0a1fcf3c63883da29beceef5f0bb8e8e")]
[assembly: InternalsVisibleTo("VSMonoTouch_UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100db5f6823765cc0097d3f29e2657fee0d71b1ae26a2c6f114d719dd062d9052f64e6951f8f131fb019bb2463f9d1ea48855fd16e52cce9382161693df2666f895c07ee60bc5c14d3cbedfd677551bf7df715cce0489fe599d68bb303d1b4e07a4aa985511ebbc8c9de80240252184b1dc0a1fcf3c63883da29beceef5f0bb8e8e")]
64 changes: 64 additions & 0 deletions VSMonoTouch/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit beaf0fb

Please sign in to comment.