diff --git a/test/Polly.AotTest/Polly.AotTest.csproj b/test/Polly.AotTest/Polly.AotTest.csproj
index 0f8b6725774..9ede9228685 100644
--- a/test/Polly.AotTest/Polly.AotTest.csproj
+++ b/test/Polly.AotTest/Polly.AotTest.csproj
@@ -2,10 +2,13 @@
enable
Exe
- true
true
+ true
net7.0
+
+ true
+