2

新しいアドオンを作成しようとしていますが、G1ANT Studio のアドオン メニューにアドオンが表示されません。マーケットプレイスからインストールされた他のアドオンも表示されません。最新バージョンを使用しています。G1ANT studio を管理者として実行してみました。それでも違いはありません。

私のアドオンの Addon.cs ファイルは次のとおりです。

using System.Collections.Generic;
using System.Linq;
using System.Text;
using G1ANT.Language;

// Please remember to refresh G1ANT.Language.dll in references

namespace G1ANT.Addon.LibreOffice
{
    [Addon(Name = "libreoffice", Tooltip = "Provides commands to automate LibreOffice")]
    [Copyright(Author = "G1ANT LTD", Copyright = "G1ANT LTD", Email = "support@g1ant.com", Website = "www.g1ant.com")]
    [License(Type = "LGPL", ResourceName = "License.txt")]
    [CommandGroup(Name = "calc", Tooltip = "Commands connected with creating editing and generally working on calc")]
    public class LibreOfficeAddon : Language.Addon
    {

        public override void Check()
        {
            base.Check();
            // Check integrity of your Addon
            // Throw exception if this Addon needs something that doesn't exists
        }

        public override void LoadDlls()
        {
            base.LoadDlls();
            // All dlls embeded in resources will be loaded automatically,
            // but you can load here some additional dlls:

            // Assembly.Load("...")
        }

        public override void Initialize()
        {
            base.Initialize();
            // Insert some code here to initialize Addon's objects
        }

        public override void Dispose()
        {
            base.Dispose();
            // Insert some code here which will dispose all unnecessary objects when this Addon will be unloaded
        }
    }
}

このアドオンは、他のいくつかの DLL も依存関係として参照します。

4

2 に答える 2