最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net 8.0 and generated WCF service - Stack Overflow

programmeradmin1浏览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.*

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

发布评论

评论列表(0)

  1. 暂无评论