NuGet微软官网介绍 https://docs.microsoft.com/zh-cn/nuget/
先看:基于vs2015中nuget插件的opengl安装 https://blog.youkuaiyun.com/LYKymy/article/details/83021296
补充:
1 上文中的几个包都要安装,因为有依赖关系。
2 都装了之后就可以直接用空项目(注意不是Win32空项目)运行上文中的例子了。
3 有时候会连接失败:
1)错误提示:Could not connect to the feed specified at ‘https://nuget.org/api/v2/’. Please verify that the package source (located in the Package Manager Settings) is valid and ensure your network connectivity.
2)解决:参考https://www.c-sharpcorner.com/UploadFile/97fc7a/nuget-package-manager-error-resolution/
运行效果: