ITNOA
As I know in msbuild 16.5+ we can restore all missing packages (packages.config and reference) with msbuild -t:restore -p:RestorePackagesConfig=t
msbuild 16.5+
msbuild -t:restore -p:RestorePackagesConfig=t