Antlr3.StringTemplate.dllとAntlr3.Runtime.dllをhttp://www.stringtemplate.org/からcs-script/libディレクトリ(http://www.csscript.net/)にコピーし、以下のコードを実行しましたが、Antlrのアセンブリが見つかりません私のプログラムは以下のとおりですStringTemplateでcs-script(c#スクリプト)を実行するには?
//css_reference Antlr3.Runtime.dll;
//css_reference Antlr3.StringTemplate.dll;
using System;
using Antlr.StringTemplate;
using Antlr.StringTemplate.Language;
using System.Windows.Forms;
class Script
{
static public void Main(string[] args)
{
StringTemplateGroup group = new StringTemplateGroup("myGroup", @"C:\Tutorials\stringtemplate", typeof(DefaultTemplateLexer));
StringTemplate helloAgain = group.GetInstanceOf("homepage");
helloAgain.SetAttribute("title", "Welcome To StringTemplate");
helloAgain.SetAttribute("name", "World");
helloAgain.SetAttribute("friends", "Terence");
helloAgain.SetAttribute("friends", "Kunle");
helloAgain.SetAttribute("friends", "Micheal");
helloAgain.SetAttribute("friends", "Marq");
Console.Out.WriteLine(helloAgain.ToString());
}
}
これは本当にこれを言いますか?それとも、「...またはその依存関係の1つ」と言われていますか?*融合ログを使用して、依存関係がないかどうかを確認することをお勧めします。 –