.net 8.0 and generated WCF service - Stack Overflow

I want to generate a proxy class for the external wcf service of SAP.All goes well but the generated c

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
Add a comment  | 

2 Answers 2

Reset to default 0

I'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

相关推荐

  • .net 8.0 and generated WCF service - Stack Overflow

    I want to generate a proxy class for the external wcf service of SAP.All goes well but the generated c

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信