【发布时间】:2021-06-22 07:16:04
【问题描述】:
我在 Notepad++ 中使用 CsScript 制作了这个简单的方法 CallMethod。 如何从 VS 中调用?
namespace TestCall
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ClassCall
{
public void CallMethod()
{
Console.Write("MethodCalling");
}
}
}
我做了这个调用器
namespace TestCall
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Class1
{
public ClassCall a = new ClassCall();
public void Invoker()
{
Console.Write("MethodCall");
a.CallMethod();
Console.Write("MethodCalled");
}
}
}
但是如何调用它以使用带有 CSScript 的 Notepad++ 打开,以便我可以调试它? 谢谢
【问题讨论】:
标签: visual-studio notepad++ invoke-command cs-script