Cannot neither install nor uninstall
Environment
- Visual Studio version: 2017
- CodeMaid version:10.6
After having issues with Codemaid window disappearing I tried to uninstall it.
Now I still have Codemaid menu in VS with non-functional Options and About items no matter what I do: install, uninstall, disable extension.
On startup I get The 'CodeMaidPackage' package did not load correctly and the following in the ActivityLog.xml:
<entry>
<record>598</record>
<time>2021/07/06 14:03:44.802</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [CodeMaidPackage]Source: 'mscorlib' Description: Could not load file or assembly 'file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll'
 at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
 at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
 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>{4C82E17D-927E-42D2-8460-B473AC7DF316}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>
Please, advise how to uninstall.
Based on the error description it looks like there may be an incomplete installation. I would recommend moving/deleting the folder. It looks like the path in your case is:
C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\
This link may be useful as well:
https://stackoverflow.com/questions/21903663/how-to-remove-an-already-installed-visual-studio-2013-extension-vsix-file/21903800#21903800
Hope it helps!