aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Blazor Templates gone in VS 15.8.0

Open uwefms opened this issue 8 years ago • 12 comments

After upgrading to VS 15.8.0 and SDK 2.1.400 all blazor templates (core 2.0 and 2.1) are gone. Creating new apps with dotnet new works as expected and the newly created projects can be edited with VS. Deinstalling and reinstalling the asp.net blazor language services did not help.

Uwe

uwefms avatar Aug 16 '18 13:08 uwefms

Have you tried to build an app with VS? When I upgraded to 15.8.0 I had the experience of having the build hang, then you could cancel the build, & restart and it would build. Make a source change & the build would hang again. I went back to 15.7.6. I didn't try to create a new project so I can't comment on your issue.

MarkStega avatar Aug 16 '18 15:08 MarkStega

Had the same "hanging" problem - solved it by saving before building. I guess VS hangs because the compile starts before the save is finished.

uwefms avatar Aug 16 '18 15:08 uwefms

@uwefms I am not seeing this issue with my installation of 15.8.0 (which was an upgrade from 15.7.6).

I am seeing the issue raised in aspnet/Blazor#1324

MarkStega avatar Aug 16 '18 18:08 MarkStega

@mlorbetske Any thoughts on this one?

danroth27 avatar Aug 16 '18 19:08 danroth27

@uwefms Could you please check a few things for me?:

  • Does the C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\Blazor folder exist?

  • Is the Templates.pkgdef file present in that folder? Does the contents of this file match the following:

    [$RootKey$\TemplateEngine\Templates\Blazor\0.2.0]
    "InstalledPath"="$PackageFolder$\ProjectTemplates"
    
  • Does the ProjectTemplates folder exist in that folder and does it contain the Microsoft.AspNetCore.Blazor.Templates.0.5.1.nupkg package?

  • Is the regkey specified above present on your machine with the regkey specified above present on your machine and pointing to the location of the Blazor templates?

If all these things check out, could you please try running devenv.exe /setup and see if that addresses the issue?

danroth27 avatar Aug 17 '18 20:08 danroth27

@phenning

danroth27 avatar Aug 17 '18 21:08 danroth27

@danroth27

Could you please check a few things for me?: -


Does the C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\Blazor folder exist?

YES - But on my machine it is C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\Blazor

(Community for Enterprise)


Is the Templates.pkgdef file present in that folder? Does the contents of this file match the following:

[$RootKey$\TemplateEngine\Templates\Blazor\0.2.0] "InstalledPath"="$PackageFolder$\ProjectTemplates"

YES


Does the ProjectTemplates folder exist in that folder and does it contain the Microsoft.AspNetCore.Blazor.Templates.0.5.1.nupkg package?

NO - Creating the folder and adding Microsoft.AspNetCore.Blazor.Templates.0.5.1.nupkg manually from /.nuget/packages brought back the templates. Funny enough - deinstalling / reinstalling did not kill them this time.

Went to 15.8.1 and installed the newest language services in the meantime. Everything still fine. Btw. I am using the community edition - maybe this caused the issue. Will keep an eye on this at the next update.

uwefms avatar Aug 18 '18 15:08 uwefms

Seems to be OK now after the last language services update. Close it for now.

uwefms avatar Aug 23 '18 05:08 uwefms

@uwefms When you hit this issue had you installed a Blazor VSIX update from our CI def feed? What version of the Blazor VSIX do you have installed?

danroth27 avatar Aug 31 '18 17:08 danroth27

@danroth27 I am not sure - I noticed the missing templates after upgrading to VS 15.8.0 and SDK 2.1.400. I always update via VSIX. At present I am using the following version:

ASP.NET Core Blazor Language Services 0.6.0-preview1-20180830.1

Creating the missing ProjectTemplates folder and adding Microsoft.AspNetCore.Blazor.Templates.0.5.1.nupkg manually from /.nuget/packages brought back the templates. Since then - no issue. Just checked 10 secs ago.

uwefms avatar Aug 31 '18 20:08 uwefms

I am using the following version: ASP.NET Core Blazor Language Services 0.6.0-preview1-20180830.1

OK, yeah, it looks like you're using a build form the Blazor dev feed, so this is consistent with the issue I am able to reproduce. Thanks for confirming!

danroth27 avatar Aug 31 '18 22:08 danroth27

🤔

plasticalligator avatar Dec 14 '18 13:12 plasticalligator