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
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.