SemanticTypeModel.DotNet 2.5.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package SemanticTypeModel.DotNet --version 2.5.3
                    
NuGet\Install-Package SemanticTypeModel.DotNet -Version 2.5.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="SemanticTypeModel.DotNet" Version="2.5.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SemanticTypeModel.DotNet" Version="2.5.3" />
                    
Directory.Packages.props
<PackageReference Include="SemanticTypeModel.DotNet" />
                    
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 SemanticTypeModel.DotNet --version 2.5.3
                    
#r "nuget: SemanticTypeModel.DotNet, 2.5.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 SemanticTypeModel.DotNet@2.5.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=SemanticTypeModel.DotNet&version=2.5.3
                    
Install as a Cake Addin
#tool nuget:?package=SemanticTypeModel.DotNet&version=2.5.3
                    
Install as a Cake Tool

SemanticTypeModel.DotNet

What this package does

SemanticTypeModel.DotNet provides .NET attribute vocabulary and Roslyn extraction support for code-first semantic model authoring.

Install

dotnet add package SemanticTypeModel.DotNet --version 2.4.0

Use when

  • Install this package when you need .NET attribute vocabulary and Roslyn extraction support for code-first semantic model authoring.
  • Keep package boundaries explicit in an application or library.
  • Pair generated semantic models with the target runtime you are configuring.

Minimal example

using SemanticTypeModel;

[SemanticType(SemanticTypeRole.Entity)]
public sealed partial class Customer
{
    [SemanticKey]
    public required string Id { get; init; }
}

Main APIs

API Purpose
SemanticTypeAttribute Marks a .NET type for semantic extraction.
SemanticKeyAttribute Marks an identity property.
SemanticEnvelopeAttribute Marks wrapper/payload semantics.
SemanticOwnedObjectAttribute Marks lifecycle-contained object members.

Works with

  • SemanticTypeModel.Generators, SemanticTypeModel.Core, and projection packages.
  • SemanticTypeModel.Abstractions.Model for the current unified model surface.
  • public-docs/samples/ projects that demonstrate package-based usage.

Does not do

  • It does not publish schemas, configure EF Core, or replace target-specific package options.
  • It does not make milestone plans or historical research documents part of the public API.
  • It does not change compatibility rules described in the compatibility documentation.

More documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SemanticTypeModel.DotNet:

Package Downloads
SemanticTypeModel.Generators

Incremental source generator package for SemanticTypeModel compile-time extraction.

SemanticTypeModel.SystemTextJson

System.Text.Json contract integration, annotations, extraction options, and runtime helpers for SemanticTypeModel.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 55 8/23/2026
4.0.1 113 8/18/2026
4.0.0 108 8/16/2026
2.6.0 123 8/4/2026
2.5.3 117 8/4/2026
2.5.1 115 8/4/2026
2.5.0 116 8/3/2026
2.4.6 115 8/3/2026
2.4.5 109 8/3/2026
2.4.4 126 8/2/2026
2.4.3 115 7/31/2026
2.4.2 115 7/31/2026
2.4.1 130 7/3/2026
2.4.0 128 7/2/2026
2.3.0 131 6/20/2026
2.2.0 143 6/16/2026
2.1.0 136 6/15/2026
2.0.0 128 6/7/2026
1.1.0 134 6/4/2026
1.0.0 135 6/1/2026
Loading failed