Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Templates gone in VS 15.8.0 #15677

Closed
uwefms opened this issue Aug 16, 2018 · 12 comments
Closed

Blazor Templates gone in VS 15.8.0 #15677

uwefms opened this issue Aug 16, 2018 · 12 comments
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@uwefms
Copy link

uwefms commented Aug 16, 2018

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

@MarkStega
Copy link

MarkStega commented Aug 16, 2018

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.

@uwefms
Copy link
Author

uwefms commented Aug 16, 2018

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

@MarkStega
Copy link

@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

@danroth27
Copy link
Member

@mlorbetske Any thoughts on this one?

@danroth27
Copy link
Member

@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
Copy link
Member

@phenning

@uwefms
Copy link
Author

uwefms commented Aug 18, 2018

@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
Copy link
Author

uwefms commented Aug 23, 2018

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

@uwefms uwefms closed this as completed Aug 23, 2018
@danroth27
Copy link
Member

danroth27 commented Aug 31, 2018

@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?

@uwefms
Copy link
Author

uwefms commented Aug 31, 2018

@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.

@danroth27
Copy link
Member

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!

@plasticalligator
Copy link

🤔

@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/blazor Oct 27, 2019
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Oct 27, 2019
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

5 participants