I created the azure functions V4 with .net 6 in Visual Studio 2022. It's working fine. When I try to run the same solution from Rider, I am setting the below run time error.
Any help on this is highly appreciated.
A host error has occurred during startup operation 'b6530d87-107e-4b70-b589-4c5fc84cb2e9'.
[2021-12-15T17:52:00.944Z] System.Private.CoreLib: Could not load type 'System.Diagnostics.DebuggerStepThroughAttribute' from assembly 'System.Runtime, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Value cannot be null. (Parameter 'provider')