mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
startup project now .cosmos project
This commit is contained in:
parent
f8910249b2
commit
eba633febb
2 changed files with 10 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\EnvDTE.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.TemplateWizardInterface.dll</HintPath>
|
||||
|
|
|
|||
|
|
@ -72,6 +72,14 @@ namespace Cosmos.VS.Package.Templates
|
|||
// Make .Cosmos project dependent on library project.
|
||||
EnvDTE.BuildDependency bd = project.DTE.Solution.SolutionBuild.BuildDependencies.Item(project.Name + "Boot.Cosmos");
|
||||
bd.AddProject(project.UniqueName);
|
||||
|
||||
// found this with macro functionality in VS2010
|
||||
dynamic d2 = project.DTE.ActiveWindow.Object;
|
||||
d2.GetItem(project.Name + "\\" + project.Name + "Boot").Select(EnvDTE.vsUISelectionType.vsUISelectionTypeSelect);
|
||||
project.DTE.ExecuteCommand("Project.SetasStartUpProject");
|
||||
// because
|
||||
// project.DTE.Solution.SolutionBuild.StartupProjects = new object[] { project.Name + "Boot.Cosmos"};
|
||||
// didnt work correct
|
||||
}
|
||||
|
||||
public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem)
|
||||
|
|
@ -99,4 +107,4 @@ namespace Cosmos.VS.Package.Templates
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue