XmlSchemaClassGenerator.SourceGenerator 1.0.12

dotnet add package XmlSchemaClassGenerator.SourceGenerator --version 1.0.12
NuGet\Install-Package XmlSchemaClassGenerator.SourceGenerator -Version 1.0.12
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="XmlSchemaClassGenerator.SourceGenerator" Version="1.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XmlSchemaClassGenerator.SourceGenerator --version 1.0.12
#r "nuget: XmlSchemaClassGenerator.SourceGenerator, 1.0.12"
#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.
// Install XmlSchemaClassGenerator.SourceGenerator as a Cake Addin
#addin nuget:?package=XmlSchemaClassGenerator.SourceGenerator&version=1.0.12

// Install XmlSchemaClassGenerator.SourceGenerator as a Cake Tool
#tool nuget:?package=XmlSchemaClassGenerator.SourceGenerator&version=1.0.12

XmlSchemaClassGenerator.SourceGenerator

Source generator for XmlSchemaClassGenerator.

Example .csproj file modification

<Project Sdk="Microsoft.NET.Sdk">

	<PropertyGroup>
		<TargetFramework>net8.0</TargetFramework>
		<ImplicitUsings>enable</ImplicitUsings>
		<Nullable>enable</Nullable>
	</PropertyGroup>

+ 	<ItemGroup>
+		<PackageReference Include="XmlSchemaClassGenerator.SourceGenerator" Version="1.0.0" />
+	</ItemGroup>

+	<ItemGroup>
+		<AdditionalFiles Include="Schemas\**\*.xsd" XscGenSchema="true" />
+		<AdditionalFiles Include="Schemas\Config.json" XscGenConfig="true" />
+	</ItemGroup>

</Project>

Example Config.json

Note: Used only last config in project

{
  "sources": [
    {
      "path": null,
      "namespaces": {
        "urn://x-artefacts-smev-gov-ru/services/service-adapter/types": "Schemas.Adapter",
        "urn://x-artefacts-smev-gov-ru/services/service-adapter/types/faults": "Schemas.Adapter.Faults"
      }
    }
  ],
  "CollectionSettersMode": "PublicWithoutConstructorInitialization",
  "CompactTypeNames": true,
  "EnableNullableReferenceAttributes": true,
  "GenerateNullables": true,
  "NetCoreSpecificCode": true
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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
1.0.12 680 2/19/2024
1.0.11 155 2/19/2024
1.0.10 146 2/18/2024
1.0.9 140 2/18/2024
1.0.8 112 2/18/2024
1.0.1 117 2/18/2024
1.0.0 135 2/18/2024