Hello, I want to add a service to my project, but I get this error
VS2022 Service Reference Error MSBuild & SvcutilBootsapper
I'm using VS 2022 (17.3.4) to add a Connected Service WCF Web Servcie to a .net standard 2.0 project. The Service reference configuration progress page shows an error while creating the service reference:
MSBuild version 17.3.1+2badb37d1 for .NET
C:\Users\efi.nuget\packages\system.io.hashing\6.0.0\buildTransitive\netcoreapp2.0\System.IO.Hashing.targets(4,5): error : System.IO.Hashing doesn't support netcoreapp2.0. Consider updating your TargetFramework to netcoreapp3.1 or later. [C:\Users\efi\AppData\Local\Temp\WCFConnectedService\2022_Sep_26_09_48_22\svcutil_bootstrap\SvcutilBootstrapper\SvcutilBootstrapper.csproj]
Build FAILED.
Failed adding service reference(s). Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
How can i fix this issue, or is there a workaround to add an external WCF Web Service Connected reference?
3 answers
Sort by: Newest
-
-
Eric Fitskie 96 Reputation points
2022-09-29T13:47:54.987+00:00 Hi @Jiayao Wu-MSFT ,
Thank you for your response.
Unfortunately the dotnet-svcutil tool will not run in my netstandard2.0 project. See https://github.com/dotnet/wcf/issues/4766
I'm using the Visual Studio 2022 Connected Services to add the new reference. No coding involved in this:
-
Jiayao Wu-MSFT 186 Reputation points Microsoft Vendor
2022-09-27T07:16:22.787+00:00 Hi @Eric Fitskie ,
Depending on your situation, try using the dotnet-Svcutil tool to update the service reference for your scenario.
In addition, if possible, please provide some code to reproduce your problem.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.