Adding service reference to portable class library

后端 未结 5 1188
无人及你
无人及你 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:07

    I was having the same problem. Right after creation of a new project of type "Blank App (Xamarin.Forms Shared) in Visual Studio there was no "Add Service Reference" link when I right clicked on PCL. What I did was I just created another PCL and referenced it instead of default one (which I deleted later). I chose project of type "Class Library (Portable for iOS, Android and Windows)".

    And then I went to project's properties and unselected "Windows Phone 8.1" checkbox.

    And "Add Service Reference" link appeared all over the sudden.

    I am using Visual Stuido 2015 Community Edition (version 14.0.25123.00 Update 2). Hope this will work for you guys too.

提交回复
热议问题