feat: Encourage developers to use DLLs for devPlugins (#1958)

* Add file dialog to add a dev plugin
* Require dev plugins to be paths to the DLL
* Only allow .dlls in the dev plugin setting entry
* Update dev plugin location hint
* update wording

---------

Co-authored-by: KazWolfe <KazWolfe@users.noreply.github.com>
This commit is contained in:
Julian 2024-11-12 11:27:23 -05:00 committed by GitHub
parent 67e6bcac61
commit 57cc2f36f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 87 additions and 36 deletions

View file

@ -772,11 +772,7 @@ internal class PluginManager : IInternalDisposableService
Log.Verbose("Scanning dev plugins at {Path}", setting.Path);
if (Directory.Exists(setting.Path))
{
devDllFiles.AddRange(new DirectoryInfo(setting.Path).GetFiles("*.dll", SearchOption.AllDirectories));
}
else if (File.Exists(setting.Path))
if (File.Exists(setting.Path))
{
devDllFiles.Add(new FileInfo(setting.Path));
}