Need to run a c# dll from the command line

后端 未结 4 869
日久生厌
日久生厌 2020-12-03 14:51

I have a c# dll defined like this:

namespace SMSNotificationDll
{
    public class smsSender
    {
        public void SendMessage(String number, String mess         


        
4条回答
  •  既然无缘
    2020-12-03 15:48

    RunDll32 only works with DLLs specifically designed to be called from it. See http://support.microsoft.com/kb/164787 for more information.

    The easiest way to run the code in that DLL from the command line would be to make a simple C# command line app whose sole purpose is to call that method.

提交回复
热议问题