BlazorProSnippets icon indicating copy to clipboard operation
BlazorProSnippets copied to clipboard

Visual Studio 16.8+ No longer works

Open bryanp-ramosoil opened this issue 4 years ago • 5 comments

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

bryanp-ramosoil avatar Nov 30 '20 16:11 bryanp-ramosoil

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.

  • [x] Research snipits for the new Razor engine

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.

  • [x] Research if Microsoft fixed the issue which causes snippets to fail update through VSIX installer

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

EdCharbeneau avatar Dec 01 '20 04:12 EdCharbeneau

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

EdCharbeneau avatar Dec 01 '20 18:12 EdCharbeneau

That worked like a charm!!

Thanks

bryanp-ramosoil avatar Dec 01 '20 18:12 bryanp-ramosoil

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

bryanp-ramosoil avatar Nov 15 '21 16:11 bryanp-ramosoil

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

EdCharbeneau avatar Nov 15 '21 21:11 EdCharbeneau