diff --git a/src/Cli/func/Actions/LocalActions/InitAction.cs b/src/Cli/func/Actions/LocalActions/InitAction.cs index f2aa9d526..dcc5668bc 100644 --- a/src/Cli/func/Actions/LocalActions/InitAction.cs +++ b/src/Cli/func/Actions/LocalActions/InitAction.cs @@ -21,8 +21,8 @@ namespace Azure.Functions.Cli.Actions.LocalActions [Action(Name = "init", HelpText = "Create a new Function App in the current folder. Initializes git repo.")] internal class InitAction : BaseAction { - // Default to .NET 8 if the target framework is not specified - private const string DefaultTargetFramework = Common.TargetFramework.Net8; + // Default to .NET 10 if the target framework is not specified + private const string DefaultTargetFramework = Common.TargetFramework.Net10; private const string DefaultInProcTargetFramework = Common.TargetFramework.Net8; private readonly ITemplatesManager _templatesManager; private readonly ISecretsManager _secretsManager; diff --git a/test/Cli/Func.E2ETests/Commands/FuncInit/DotnetIsolatedInitTests.cs b/test/Cli/Func.E2ETests/Commands/FuncInit/DotnetIsolatedInitTests.cs index fbe5413b6..76f94b159 100644 --- a/test/Cli/Func.E2ETests/Commands/FuncInit/DotnetIsolatedInitTests.cs +++ b/test/Cli/Func.E2ETests/Commands/FuncInit/DotnetIsolatedInitTests.cs @@ -74,7 +74,7 @@ public void Init_WithDotnetIsolatedAndDockerFlag_GeneratesDockerFile() var testName = nameof(Init_WithDotnetIsolatedAndDockerFlag_GeneratesDockerFile); var funcInitCommand = new FuncInitCommand(FuncPath, testName, Log ?? throw new ArgumentNullException(nameof(Log))); var dockerFilePath = Path.Combine(workingDir, "Dockerfile"); - var expectedDockerfileContent = new[] { $"FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated8.0" }; + var expectedDockerfileContent = new[] { $"FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0" }; var filesToValidate = new List<(string FilePath, string[] ExpectedContent)> { (dockerFilePath, expectedDockerfileContent)