# native aot

A .NET deployment model that ahead-of-time compiles application IL to native code during publishing.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Test what you ship: MSTest and Native AOT

DevFeed: [Test what you ship: MSTest and Native AOT](<https://devfeed.tech/articles/test-what-you-ship-mstest-and-native-aot-2952.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/mstest-source-generation/>)

Author: Amaury Levé

Published: 2026-09-03T18:00:00Z

Content type: article

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [native aot](<https://devfeed.tech/topics/native-aot.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [deployment](<https://devfeed.tech/tags/deployment.md>), [generation](<https://devfeed.tech/tags/generation.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [native-aot](<https://devfeed.tech/tags/native-aot.md>), [net](<https://devfeed.tech/tags/net.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [testing](<https://devfeed.tech/tags/testing.md>), [trimming](<https://devfeed.tech/tags/trimming.md>)

### AI overview

MSTest 4.4 uses source generation to let test projects run as Native AOT executables, helping teams test under the same trimming and deployment constraints as their applications. The article explains that this can reveal application issues such as reflection-dependent serialization that managed test runs may miss.

### Source excerpt

MSTest source generation lets test projects use the same Native AOT and trimming deployment model as the applications they validate, while reducing reflection on the test execution path. The post Test what you ship: MSTest and Native AOT appeared first on .NET Blog.