ASP.NET Core 2: missing ApplicationInsights

前端 未结 5 1636
感动是毒
感动是毒 2021-02-01 16:03

I am publishing ASP.NET Core 2 application and seeing the following error.

Error:
  An assembly specified in the application dependencies manifest (MyApp.deps.js         


        
5条回答
  •  不思量自难忘°
    2021-02-01 17:09

    I want to add something to @pallxk's answer. He gave me the hints to solve my issue. I'm familiar with using Visual Studio but not so familiar with VS Code.

    With Visual Studio I had no issue but with VS Code as he mentioned I have to update the Nuget dependencies manually. I didn't know where to update them. They were located under my project folder in :

    .vscode/launch.json
    

    I have to update

    "program": "${workspaceFolder}/Ghaseel.RestApi/bin/Debug/netcoreapp2.1/myProject.dll
    

    to this

     "program": "${workspaceFolder}/Ghaseel.RestApi/bin/Debug/netcoreapp2.2/myProject.dll
    

    I hope this may help someone else to solve their issues.

提交回复
热议问题