diff --git a/csharp/aspnet-minimal-api/web.csproj b/csharp/aspnet-minimal-api/web.csproj
index 55d66d29ca3..715d129316b 100644
--- a/csharp/aspnet-minimal-api/web.csproj
+++ b/csharp/aspnet-minimal-api/web.csproj
@@ -3,6 +3,7 @@
net7.0
enable
+ true
diff --git a/csharp/aspnet-mvc/web.csproj b/csharp/aspnet-mvc/web.csproj
index 2917b6fc1f2..f17e21a0938 100644
--- a/csharp/aspnet-mvc/web.csproj
+++ b/csharp/aspnet-mvc/web.csproj
@@ -4,6 +4,7 @@
net7.0
enable
enable
+ true