your project does not reference .netframework version=v4.0 profile=client add a reference to code example
Example: your project does not reference .netframework version=v4.7.2
Clean solution
Clean folder "packages"
Delete folder "bin"
Delete folder "obj"