Command in plugin not running

Hi, I made a command in a plugin i’m developing in C# , this command use rhinocommon libraries and to create an Excel report use this library ClosedXML.Excel.
After I’ve installed it IN ANOTHER COMPUTER from the release .rhp file every command is working except for the one which use excel library… Does anyone have an idea about how can I solve?
If I launch it directly from visual studio from my pc it works well

This is the beginning of the code

using System;
using Rhino;
using Rhino.Commands;
using Rhino.DocObjects;
using Rhino.Input;
using ClosedXML.Excel;
using System.Collections.Generic;
using System.IO;
using Rhino.Geometry;
using System.Linq;
using System.Runtime.CompilerServices;
using Rhino.UI;

namespace SmartechPlugin.Commands
    public class ExtractBom : Command
        public ExtractBom()
            Instance = this;
        public static ExtractBom Instance { get; private set; }

        public override string EnglishName => "ExtractBom";

        protected override Result RunCommand(RhinoDoc doc, RunMode mode)


         return Result.Success;


Does the other machine have the dll and/or other install items required for ClosedXML installed?

Just copying the rhp doesn’t bring dependencies, so if you use libraries which don’t come with Rhino you may need to build an installer or give the user directions on how to install those components.

1 Like

Thanks for the answer, at the end the solution was to copy all dll contained in the bin folder of the project into C:\programs\rhino7\plugin folder… I though were included in the rhp file