I want to add something to @pallxk's answer. He gave me tips to solve my problem. I am familiar with using Visual Studio, but not very familiar with VS Code.
I had no problems with Visual Studio, but with VS Code, as he mentioned, I have to update Nuget dependencies manually. I did not know where to update them. They were in my project folder in:
.vscode/launch.json
I have to update
"program": "${workspaceFolder}/Ghaseel.RestApi/bin/Debug/netcoreapp2.1/myProject.dll
to that
"program": "${workspaceFolder}/Ghaseel.RestApi/bin/Debug/netcoreapp2.2/myProject.dll
I hope this can help someone else solve their problems.
source share