dotnet / dotnet/aspnetcore

Testing ASP.NET Core with trimming

Open
#41,252 11 comments 1 reaction 0 assignees View on GitHub
area-auth area-dataprotection area-mvc area-networking area-signalr linker-friendliness task
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

We're annotating ASP.NET Core for trimming in .NET 7. In theory, the linker and trim warnings should ensure frameworks, libraries and apps work.

We should double-check that ASP.NET Core continues to run in some trimmed, published apps.

### Describe the solution you'd like

With trimming it's difficult to test trimmed features in isolation, e.g. an app uses features A and B. Did A and B only work because they were both used, etc. Building and running an app to test each feature in isolation isn't realistic.

We should do some basic smoke testing of core scenarios.

e.g.
MVC
Minimal API
SignalR
AuthN/AuthZ
Kestrel/IIS/HttpSys
Data protection/security/identity

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.