To get the pthread package from Developer command prompt.
nuget restore hamlibTest.vcxproj -PackagesDirectory packages