Closed leprox43 closed 2 years ago
@Leprox43 and @ViniciusAlberkovics, Not sure if it's just me, and definitely worth reproducing the problem on another machine, but based on Microsoft docs and my experience with this PR/fork erroring out on VS2019:
"If you want to target Visual Studio 2019 or an earlier version [alongside VS2022], you must modify the created project."
"Consider using shared projects to target Visual Studio 2019 and Visual Studio 2022 while sharing most or all the code in your extension."
Microsoft Docs - Target a previous version when creating an extension in Visual Studio 2022
<entry>
<record>2898</record>
<time>2022/03/08 22:37:39.148</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [GitAutoFetchPackage]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].
</description>
<guid>{A0B3344D-E011-4159-8052-C8EED06BC3AB}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>
Edit: I'd like to also highlight, greatly appreciate the work done here! 👍
VS2022 Support (Issue #2 ) and Thread sleep performance (Issue #1 )