christianhelle / apiclientcodegen

A collection of Visual Studio custom tool code generators for Swagger / OpenAPI specification files
http://bit.ly/restapicodegen
GNU General Public License v3.0
165 stars 20 forks source link

Unable to load VSIX package after Microsoft.VSSDK.BuildTools v17.10.2179 update #930

Closed christianhelle closed 2 months ago

christianhelle commented 2 months ago

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: &apos;Rapicgen.Core&apos; Description: Could not load file or assembly &apos;Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35&apos;&#x000D;&#x000A;   at Rapicgen.Core.Logging.AppInsightsRemoteLogger..ctor()&#x000D;&#x000A;   at Rapicgen.Core.Logging.RemoteLogger..ctor(IRemoteLogger[] remoteLoggers) in C:\projects\christianhelle\apiclientcodegen\src\Core\ApiClientCodeGen.Core\Logging\RemoteLogger.cs:line 15&#x000D;&#x000A;   at Rapicgen.Core.Logging.Logger.Setup(IRemoteLogger[] loggers) in C:\projects\christianhelle\apiclientcodegen\src\Core\ApiClientCodeGen.Core\Logging\Logger.cs:line 34&#x000D;&#x000A;   at Rapicgen.VsPackage.&lt;InitializeAsync&gt;d__10.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass21_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;&#x000D;&#x000A;=== Pre-bind state information ===&#x000D;&#x000A;LOG: DisplayName = Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#x000A; (Fully-specified)&#x000D;&#x000A;LOG: Appbase = file:///C:/Program Files/Microsoft Visual Studio/2022/Preview/Common7/IDE/&#x000D;&#x000A;LOG: Initial PrivatePath = NULL&#x000D;&#x000A;Calling assembly : Rapicgen.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.&#x000D;&#x000A;===&#x000D;&#x000A;LOG: This bind starts in LoadFrom load context.&#x000D;&#x000A;WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().&#x000D;&#x000A;LOG: Using application configuration file: C:\Users\christian\AppData\Local\Microsoft\VisualStudio\17.0_d02dc9cdExp\devenv.exe.config&#x000D;&#x000A;LOG: Using host configuration file: &#x000D;&#x000A;LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.&#x000D;&#x000A;LOG: The same bind was seen before, and was failed with hr = 0x80070002.&#x000D;&#x000A;</description>
    <guid>{47AFE4E1-5A52-4FE1-8CA7-EDB8310BDA4A}</guid>
    <hr>0x80070002</hr>
    <errorinfo></errorinfo>
  </entry>