The VSIX package doesn't load when installed from VSIX gallery
The following error is shown in ActivityLog.xml
<entry>
<record>3340</record>
<time>2024/05/27 12:27:26.629</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [VsPackage]Source: 'Rapicgen.Core' Description: Could not load file or assembly 'Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
 at Rapicgen.Core.Logging.AppInsightsRemoteLogger..ctor()
 at Rapicgen.Core.Logging.RemoteLogger..ctor(IRemoteLogger[] remoteLoggers) in C:\projects\christianhelle\apiclientcodegen\src\Core\ApiClientCodeGen.Core\Logging\RemoteLogger.cs:line 15
 at Rapicgen.Core.Logging.Logger.Setup(IRemoteLogger[] loggers) in C:\projects\christianhelle\apiclientcodegen\src\Core\ApiClientCodeGen.Core\Logging\Logger.cs:line 34
 at Rapicgen.VsPackage.<InitializeAsync>d__10.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__DisplayClass21_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 Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/Microsoft Visual Studio/2022/Preview/Common7/IDE/
LOG: Initial PrivatePath = NULL
Calling assembly : Rapicgen.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Users\christian\AppData\Local\Microsoft\VisualStudio\17.0_d02dc9cdExp\devenv.exe.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
</description>
<guid>{47AFE4E1-5A52-4FE1-8CA7-EDB8310BDA4A}</guid>
<hr>0x80070002</hr>
<errorinfo></errorinfo>
</entry>
The VSIX package doesn't load when installed from VSIX gallery
The following error is shown in
ActivityLog.xml