An ILSpy's plugin DLL cannot be copied to the ILSpy WindowsApp folder #2601
Replies: 3 comments 4 replies
-
Quite frankly I have no idea how to do that, the MSIX implementation was contributed - and will go away in favor of the newly added setup post 7.2. The idea is to then distribute the setup in the "new" Windows 10/11 store that allows native installers. And yes, I was aware that plugins might be a problem with MSIX. But the Store was never intended to be our main means of distribution. |
Beta Was this translation helpful? Give feedback.
-
Preview 3 had the first iteration of the installer - and no UI. That has changed since #2574 (the default install location hasn't, we tried to model VS Code). How that then behaves with the Store, I don't know (at the time we decided to drop the MSIX there was no documentation on native installers for the Store) And you are correct that there are no registry keys for ILSpy when being xcopy-deployed. That is intentional and won't change. |
Beta Was this translation helpful? Give feedback.
-
Finally in WindowsApp install situation, we cannot do better than explaining the user the situation: |
Beta Was this translation helpful? Give feedback.
-
We plan to propose an ILSpy plugin for our product NDepend. When installing ILSpy from the Windows store, all ILSpy EXEs and DLLS get installed to a directory similar to:
C:\Program Files\WindowsApps\17310ICSharpCodeTeam.ILSpy_7.1.6543.0_neutral__jpqg2ewkdrg54\ILSpy
This directory can be obtained from the registry key:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ilspy.exe
The ILSpy plugin README.txt states that: "Plugins must be placed in the same directory as ILSpy.exe, and must be called "*.Plugin.dll"."
However - even with administrator rights - no file can be copied in this WindowsApps directory. The procedure to have write access to the WindowsApps directory is overkill and hazardous.
Thus there is a fundamental incompatibility. Is there any workaround?
Since we can read the ILSpy Windows store directory we can still copy paste all ILSpy EXEs and DLLs in our own directory and install our plugin in this copied version. However when starting ILSpy from the Windows app our plugin won't be in.
On a side note we already have a Reflector plugin written a decade ago that solves this by writing a section like
in this config file:
C:\Users\$usr$\AppData\Local\Red Gate\.NET Reflector\Reflector.cfg
Beta Was this translation helpful? Give feedback.
All reactions