VS2010 cannot add service link

I have a project that was originally written in VS2008 (professional). I created the vs2010 solution (using VS2010 professional) from the projects in VS2008 solution, but could not add a link to the service from the domain level for the solution (class library project). I checked that the domain level project is aimed at the 3.5 or 4.0 framework, and tried to restore and even reinstall VS2010, but still can not add a link to the service.

The service link option is missing when I right-click a project. There was also an existing Web Service link, which now fails when called during unit testing.

Has anyone else experienced this problem?

+4
source share
3 answers

Check your project and make sure it references the framework 3.5 or higher.

  • View project properties.
  • Go to the Compilation tab
  • Click the Advanced Compilation Options button
  • Take a look at the combobox Target Framework.
  • Change it to 3.5 or 4.
  • Click OK to close the dialogs.
  • Now right click on the project.
+1
source

For Visual Studio 10 on Windows 8. "Add Service Link" is not shown for 3.5 Framework or earlier. You must change the .NET Framework of the project to 4.0

+1
source

Changing the Target framework to 3.5 enabled the opportunity for me.

0
source

Source: https://habr.com/ru/post/893030/


All Articles