2014-04-17 4 views
1

Rhino 라이센스를 사용하여 라이센스 시스템을 개발하려고합니다. Rhino.Licensing.dll을 다운로드하고 내 프로젝트에 참조를 추가했습니다. 나는 this 예제를 실행하려고합니다. 나는 license.xml 발생하지만 execption이 라이센스를 사용하는 응용 프로그램에있다 : Rhino 라이센스

{"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"}

내 질문에

... 
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(); 
} 
은을 : 그 난이 예외가 왜 프로젝트에 코뿔소가 - 라이센스 및 추가이 올바른 방법? 이 log4net.dll이 (가) Rhino.Licensing.dll에 추가 된 것 같습니다.

죄송합니다.

답변

4

Rhino 라이센스 부여는 log4net에 종속됩니다. 응용 프로그램과 함께 배포되도록 log4net에 대한 참조를 프로젝트에 추가하십시오. 대안으로

, 당신은 아마 Rhino의 라이센스 nuget 패키지를 참조 할 수있다; 당신은 가능성이

업데이트 ... 특히 "최신"로 버전 1.2.10.0이 필요 1.2.13입니다 것 당신이 필요로하는 모든 의존성을 가져야한다. http://www.nuget.org/packages/Rhino.Licensing/

+0

제안 해 주셔서 감사합니다. 문제는 잘못된 형식의'license.xml'입니다. 'Rhino.Licensing.dll' 자체는 log4net 레퍼런스를 가지고 있습니다. – lubomir