You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest .NET 8 SDK (8.0.404) and Azure Function Core Tools (4.0.6610). I removed and installed Azure Function Core Tools again after installing the latest .NET 8 SDK.
> func version
4.0.6610
> dotnet --info
.NET SDK:
Version: 8.0.404
Commit: 7b190310f2
Workload version: 8.0.400-manifests.996cfe54
MSBuild version: 17.11.9+a69bbaaf5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.404\
.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.
Host:
Version: 8.0.11
Architecture: x64
Commit: 9cb3b725e3
.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
6.0.428 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.111 [C:\Program Files\dotnet\sdk]
8.0.404 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Description
Azure Function Core Tools incorrectly default to .NET 6 (unsupported since November 12, 2024) when creating an in-process Function. It should use .NET 8 (the current LTS) instead when --target-framework is not specified.
Steps to reproduce
# This incorrectly creates a .NET 6 in-process Function, it should default to .NET 8 (that's the current LTS)
func init MyProjFolder --worker-runtime dotnet
Forcing the Function App to use .NET 8:
# This creates a .NET 8 in-process Function
func init MyProjFolder --worker-runtime dotnet --target-framework net8.0
The text was updated successfully, but these errors were encountered:
Thanks for flagging this. We have precedence from changing the default version in the isolated worker model. Updating the default for the in-process model would help with consistency and prevent folks from inadvertently landing on an unsupported version.
For whoever ends up picking this item up, this likely would be a change to the following line, with corresponding test updates:
Version
Using latest .NET 8 SDK (
8.0.404
) and Azure Function Core Tools (4.0.6610
). I removed and installed Azure Function Core Tools again after installing the latest .NET 8 SDK.Description
Azure Function Core Tools incorrectly default to .NET 6 (unsupported since November 12, 2024) when creating an in-process Function. It should use .NET 8 (the current LTS) instead when
--target-framework
is not specified.Steps to reproduce
Forcing the Function App to use .NET 8:
The text was updated successfully, but these errors were encountered: