-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I've been creating a solution type template (.net 8) and I noticed that when the latest version of Visual Studio 2022 (17.13.5) creates the solution from the template the Solution Explorer is empty. I have confirmed this on my personal project as well as using the example found in: template-sample\src\Content\SolutionTemplate. Jetbrains Rider and dotnet new do not have any issues. I have verified this on a mostly fresh install of visual studio community (just the .net libraries and .net core 3.1 support installed to get the example project working) on a new machine, as well as an existing copy of visual studio professional on another machine I use for work.
Exiting Visual Studio and opening the project again is the only workaround I have found that works consistently across Visual Studio installs. Even File -> Close Solution does nothing on a fresh Visual Studio install. Interestingly, on my other machine with Resharper installed the solution loads but cannot be built. Building hangs. But if the solution is cleaned the build works just fine.
In case it is relevant I am installing the template with the following command using just the local folder: dotnet new install \template-sample\src\Content\SolutionTemplate. Screenshots below for additional information. Strangely, the Recent Projects and Solutions are showing the source filename of the solution file as well as the one that is created by the template. Perhaps Visual Studio is loading the source filename solution first?

