Hey. In Visual Studio 2012 Professional, Update 4, I can easily create a new OpenGL project by creating a new Visual C ++ project (using an empty template) and going to the NuGet package manager console and typing:
Install-Package freeglut Install-Package glew Install-Package glm
To capture libraries for freeglut, glew, and glm (a math library for headers only.)
Then I can create a simple example using these libraries: ( full example )
#include <GL/freeglut.h> #include <GL/glew.h> #include <glm/glm.hpp> int main(int argc, char *argv[]) { ... }
And then, without any additional configuration, I can click the big green build button and compile everything, links and runs (find redistributable DLL files in NuGet packages) and it works fine.
In Visual Studio 2013, the same approach does not work: VS2013 complains that it cannot find freeglut.lib:
LINK: fatal error LNK1104: cannot open file 'freeglut.lib'
I can get the project for compilation by manually editing the library path and copying the DLLs into the assembly output file, but this seems less convenient.
Interestingly, even without installing or modifying anything, Visual Studio seems smart enough to know what to look for freeglut.lib, but it doesn't seem to know where to find it.
Is this a problem for each package, or has VS2013 changed something about how Visual Studio handles NuGet packages?