Search code examples
c++visual-studio-2010managed

Invoking MSVC compiler from VS extension


Is it possible to invoke cl.exe, the MSVC++ compiler, from inside a Visual Studio extension? I'm using VS2010 and not bothered about maintaining compatibility for 2008/2005. I've hunted through MSDN and had a poke through my DTE object, but not found anything of use. The documentation on what you can do with this stuff is kinda sparse.


Solution

  • You certainly can invoke cl.exe from the normal command line if you simply set up the appropriate environment variables.