niklaskallander / vs-unobtrusive-code

An extension for Visual Studio that lets you hide away obtrusive code like comments and logging, to let you focus on the actual flow of your application.
MIT License
24 stars 1 forks source link

VS2019 and VS2022 show error message -> package is not loaded correctly #12

Closed apovetkin closed 8 months ago

apovetkin commented 2 years ago

Recently noticed that the tool doesn't want to load properly

2606 Warning VisualStudio Performance warning: String load failed. Pkg:{377F72AD-751E-4B9A-863A-2CD3B7F0A034} (UnobtrusiveCodePackage) LANG:0409 ID:0
niklaskallander commented 2 years ago

Hi, thanks for the report!

I’ll see if I can manage time to look into this over the weekend.

apovetkin commented 2 years ago

Hi Niklas,

Thanks for respond, I downloaded prev version and it works pretty well with vs2019, not 2022.

Anyway thanks for the great tool.

Alex

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Niklas Källander @.> Sent: Wednesday, April 6, 2022 8:14:07 AM To: niklaskallander/vs-unobtrusive-code @.> Cc: apovetkin @.>; Author @.> Subject: Re: [niklaskallander/vs-unobtrusive-code] VS2019 and VS2022 show error message -> package is not loaded correctly (Issue #12)

Hi, thanks for the report!

I’ll see if I can manage time to look into this over the weekend.

— Reply to this email directly, view it on GitHubhttps://github.com/niklaskallander/vs-unobtrusive-code/issues/12#issuecomment-1090388811, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAJQUSG64AJJOXEB5UWM3ADVDWS37ANCNFSM5RATFTTA. You are receiving this because you authored the thread.Message ID: @.***>

TheEmbracedOne commented 1 year ago

Unfortunately, it does not work for me on 2019 (version 16.11.27, .NET 4.8.09032). I'd greatly appreciate some help with this, I'd love to use this extension.

On launching Visual Studio I get the following error: image

the entry in question:

741 Error VisualStudio CreateInstance failed for package [UnobtrusiveCodePackage]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. {377F72AD-751E-4B9A-863A-2CD3B7F0A034}
80004005 - E_FAIL
niklaskallander commented 8 months ago

Not planning any further support for VS 2019, sorry.