I came across a variation of this where I got the error but <ProjectTypeGuids> was not in my .csproj file. This occurred because at some point the .csproj file was upgraded but the packages.config file was not deleted. So, the fix was to simply delete packages.config.