Azure Function doesn't run in debug for netcoreapp 3.1 with visual studio 16.11.2 throws missing assembly in fun.deps.json

Arsalan Ahmed 96 Reputation points
2021-08-29T10:06:02.48+00:00

Visual Studio version : 16.11.2
dotnet sdks installed:
2.1.818
3.1.412

On running function app in debug mode throws:

Error:
An assembly specified in the application dependencies manifest (func.deps.json) was not found:
package: 'Microsoft.AspNet.WebApi.Client', version: '5.2.6'
path: 'lib/netstandard2.0/System.Net.Http.Formatting.dll'

Solutions tried:

1- Installing hosting bundle for 3.1 and 2.1 SDKs
2- Reinstalling SDKs

Function app targetting 2.1 are running fine.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,512 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful