Late, but hopefully a solution can help someone else.
You need to create a new project of the same type. Then open a new project file (first upload the project and right-click to edit the .csproj file).
Then replace the <VisualStudio> section in your old project with content from the newly created. Then reload the old project and everything should work.
Filip source share