Skip to content

Templates are not refreshing to the latest core tools version installed #4608

@kshyju

Description

@kshyju

Repro steps:

  1. Install version 4.1.1.
  2. Execute func init --worker-runtime dotnet-isolated command to create a new dni app.
  3. Install 4.1.2
  4. Execute func init --worker-runtime dotnet-isolated --target-framework net10.0 command to create a new net10 dni app.
  5. Observe the error saying "net10.0' is not a valid value for --Framework"

C:\temp\Apps\ct-test>func init --worker-runtime dotnet-isolated --target-framework net10.0
Error: Invalid option(s):
--Framework net10.0
'net10.0' is not a valid value for --Framework. The possible values are:
net48 - Target .NET Framework 4.8
net6.0 - Target .NET 6
net7.0 - Target .NET 7
net8.0 - Target .NET 8
net9.0 - Target .NET 9
For more information, run:
dotnet new func -h
For details on the exit code, refer to https://aka.ms/templating-exit-codes#127
Error creating project template

See internal thread here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions