-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
VS 15.8: New project from template results in empty solution #15682
Comments
Confirming the same behavior on my system |
I'm not able to reproduce this on my machine. @mlorbetske Any ideas on what could cause this? |
@danroth27 |
I can't remember if I deleted the file or if it wasn't generated when I created my working project. Now if I create a new ASP.Net Core project with either Blazor template I get a global.json file in the root of the solution that has
@danroth27 I bet you have the 2.1.300 sdk installed on your system. I do not. |
Yeah, I have more SDK versions installed than I care to admit 😝. Let me try uninstalling 2.1.300 and see what that does. |
OK, I'm seeing this issue now with the multi-project templates. |
@phenning any ideas? |
I looked at this with @phenning and it seems to be caused by the global.json file that we drop with the template. It only affects the multi-project templates though. |
Note that we do actually create the individual projects, and that manually updating global.json to point to 2.1.400, or deleting it allows the projects to be loaded. |
At this point I think we should remove the global.json files from our templates. I don't think they are adding any value. |
editing the global.json and settings the "version" to "2.1.400" fixed the issue for me. |
I remove only global.json from the template, and leave global.json in the repository root, since it is required for the build. See #1324
I remove only global.json from the template, and leave global.json in the repository root, since it is required for the build. See #1324
This should now be fixed by dotnet/blazor#1386 |
I remove only global.json from the template, and leave global.json in the repository root, since it is required for the build. See #1324
After upgrading VS to 15.8 and .Net Core to 2.1.400 newly created project with the Blazor template results in empty solutions. Trying to add generated projects fails with incomplete project files.
Changing the .Net Core version in global.json to 2.1.400 solves the problem and generated projects can be added.
The text was updated successfully, but these errors were encountered: