question

bob53050 avatar image
0 Votes"
bob53050 asked TheobaldDu-MSFT answered

How to resolve compile errors after adding a WCF net tcp service reference in .Net Core Console App

Hello all,

After I was able to add a WCF net tcp service reference to my .Net Core Console App targeting .Net 5, under the Dependencies -> Assemblies, System.ServiceModel is listed but has a yellow triangle.

When I checked the Microsoft Docs on this, there was mention it would add needed Nuget packages but non are listed for the project.

110306-test-core-console-app-adding-wcf-net-tcp-endpoint.png

Please advise and thanks for your help,

Bob


dotnet-runtimewindows-wcf
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TheobaldDu-MSFT avatar image
0 Votes"
TheobaldDu-MSFT answered

Hi @bob53050 ,

  1. Find the Manage Nuget Packages option in the drop-down box of the project option above.

  2. Enter Nugetpackagemanager, search for System.ServiceModel in the search box in Browse to find the corresponding nuget package.

  3. Install it for the project.




If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Best regards,
Theobald Du


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.