'ノーログ' ビルドがログを指定した場所に書き込んだコマンドラインから.csprojを構築するにはどうすればよいですか?
"c:\Program Files\Microsoft Visual Studio 9.0\Common7\ide\VCSExpress" Project1.csproj /build
次が失敗したようなものでスムーズに動作するように思えますが:
このテキストを持つウィンドウを示す"c:\Program Files\Microsoft Visual Studio 9.0\Common7\ide\VCSExpress" Project1.csproj /build /Log=log.txt
を:
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
[私はVisual Studio 2008 Expressを使用しています]
だから、質問は以下のとおりです。
ログファイルがどこかに書かれていることを確実にする方法はありますか?
GUIモードでIDEを実行している場合にのみ、
/Log
スイッチが使用されますか?もしそうなら、回避策がありますか?
なぜMSBuildをビルドに使用していないのですか?「アクティブソリューション構成」を参照してください。 –
@Fyodor Soikin実際にログを書いているだけで、おそらく十分です(私はtmeでちょっとした汚れたオートメーションをやっています)。 – mlvljr
私はExpress製品に精通していませんが、他のツールを使ってログを作成する場合は、コンソール出力をファイルにリダイレクトするだけです。もちろん、これは、リダイレクトする出力があることを前提としています。 。 。 –