Skip to content

Commit 602ff21

Browse files
committed
Sets simulator to startup project on creation
1 parent 4d42e1a commit 602ff21

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

FRC-Extension/SimulatorWizards/MainProjectSearchWizard.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,18 @@ private void FindRobotNameAndNamespace(Dictionary<string, string> replacementsDi
139139
public void ProjectFinishedGenerating(Project project)
140140
{
141141
var vsproject = project.Object as VSLangProj.VSProject;
142-
142+
143+
143144
if (vsproject != null && m_robotProject != null)
144145
{
145146
vsproject.References.AddProject(m_robotProject);
146147
}
148+
149+
DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE;
150+
if (dte != null)
151+
{
152+
dte.Solution.Properties.Item("StartupProject").Value = project.Name;
153+
}
147154
}
148155

149156
public void ProjectItemFinishedGenerating(ProjectItem projectItem)

0 commit comments

Comments
 (0)