Missing parameter in example code for code generation from xsd #42634
Labels
dotnet-fundamentals/svc
in-pr
This issue will be closed (fixed) by an active pull request.
Pri2
⌚ Not Triaged
Not triaged
Type of issue
Code doesn't work
Description
Under the header "To generate classes that conform to a specific schema", step 2, the console code example is
xsd mySchema.xsd
This generates an error message: "Error: Can only generate one of classes or datasets."
The correct call to generate the classes for the schema is
xsd mySchema.xsd /c
Page URL
https://learn.microsoft.com/en-us/dotnet/standard/serialization/xml-schema-def-tool-gen
Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/serialization/xml-schema-def-tool-gen.md
Document Version Independent Id
77c8e5c2-62e7-a5f7-5b3e-bc7bb7ce8691
Article author
@gewarren
Metadata
The text was updated successfully, but these errors were encountered: