OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug
2.0.0-preview.3
Prefix Reserved
dotnet add package OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug --version 2.0.0-preview.3
NuGet\Install-Package OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug -Version 2.0.0-preview.3
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug" Version="2.0.0-preview.3"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug" Version="2.0.0-preview.3" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug --version 2.0.0-preview.3
#r "nuget: OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug, 2.0.0-preview.3"
#:package OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug@2.0.0-preview.3
#addin nuget:?package=OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug&version=2.0.0-preview.3&prerelease
#tool nuget:?package=OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug&version=2.0.0-preview.3&prerelease
OPC UA .NET Standard — source generators (server-side NodeSet emitter)
OPCFoundation.NetStandard.Opc.Ua.SourceGeneration ships the Roslyn
source generators that emit strongly-typed proxy classes from a
NodeSet XML for use on the server side. The standard NodeSet,
companion specs (Devices, GDS, WoT Connectivity, …), and custom
information models all flow through this generator to produce the
ObjectType / VariableType proxies a NodeManager consumes.
Overview
Reference this package on a project that owns a NodeSet XML and wants
the generator to emit C# proxies at build time. The generator
participates in the standard dotnet build pipeline; no separate
tool invocation is required.
Supported hosts
The package ships the generator under a Roslyn-versioned analyzer folder. The .NET SDK loads it when its compiler supports that Roslyn API and ignores it otherwise, so an older host cleanly skips the generator.
| Roslyn API | Minimum host |
|---|---|
| 4.14 | Visual Studio 2022 17.14 / .NET 9 SDK |
| 5.0 | Visual Studio 2026 18.0 / .NET 10 SDK |
Getting started
Reference the generator as an analyzer (no runtime dependency):
<ItemGroup>
<ProjectReference Include="...\Opc.Ua.SourceGeneration.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<AdditionalFiles Include="MyCompanionSpec.NodeSet2.xml" />
</ItemGroup>
AdditionalFiles inputs may also be NodeSet2/ModelDesign XML, or a WoT Thing Model/Thing Description (.tm.json, .td.json, .tm.jsonld, .td.jsonld, or an opted-in plain .jsonld) which is converted to a NodeSet2 document entirely in memory before generation. See readme.md for details, per-file options and diagnostics.
Target frameworks
netstandard2.0 (Roslyn analyzer host TFM).
Additional documentation
See the main repository README and the Source-Generated Data Types guide.
Learn more about Target Frameworks and .NET Standard.
This package has 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 |
|---|---|---|
| 2.0.0-preview.3 | 34 | 8/28/2026 |
| 2.0.0-preview.2 | 51 | 8/24/2026 |