admin管理员组文章数量:1418669
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
本文标签: net 80 and generated WCF serviceStack Overflow
版权声明:本文标题:.net 8.0 and generated WCF service - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745294435a2651989.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论