Rhino-Licensing を使用してライセンス システムを開発しようとしています。Rhino.Licensing.dllをダウンロードし、プロジェクトに参照を追加しました。この例を実行しようとしています。生成license.xml
しましたが、このライセンスを使用するアプリには例外があります:
...
using Rhino.Licensing;
...
static void Main()
{
var publicKey = File.ReadAllText(@"c:\publicKey.xml");
new LicenseValidator(publicKey, @"c:\license.xml").AssertValidLicense();
Console.WriteLine("Hello");
Console.ReadKey();
}
{"Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The system cannot find the file specified.":"log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821"}
私の質問は、Rhino-Licensing をプロジェクトに追加する正しい方法ですか?なぜこの例外が発生するのですか? log4net.dll
これは追加されていると思いますRhino.Licensing.dll
。
私の悪い英語でごめんなさい。