Adding service reference to portable class library

后端 未结 5 1218
无人及你
无人及你 2021-01-04 03:45

I am making a portable C# class library and I am trying to add a web service reference to my project.

Using VS 2013, I right click on the solution and in my other p

5条回答
  •  庸人自扰
    2021-01-04 04:20

    The reason you can't add Service Reference in a Xamarin Forms PCL project can be:

    1. Windows Phone 8.1 (not Silverlight). Remove it by going to properties on PCL project and click Change. You might not be able to do it before you remove all your Nuget Packages.
    2. Visual Studio crashes when you add the service reference. Remove Xamarin Forms nuget package and Asp.net SignalR. That worked for me. I didn't have Entity Framework Core but that might have to be removed temporarily as well.

提交回复
热议问题