I am using VS 2015.
Your project is not referencing the \".NETFramework,Version=4.5\" framework. Add a reference to \".NETFramework,Version=4.5\" in
I found that a rogue project.lock.json was causing this issue for me. Once I deleted the file, the problem went away.
Here is some documentation on project.lock.json.
Some further advice would be to ensure that project.lock.json is ignored in your git ignore file, and to try a full git clean. Make sure you understand the implications of a Git clean before you do that though.