Ok, I have found a solution. The following approach works for me:
Remove recursively bin
and obj
folders from the projects:
rm -rf **/*/bin **/*/obj
Make sure that C#
and C# Dev Kit
VS Code extensions are in release versions. For me it's 2.76.27
and 1.19.63
respectively.
For more information look at the similar GitHub thread.