OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug 2.0.0-preview.3

Prefix Reserved
This is a prerelease version of OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug.
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
                    
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="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug" Version="2.0.0-preview.3">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug" Version="2.0.0-preview.3" />
                    
Directory.Packages.props
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
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 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"
                    
#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.
#:package OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug@2.0.0-preview.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug&version=2.0.0-preview.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OPCFoundation.NetStandard.Opc.Ua.SourceGeneration.Debug&version=2.0.0-preview.3&prerelease
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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