VS 的编译过程对程序员来说是透明的。我们不能看到编译的选项和链接的过程。如果想看到和makefile 一样的编译过程,请使用MSBUILD 命令。VS2010 -> VS tools -> VS x64 Win64 Command Prompt 执行MSBUILD命令。 一般常用的就是3种命令:
>msbuild.exe [project file]/t:build >build.txt
>msbuild.exe [project file]/t:clean >build.txt
>msbuild.exe [project file] /t:rebuild >build.txt
D:\Projects\DLL>msbuild dll.sln /t:rebuild Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.237] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 11/2/2012 3:58:36 PM. Project "D:\Projects\DLL\dll.sln" on node 1 (rebuild target(s)). ValidateSolutionConfiguration: Bu |