Your project does not reference ".NETFramework,Version=v4.7.2" framework code example
Example: your project does not reference .netframework version=v4.7.2
Clean solution
Clean folder "packages"
Delete folder "bin"
Delete folder "obj"
Clean solution
Clean folder "packages"
Delete folder "bin"
Delete folder "obj"