This error occured to me today, after I cloned an old-ish project which was still configured to run on asp.net Core Rc2. After I installed 1.1 and changed all the variables the error persisted.
The solution in my case was to reboot. The installation of Asp.net Core 1.1 wasn't finished yet.