dotnet / dotnet/wcf

Since v10.0.652802 several types are not included

Open
#5,868 22 comments 29 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
I'm using the svcutil tool to generate the proxy classed based on a wsdl file on linux (ubuntu).
I references the libraries in my `dotnet 8` project:
`System.ServiceModel.Http` and `System.ServiceModel.Primitives`, both in version `8.1.2`. All working properly.

After I changed the version of that references libraries to `10.0.652802`, I got the compilation errors. Because a lot of types in the generated file (by svcutil) are not included anymore. The version of the `dotnet 8` - i didn't change.

**To Reproduce**
Steps to reproduce the behavior:
1. Take a wsdl and generate client classes with svcutil
2. Take a look in generated class (in my case the name is `Reference.cs`
3. A lot of types are missing, e.g. `The type or namespace name 'MessageContractAttributeAttribute' does not exist in the namespace 'System.ServiceModel'`, `The type or namespace name 'MessageContractAttribute' does not exist in the namespace 'System.ServiceModel'`, `The type or namespace name 'MessageHeaderAttributeAttribute' does not exist in the namespace 'System.ServiceModel'` and many more

**Expected behavior**
I tryed to reference additional libraries, but this do not solve the problem. Because I used the current version of svcutil tool, I expect that all classes are known.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.