mmanela / SnippetDesigner

The Snippet Designer is a plugin which enhances the Visual Studio IDE to allow a richer and more productive code snippet experience.
Apache License 2.0
343 stars 85 forks source link

Upgrade extension for visual studio 2022 #165

Closed mfe- closed 2 years ago

mfe- commented 2 years ago

I updated RegistryTools and SnippetLibrary to the new Microsoft.NET.Sdk project style and upgraded the projects to .net48 In order to make the project SnippetDesigner compileable with Visual Studio 2022 I removed the old nuget packages and upgraded them using the new PackageReference. I tested the extension with Visual Studio 2022

Solves #164

james-vanrossum-sonardyne commented 2 years ago

When is this likely to be merged? I'm missing this tool!

mfe- commented 2 years ago

When is this likely to be merged? I'm missing this tool!

You can grab meanwhile the source from https://github.com/mfe-/SnippetDesigner (branch upgrade) and build it to get an installable SnippetDesigner.vsix

mmanela commented 2 years ago

Will it still run on older vs versions? Or would this be a specific 2022 package? @mfe-

mfe- commented 2 years ago

I only have Visual Studio 2022 installed, so I couldn't tested with older Visual Studio Versions. I can try to arrange an older Version of Visual Studio or ask a friend to test it. From the current point of view I would consider it as specific for 2022.

mfe- commented 2 years ago

It looks like it only works for Visual Studio 2022. For Visual Studio 2019 I get: ActivityLog.xml

  <entry>
    <record>3077</record>
    <time>2022/02/19 15:46:50.915</time>
    <type>Error</type>
    <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
    <description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Text.Logic, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
    <path>C:\USERS\adsf\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_8B53F10C\EXTENSIONS\EZEMAV5X.RBB\SnippetDesigner.dll</path>
  </entry>
mmanela commented 2 years ago

@mfe- @pejaii Merged and published https://marketplace.visualstudio.com/items?itemName=vs-publisher-2795.SnippetDesigner2022