64位移植: 显示详细的build信息

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:

  Building solution configuration "Debug|X64".
ValidateProjects:
  The project "GetProcAddress" is not selected for building in solution configuration "Debug|x64".
Project "D:\Projects\DLL\dll.sln" (1) is building "D:\Projects\DLL\DLLTest\DLLTest.vcxproj" (2) on node 1 (Rebuild target(s)).
_PrepareForClean:

  Deleting file "x64\Debug\DLLTest.lastbuildstate".
InitializeBuildStatus:
  Creating "x64\Debug\DLLTest.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\AMD64\CL.exe /c /Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D DLLTEST_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yc"StdAfx.h" /Fp"x64\Debug\DLLTest.pch" /Fo"x64\Debug\\" /Fd"x64\Debug\vc100.pdb" /Gd /TP /errorReport:queue stdafx.cpp
  stdafx.cpp
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\AMD64\CL.exe /c /Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D DLLTEST_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc100.pdb" /Gd /TP /errorReport:queue dllmain.cpp
  dllmain.cpp
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\AMD64\CL.exe /c /Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D DLLTEST_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"StdAfx.h" /Fp"x64\Debug\DLLTest.pch" /Fo"x64\Debug\\" /Fd"x64\Debug\vc100.pdb" /Gd /TP /errorReport:queue DLLTest.cpp
  DLLTest.cpp
ManifestResourceCompile:
  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\rc.exe /nologo /fo"x64\Debug\DLLTest.dll.embed.manifest.res" x64\Debug\DLLTest_manifest.rc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\AMD64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\Projects\DLL\x64\Debug\DLLTest.dll" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"x64\Debug\DLLTest.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\Projects\DLL\x64\Debug\DLLTest.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Projects\DLL\x64\Debug\DLLTest.lib" /MACHINE:X64 /DLL x64\Debug\DLLTest.dll.embed.manifest.res
  x64\Debug\dllmain.obj
  x64\Debug\DLLTest.obj
  x64\Debug\stdafx.obj
     Creating library D:\Projects\DLL\x64\Debug\DLLTest.lib and object D:\Projects\DLL\x64\Debug\DLLTest.exp
  DLLTest.vcxproj -> D:\Projects\DLL\x64\Debug\DLLTest.dll
Manifest:
  Deleting file "x64\Debug\DLLTest.dll.embed.manifest".
  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe /nologo /verbose /out:"x64\Debug\DLLTest.dll.embed.manifest" /manifest x64\Debug\DLLTest.dll.intermediate.manifest
  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\rc.exe /nologo /fo"x64\Debug\DLLTest.dll.embed.manifest.res" x64\Debug\DLLTest_manifest.rc
LinkEmbedManifest:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\AMD64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\Projects\DLL\x64\Debug\DLLTest.dll" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"x64\Debug\DLLTest.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\Projects\DLL\x64\Debug\DLLTest.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Projects\DLL\x64\Debug\DLLTest.lib" /MACHINE:X64 /DLL x64\Debug\DLLTest.dll.embed.manifest.res
  x64\Debug\dllmain.obj
  x64\Debug\DLLTest.obj
  x64\Debug\stdafx.obj
     Creating library D:\Projects\DLL\x64\Debug\DLLTest.lib and object D:\Projects\DLL\x64\Debug\DLLTest.exp
  DLLTest.vcxproj -> D:\Projects\DLL\x64\Debug\DLLTest.dll
FinalizeBuildStatus:
  Deleting file "x64\Debug\DLLTest.unsuccessfulbuild".
  Touching "x64\Debug\DLLTest.lastbuildstate".
Done Building Project "D:\Projects\DLL\DLLTest\DLLTest.vcxproj" (Rebuild target(s)).
Done Building Project "D:\Projects\DLL\dll.sln" (rebuild target(s)).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.21

参考链接:

MSBuild Command-Line Reference

你可能感兴趣的:(64bit)