Skip to content

Commit 80b0beb

Browse files
committed
Fix file not being opened when creating new project.
The change in the previous commit seems to have caused a problem where when the solution is saved the project's ParentSolution is set to null. The first time a new DNX solution is created the ParentSolution is not null and the file is opened into the text editor. The next time a solution is created or a new project is added to the existing solution as soon as the solution is saved the ParentSolution for the project gets set to null for some reason. For now I have just worked around this by opening the file before the solution is saved since at this point in time the project's ParentSolution is not null.
1 parent 296581f commit 80b0beb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MonoDevelop.Dnx/MonoDevelop.Dnx/DnxProjectTemplateWizard.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,11 @@ void CreateProject (Solution solution, SolutionFolder srcFolder, bool newSolutio
150150

151151
CreateFilesFromTemplate (project);
152152

153+
OpenProjectFile (project);
154+
153155
IdeApp.ProjectOperations.SaveAsync (solution)
154156
.ContinueWith (t => {
155157
Runtime.RunInMainThread (() => {
156-
OpenProjectFile (project);
157158
DnxServices.ProjectService.OnSolutionLoaded (solution);
158159
});
159160
});

0 commit comments

Comments
 (0)