SemanticTypeModel.DotNet
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SemanticTypeModel.DotNet --version 1.0.0
NuGet\Install-Package SemanticTypeModel.DotNet -Version 1.0.0
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="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SemanticTypeModel.DotNet" Version="1.0.0" />
<PackageReference Include="SemanticTypeModel.DotNet" />
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 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SemanticTypeModel.DotNet, 1.0.0"
#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@1.0.0
#: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=1.0.0
#tool nuget:?package=SemanticTypeModel.DotNet&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SemanticTypeModel.DotNet
SemanticTypeModel.DotNet exposes .NET extraction contracts and semantic attributes.
dotnet add package SemanticTypeModel.DotNet --version 1.0.0
This package is part of the stable 1.0 package set. Public APIs follow the compatibility policy.
Common attribute surface:
[SemanticType],[SemanticIgnore],[SemanticName],[SemanticDisplayName],[SemanticDescription][SemanticRole],[SemanticKey],[SemanticRelationship][SemanticCategory],[SemanticOrder],[SemanticFormat][SemanticStringConstraints],[SemanticNumericConstraints],[SemanticCollectionConstraints][SemanticEnumValue],[SemanticAnnotation]
Example:
using SemanticTypeModel.DotNet;
[SemanticType(SemanticTypeRole.Entity)]
[SemanticDisplayName("Customer account")]
public sealed class Customer
{
[SemanticKey]
public required string Id { get; init; }
[SemanticFormat(SemanticScalarFormat.Email)]
[SemanticStringConstraints(MinLength = 5, MaxLength = 200)]
[SemanticAnnotation("ui.placeholder", "name@example.com")]
public required string Email { get; init; }
}
| Product | Versions 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.
-
net10.0
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- SemanticTypeModel.Abstractions (>= 1.0.0)
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 |
|---|---|---|
| 2.0.0 | 37 | 6/7/2026 |
| 1.1.0 | 71 | 6/4/2026 |
| 1.0.0 | 101 | 6/1/2026 |
| 0.1.0-alpha | 97 | 5/26/2026 |