mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
31 lines
978 B
C#
31 lines
978 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Microsoft.VisualStudio.Shell;
|
|
using Microsoft.VisualStudio.Shell.Interop;
|
|
|
|
using Cosmos.VS.ProjectSystem.VS.PropertyPages;
|
|
|
|
namespace Cosmos.VS.ProjectSystem
|
|
{
|
|
[Guid(PackageGuid)]
|
|
[PackageRegistration(UseManagedResourcesOnly = true)]
|
|
[ProvideObject(typeof(OldCosmosPropertyPage))]
|
|
[ProvideProjectFactory(typeof(MigrateCosmosProjectFactory), null, "Cosmos Project Files (*.Cosmos);*.Cosmos", "Cosmos", "Cosmos", null)]
|
|
internal class CosmosProjectSystemPackage : Package
|
|
{
|
|
/// <summary>
|
|
/// The GUID for this package.
|
|
/// </summary>
|
|
public const string PackageGuid = "29194faf-90ce-454b-bc53-08b722f1dadf";
|
|
|
|
private IVsProjectFactory _factory;
|
|
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_factory = new MigrateCosmosProjectFactory();
|
|
RegisterProjectFactory(_factory);
|
|
}
|
|
}
|
|
}
|