Adding service reference to portable class library

后端 未结 5 1182
无人及你
无人及你 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 also got the same situation where the add service reference is missing from the context menu. The most voted answer pointed me to the right direction but I did not create another project. Just rename your packages.config first (maybe to .old). This should overcome the "The selected targets require the project to opt-into NuGet 3.0 support..." error when you uncheck Windows Phone from the targets.

    And yes it seems that removing Windows Phone target enables the add service reference context menu on your PCL project.

提交回复
热议问题