vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

Error: Could not load file or assembly 'System.Linq.Expressions' using .NET 8 in-proc when debugging

Open alexweininger opened this issue 7 months ago • 5 comments

This is on Apple M2, so could very well be related to ARM support.

Repro steps:

  1. Create new Functions project, select C#, and .NET 8 (not isolated)
  2. Run the build task using this tree item image
  3. Start debugging with image

It started debugging with no issues 4. Making a request the Function trigger fails with an error:

image

Executed 'GetJoke' (Failed, Id=0a654229-8734-490b-ab13-0d83f022b6a8, Duration=68ms) [2024-06-27T18:59:26.333Z] System.Private.CoreLib: Exception while executing function: GetJoke. jokes-api: Could not load file or assembly 'System.Linq.Expressions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

alexweininger avatar Jun 27 '24 19:06 alexweininger