SvSoft.XsdToSource
0.1.0-preview
This is a prerelease version of SvSoft.XsdToSource.
dotnet add package SvSoft.XsdToSource --version 0.1.0-preview
NuGet\Install-Package SvSoft.XsdToSource -Version 0.1.0-preview
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SvSoft.XsdToSource" Version="0.1.0-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SvSoft.XsdToSource" Version="0.1.0-preview" />
<PackageReference Include="SvSoft.XsdToSource" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SvSoft.XsdToSource --version 0.1.0-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SvSoft.XsdToSource, 0.1.0-preview"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SvSoft.XsdToSource&version=0.1.0-preview&prerelease
#tool nuget:?package=SvSoft.XsdToSource&version=0.1.0-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XsdToSource
Generates POCOS from XML schema files (XSD) at compile-time.
The real work was done by Michael Ganss at https://github.com/mganss/XmlSchemaClassGenerator. I just piggybacked the source generator.
This is a proof-of-concept. Features like including multiple dependent schema files are not tested or implemented.
How to use
Add nuget package (enable preview) SvSoft.XsdToSource to your project. Then configure xsd to use by the generator:
<PackageReference Include="SvSoft.XsdToSource" Version="0.1.0-preview" />
<AdditionalFiles Include="myschema.xsd" XsdToSource_RootNamespace="MyRootNamespace" />
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0-preview | 234 | 8/8/2021 |