[Xamarin] WCF-Add/Service Reference가 나타나지 않을 때

2016. 3. 16. 22:14Mobile

Xamarin은 기본적으로 WCF를 지원하며, PCL Project에서 Add/Service Reference를 통해 손쉽게 WCF 와 연결할 수 있습니다. 그러나 Add Service Reference가 나타나지 않는다면 다음을 점검해 주세요.

  1. 다음과 같이 Windows Phone 8.1을 선택하면 Service Reference를 추가할 수 없게 됩니다.
  2. Windows Phone 8.1을 선택해제 하려고 하면 다음과 같은 오류가 나타납니다.
    The project's targets cannot be changed. The selected targets require the project to opt-into NuGet 3.0 support, however, Visual Studio cannot automatically do this for you. Please uninstall all NuGet packages and try again.
    image
  3. Xamarin의 Target Platform을 변경하려면 PCL Project의 Nuget Package Manager을 열고 모든 Package를 삭제해야 합니다.
    image
  4. 이제 WIndows Phone 8.1을 해제하면, 다음과 같이 Service Referece를 추가하실 수 있습니다.
    image[3]