EdCharbeneau / BlazorProSnippets

A collection of Blazor snippets for .NET ninjas.
Other
23 stars 4 forks source link

Visual Studio 16.8+ No longer works #7

Open bryanp-ramosoil opened 3 years ago

bryanp-ramosoil commented 3 years ago

I wanted to report that your tool no longer works in Visual Studio 16.8 and higher. My guess is it's due to the new Razor editor. Are you going to be updating your tool?

Cheers

EdCharbeneau commented 3 years ago

Thanks. I'll investigate this soon. Due to the lack of interest from Microsoft to fix critical bugs in Visual Studio I may not continue working on the project.

I will keep this issue open until a decision is made or a new release is available.

This doesn't appear to be an issue with the new Razor engine, but how Visual Studio categorizes the snippets when installed with a VSIX installer. This is an issue for Visual Studio.

This issue is worse in 16.8+. VSIX installers are broken.

EdCharbeneau commented 3 years ago

@bryanp-ramosoli

After installing the VSIX, manually add the snippets

  1. In Visual Studio press ctrl+K, ctrl+B
  2. Choose Languages > HTML
  3. Click Add, locate the Blazor folder (path below)
  4. Choose Languages > Csharp
  5. Click Add, locate the BlazorCode folder (path below)
  6. Close Snippet Manager

path: drive:\Users\<user>\AppData\Local\Microsoft\VisualStudio\16.0_???\Extensions\<guid?>\

Sorry for the complicated steps, this is what the VSIX is "supposed to" eliminate but I believe it has a bug in Visual Studio. This has been reported to the proper contacts at Microsoft but nobody seems to care.

bryanp-ramosoil commented 3 years ago

That worked like a charm!!

Thanks

bryanp-ramosoil commented 2 years ago

I'm back. Did you drop this project? I'm asking because I've updated to VS2022 and I was looking to reinstall the extension.

Cheers, Bryan

EdCharbeneau commented 2 years ago

Thanks for your interest.

I dropped this project because Microsoft isn't supporting snippets. There have been multiple issues raised to the VS team and they've been completely ignored. If you want to see the snippets added to VS2022 please ask Microsoft to add proper support for them. https://github.com/EdCharbeneau/BlazorProSnippets/issues/2