Error: "You must have the .NET Core SDK installed to perform this operation." when creating a new project in Visual Studio Code using Azure Functions and C# language

hwajeong lee 30 Reputation points
2023-11-26T09:12:13.5+00:00

I'm encountering an error when I try to create a new project in Visual Studio Code using Azure Functions and selecting C# as the language. The error message says "You must have the .NET Core SDK installed to perform this operation. See here for supported versions." I already have version 8.0 of the .NET Core SDK installed and running "dotnet --list-sdks" shows "8.0.100 [/usr/local/share/dotnet/sdk]". What could be the issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-11-28T14:37:25.6366667+00:00

    hwajeong lee Thanks for posting your question in Microsoft Q&A. Can you validate if you are using Functions 4.x Isolated worker process model when creating Azure Functions since that only supports .NET 8.0? See Supported versions for more info and make sure to set the right runtime (V4) for both project as well as Azure Function core tools. I see there is a similar discussion in vscode-azurefunctions repo (other issues) regarding this error message.

    Also, note that .NET 8 SDK support was added in v1.13.0 and you need to use that version or higher version of Azure Function extension in VS code.

    User's image

    If you still need assistance or face issues, please submit a new issue in vscode-azurefunctions repo with details such as Functions runtime, Azure Function Core Tools version, VS code Azure Function extension version etc. Our product team can review and assist accordingly (also right place to track functions extension related issues).

    I hope this helps and let me know if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.