文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 =====他プラグインの存在確認方法===== 汎用的に行うならばアセンブリを列挙して探す。 <code csharp> AppDomain.CurrentDomain.GetAssemblies() </code> ?????.plugin.dllはプラグイン用の属性持ちなのでそれを見ると名前とバージョンがわかる。 <code csharp> foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { if (String.IsNullOrEmpty(assembly.Location)) continue; foreach (var type in assembly.GetTypes()) { // プラグイン名を取る var attributesName = type.GetCustomAttributes(typeof(PluginNameAttribute), false); if (attributesName != null && attributesName.Count() != 0) { // プラグインっぽいのでバージョンも取る var attributesVertion = type.GetCustomAttributes(typeof(PluginVersionAttribute), false); } } } </code> 連携用にインターフェースがあるものは、それを使えば・・・\\ appendix/他プラグイン.txt 最終更新: 2022/03/05 16:07by fumble