2017-11-05 6 views
0

내 프로젝트에서 mvvm light 패키지 (v 5.3.0)를 사용합니다. 패키지 CommonServiceLocator를 버전 1.3.0에서 새 (2.0.1) 버전으로 업데이트 할 때까지는 아무 문제가 없었습니다. 이 같은 코드에서이 업데이트 후 :MvvmLightLibs를 변경하는 방법 최신 CommonServiceLocator에 대한 종속성

ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);

나는 다음과 같은 오류가 발생합니다 :

The type 'IServiceLocator' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.ServiceLocation, Version=1.3.0

내 다른 패키지 또한 내가 최신 버전을 얻을 것을 선호 CommonServiceLocator를 사용한다. 새 어셈블리를 사용하려면 MvvmLight를 어떻게 만들 수 있습니까?

답변

1

How can I make the MvvmLight to use the new assembly?

수 없습니다. 그것은 이전 버전에 의존합니다. CommonServiceLocator 2.0.1을 사용하는 MvvmLight의 새 버전이 출시되거나 CommonServiceLocator의 버전 1.3.0을 사용하기 위해 되돌릴 때까지 기다려야합니다.

라이브러리를 다시 컴파일하지 않고 특정 어셈블리 나 API를 사용하여 MvvmLight를 "만들 수 없습니다."

관련 문제