Skip to main content
.NETStandard2.0

This package provides the C# source generators that emit reflection metadata so that MSTest test assemblies can run trim-safe and NativeAOT-compatible. MSTest is Microsoft supported Test Framework.

Published
Oct 27, 2026
6d ago
Total Downloads
68.8K
68,811

Install

dotnet add package MSTest.SourceGeneration --version 4.5.2
ProductVersions
.NET Standard
netstandard2.0

README

MSTest.SourceGeneration

MSTest is Microsoft supported Test Framework.

This package provides the C# source generators that emit reflection metadata so that MSTest test assemblies can run trim-safe and NativeAOT-compatible.

For access to the testing framework, install the MSTest.TestFramework package.

Changes from Previous Version

No structural changes between v4.5.1 and v4.5.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.