Exit code: '137' Error: 'Failed to initialize CoreCLR in Visual Studio Code

Kim Strasser 1,321 Reputation points
2023-04-21T09:35:24.9233333+00:00

I get this error when I click on F5(Start Debugging) in my project: Bildschirmfoto 2023-04-21 um 11.16.57

In the Terminal window I have this:

MSBuild version 17.5.1+f6fdcf537 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  Myazurefunctions -> /Users/name/Myazurefunctions/bin/Debug/netcoreapp3.1/bin/Myazurefunctions.dll
/Users/name/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.1.8/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(37,5): warning : Failed to initialize CoreCLR, HRESULT: 0x80004005 [/Users/name/Myazurefunctions/Myazurefunctions.csproj]
  Debug output from extension.json generator:
  
/Users/name/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.1.8/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(37,5): error : Metadata generation failed. Exit code: '137' Error: 'Failed to initialize CoreCLR, HRESULT: 0x80004005' [/Users/name/Myazurefunctions/Myazurefunctions.csproj]

 *  The terminal process "dotnet 'build', '/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

I have already tried to delete my project's bin and obj folders on my Mac but the problem still exists when I open Visual Studio Code. My project looks like this: Bildschirmfoto 2023-04-21 um 11.23.53

How can I solve this problem?

Developer technologies Visual Studio Debugging
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-04-21T10:15:32.48+00:00

    Hi @Kim Strasser

    Welcome to Microsoft Q&A! 

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio Debugging” is related to Visual Studio, for more questions about Visual Studio Code, please post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

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.