I want to generate a proxy class for the external wcf service of SAP. All goes well but the generated code can't be build in VS2022 in a 8.0 project and also not in standaard 2.1 framework.
Has anybody had the same problem with packages that point to 6.0.*
I want to generate a proxy class for the external wcf service of SAP. All goes well but the generated code can't be build in VS2022 in a 8.0 project and also not in standaard 2.1 framework.
Has anybody had the same problem with packages that point to 6.0.*
Share Improve this question asked Jan 29 at 13:41 LudwigGhislainLudwigGhislain 901 silver badge7 bronze badges 1- You may use donet-svcutil with traget framework 8.0 and you can post specific errors in the code to find a solution. Finally, update your VS 2022. – Jiayao Commented Feb 3 at 4:16
2 Answers
Reset to default 0I'd normally say you should explain what you did, and post the code as text, not images. That image shows you already found that svcutil has problems with .NET 8 and tried to use the preview 2.2.0-preview1.23462.5
that was supposed to fix it - but didn't.
Right now there's a newer version in NuGet, 8.0.0-preview1.24619.5, released 20 days ago. You should upgrade dotnet svcutil
to the latest pre-release and try again with :
dotnet tool update dotnet-svcutil -g --prerelease
There's no guarantee this will fix all issues as this is still a preview. It should remove references to obsolete packages at least
The solution was to add the correct missing namespaces
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745294436a4621053.html
评论列表(0条)