Can't reuse types for WCF Service Reference in Visual Studio 2022 .NET Framework 4.8 project

Corey L 20 Reputation points
2023-07-18T17:23:45.1566667+00:00

Trying to add a WCF service reference in a .NET Framework 4.8 project. We have a package that includes the data types the Web Service uses and would like to reuse them. However, we can't seem to reuse the types. I have the NuGet package installed. I have tried manually putting the DLL in the project bin and directly adding an assembly reference. Nothing seems to allow VS 2022 to find the reference. I have done this with .NET 6 projects successfully and am trying to figure out why I can't seem to do the same here.

User's image

Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Wiktor KUBIS 0 Reputation points
    2025-10-07T10:13:52.9366667+00:00

    I got this exactly same problem - migrating net48 to sdk style project.

    Reuse types is disabled....

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.