성 윈저 IoC를 사용하려고합니다. 나는 아주 간단한 어플리케이션을 가지고있다. 내 인터페이스는 Test.Services 네임 스페이스에 있습니다. 컴파일 할 때 나는 다음과 같은 예외가 :성 윈저 내 서비스 유형을 찾을 수 없습니다
<configuration>
<configSections>
<section name="castle"
type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler,
Castle.Windsor" />
</configSections>
<castle>
<components>
<component id="HtmlTitleRetriever"
type="Test.HTMLTitleRetriever, Test">
</component>
<component id="FileParser"
service="Test.Services.IParse, Test.Services"
type="Test.FileParser,
Test">
</component>
<component id="FileDownloader"
service="Test.Services.IDownload, Test.Services"
type="Test.FileDownloader, Test">
</component>
</components>
</castle>
수있는 사람 :
", Test.Services 찾을 수 없습니다 유형 이름 Test.Services.IParse는"
이 내의 app.config입니다 내가 뭘 놓쳤는 지 말해 줄래? 코드의 작품에서 다음을 수행
감사
-Nick
코드에서 다음 작업을 수행하면 모든 어셈블리와 컴파일러에 대한 의존성이 커지므로 컴파일러에 액세스 할 수 있어야합니다. 내 질문은 여전히 의미 - 당신은 Test.Services.dll 출력 디렉토리에 config 파일을 사용하여 복사합니까? 컴파일러는 당신을 위해 그렇게하지 않을 것입니다. –