2017-09-12 2 views
3

F # runtime 4.4.1을 대상으로하는 단위 테스트 프로젝트가 있습니다.bindingRedirect가 FSharp.Core 버전에 영향을주지 않는 이유는 무엇입니까?

Could not load file or assembly 'FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

내가 FSharp.Core 4.3을로드하기위한 시도가 왜 궁금 : 나는 테스트를 실행할 때 런타임 오류가 발생, 그러나

<dependentAssembly> 
    <Paket>True</Paket> 
    <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.4.1.0" /> 
    </dependentAssembly> 

: 그것은 bindingRedirect 섹션과의 app.config있다 .0.0 bindingRedirect는 다른 버전을 지정하므로.

답변

3

이것은 분명히 XUnit 구성과 관련된 문제입니다.

<appSettings> 
    <add key="xunit.appDomain" value="required" /> 
    </appSettings> 

그런 다음 테스트 주자 xunit.execution.desktop.dll 누락에 대해 불평의 app.config의 다음 섹션에서는 응용 프로그램 도메인 구성을 변경. 파일이 실행 디렉토리에 배치되면 XUnit 러너는 bindingRedirect 설정으로 app.config를 수락했습니다.

관련 문제