nick-gravgaard / AlwaysAlignedVS

Elastic tabstops for Visual Studio
MIT License
122 stars 7 forks source link

Error while uninstalling. #7

Open wischi-chr opened 7 years ago

wischi-chr commented 7 years ago

Tried to uninstall the extension but an exception was thrown and the extension could not be uninstalled.

System.IO.FileNotFoundException: Die Datei "C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\15.0_AF987EE6\EXTENSIONS\LICENSE.md" konnte nicht gefunden werden.
Dateiname: "C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\15.0_AF987EE6\EXTENSIONS\LICENSE.md"
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   bei Microsoft.VisualStudio.ExtensionManager.ExtensionHeaderImpl.get_License()
   bei Microsoft.VisualStudio.ExtensionManager.CachedInstalledExtensionHeader.get_License()
   bei VSIXInstaller.ViewModel.ExtensionViewModel..ctor(IExtension extension, IEnumerable`1 packages, Boolean satisfied, Boolean showPackages)
   bei VSIXInstaller.ViewModel.ExtensionViewModel.Create(UninstallExtensionData uninstallData, SupportedVSSKU sku)
   bei VSIXInstaller.MultipleChangePage..ctor(ExtensionData data)
   bei VSIXInstaller.LoadingPage.<>c__DisplayClass11_1.<OnLoaded>b__2()

I worked around it by placing a dummy LICENSE.md in that location and it worked. I think there is a path wrong somewhere. There is a LICENSE.md inside the extensions folder but the VSIX installer search one folder up for some reason.

Update: I did a quick search in the repo and I guess the .. in the manifest is wrong. AlwaysAlignedVS/source.extension.vsixmanifest