question

ArsalanAhmed-3053 avatar image
0 Votes"
ArsalanAhmed-3053 asked ArsalanAhmed-3053 answered

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

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-functionsdotnet-aspnet-core-webapi
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ArsalanAhmed-3053 avatar image
0 Votes"
ArsalanAhmed-3053 answered

I am able to resolve it by removing function-core-tools directory from my %AppData% folder. VS downloaded the core tools again and it worked.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.