mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
41 lines
No EOL
1.2 KiB
C#
41 lines
No EOL
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Microsoft.VisualStudio.TemplateWizard;
|
|
|
|
namespace Cosmos.VS.Package.Templates.Wizards
|
|
{
|
|
public class UseGuidsWizard: IWizard
|
|
{
|
|
public void BeforeOpeningFile(EnvDTE.ProjectItem projectItem)
|
|
{
|
|
}
|
|
|
|
public void ProjectFinishedGenerating(EnvDTE.Project project)
|
|
{
|
|
}
|
|
|
|
public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem)
|
|
{
|
|
|
|
}
|
|
|
|
public void RunFinished()
|
|
{
|
|
}
|
|
|
|
public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
|
|
{
|
|
replacementsDictionary.Add("$GeneratedGuid1$", GenerateGuidsWizard.Guid1.Value.ToString("B"));
|
|
replacementsDictionary.Add("$GeneratedGuid2$", GenerateGuidsWizard.Guid2.Value.ToString("B"));
|
|
GenerateGuidsWizard.Guid1 = null;
|
|
GenerateGuidsWizard.Guid2 = null;
|
|
}
|
|
|
|
public bool ShouldAddProjectItem(string filePath)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
} |