add condition to automatically download nuGet