Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Cli/func/Actions/LocalActions/InitAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down