Something in the last couple commits you made (past few days) broke all of your preview extensions with Visual Studio 2022 (tested on Enterprise edition 17.0.4). It is all still working for me on one of my machines since I haven't updated the extensions yet. On my other machine, I had yet to install your extensions until today, and I get this error. When starting VS, an error pops up for each of your Preview extensions. Restarting does not help.
<Identity Id="PREVIEW-JSON.EC198F83-B43E-48F7-A346-3BA545D132DE" Version="1.0.8" Language="en-US" Publisher="Viacheslav Lozinskyi" />
<Identity Id="METAOUTPUT.2022.2DEDB4CB-B638-4121-874B-191C988DFC69" Version="2.0.8.190" Language="en-US" Publisher="Viacheslav Lozinskyi" />
<Identity Id="PREVIEW-JSON.EC198F83-B43E-48F7-A346-3BA545D132DE" Version="1.0.10" Language="en-US" Publisher="Viacheslav Lozinskyi" />
<Identity Id="METAOUTPUT.2022.2DEDB4CB-B638-4121-874B-191C988DFC69" Version="2.0.9.191" Language="en-US" Publisher="Viacheslav Lozinskyi" />
This is probably unrelated because it is the same on both machines, but the extensions.vsext file for the PreviewJSON extension references the 2019 METAOUTPUT instead of the 2022 METAOUTPUT.
{
"name": "Used extensions",
"description": "Used extensions which is necessary for correct work of this plug-in",
"version": "1.0",
"extensions": [
{
"name": "MetaOutput",
"vsixId": "METAOUTPUT.2019.2DEDB4CB-B638-4121-874B-191C988DFC69"
}
]
}
SetSite failed for package [PreviewJSON]
Source: "preview-json.vs"
Description: Method not found:
Void Microsoft.VisualStudio.Shell.InfoBarModel..ctor(System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan>
, System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem>
, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker
, Boolean)
System.MissingMethodException:
Method not found:
Void Microsoft.VisualStudio.Shell.InfoBarModel..ctor(System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan>
, System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem>
, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker
, Boolean)
at resource.package.PreviewJSON.InfoBarService.Validate()
at resource.package.PreviewJSON.<InitializeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)