diff --git a/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs b/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs
index bf80f0b8c9b6..ee9092628ff5 100644
--- a/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs
+++ b/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs
@@ -61,6 +61,18 @@ internal sealed class VirtualProjectBuildingCommand : CommandBase
"MSBuild.rsp",
];
+ ///
+ /// Kept in sync with the default dotnet new console project file (enforced by DotnetProjectAddTests.SameAsTemplate).
+ ///
+ private static readonly FrozenDictionary s_defaultProperties = FrozenDictionary.Create(StringComparer.OrdinalIgnoreCase,
+ [
+ new("OutputType", "Exe"),
+ new("TargetFramework", "net10.0"),
+ new("ImplicitUsings", "enable"),
+ new("Nullable", "enable"),
+ new("PublishAot", "true"),
+ ]);
+
internal static readonly string TargetOverrides = """