mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +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>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\EnvDTE.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\EnvDTE.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.TemplateWizardInterface.dll</HintPath>
|
<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.
|
// Make .Cosmos project dependent on library project.
|
||||||
EnvDTE.BuildDependency bd = project.DTE.Solution.SolutionBuild.BuildDependencies.Item(project.Name + "Boot.Cosmos");
|
EnvDTE.BuildDependency bd = project.DTE.Solution.SolutionBuild.BuildDependencies.Item(project.Name + "Boot.Cosmos");
|
||||||
bd.AddProject(project.UniqueName);
|
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)
|
public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue