Mientras que el 'no-log' construir parece funcionar sin problemas con algo como¿Cómo construye un .csproj desde la línea de comandos que tiene un registro escrito en una ubicación especificada?
"c:\Program Files\Microsoft Visual Studio 9.0\Common7\ide\VCSExpress" Project1.csproj /build
la siguiente falla:
"c:\Program Files\Microsoft Visual Studio 9.0\Common7\ide\VCSExpress" Project1.csproj /build /Log=log.txt
que muestra una ventana con este texto:
Missing switch argument. Configuration name required for /build switch.
Use: vcsexpress [solutionfile | projectfile | anyfile.ext] [switches]
The first argument for vcsexpress is usually a solution file or project file. You can also use any other file as the first argument if you want to have the file open automatically in an editor. When you enter a project file, the IDE looks for an .sln file with the same base name as the project file in the parent directory for the project file. If no such .sln file exists, then the IDE looks for a single .sln file that references the project. If no such single .sln file exists, then the IDE creates an unsaved solution with a default .sln file name that has the same base name as the project file.
Command line builds: vcsexpress solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ] Available command line switches:
/Log Logs IDE activity to the specified file for troubleshooting. /ResetSettings Restores the IDE's default settings, optionally resets to the specified VSSettings file. /SafeMode Launches the IDE in safe mode loading minimal windows.
Product-specific switches:
To attach the debugger from the command line, use: VsJITDebugger.exe -p
[ Estoy usando Visual Studio 2008 Express]
Por lo tanto, las preguntas son:
¿Hay una manera de garantizar que el archivo de registro se escribe en alguna parte?
¿O se supone que el conmutador
/Log
se usa cuando el IDE se ejecuta en modo GUI? Si es así, ¿hay soluciones?
¿Por qué no usa MSBuild para construir? –
@Fyodor Soikin En realidad, basta con tener un registro escrito probablemente sea suficiente (estoy haciendo solo una pequeña y sucia automatización a la vez). – mlvljr
No estoy familiarizado con el producto Express, pero cuando quiero crear un registro con otras herramientas, simplemente redirijo la salida de la consola a un archivo. Esto supone, por supuesto, que hay algún resultado para redirigir. . . –