I'm having trouble porting a C++ library to Windows Phone via the command line with nmake
. The makefile invokes cl.exe
and link.exe
using Visual Studio's x86_arm
tools and has basic recipes.
I'm using a Visual Studio Phone project as a reference. Under Process Monitor, I noticed Visual Studio uses a response file rather than driving the compiler directly. That is, Visual Studio invoke cl.exe <response file>
.
According to the Compiler Options, Response Files (the @
option):
A response file can contain any commands that you would specify on the command line. This can be useful if your command-line arguments exceed 127 characters.
This might be my problem with the port since my command line is over 500 characters (7+ lines with wrap in the console).
Visual Studio uses a temporary response file written to AppData
file that is immediately deleted. I want to inspect Visual Studio's response file and try to use one.
Question: How can I capture or inspect a Visual Studio response file?