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 .net8.0 project and also not in .net standaard 2.1 framework.
Has anybody had the same problem with packages that point to 6.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