nmake vs msbuild

來源:互聯網
上載者:User

nmake 和 msbuild都是兩種命令列自動編譯系統,功能大同小異。現在的vs 2005已經採用了msbuild系統。
nmake的格式採用的是比較直白的,檔案很簡單:
proxy.obj: ..\proxy.c ..\putty.h ..\network.h ..\proxy.h ..\puttyps.h \
        ..\misc.h ..\windows\winstuff.h ..\mac\macstuff.h \
        ..\macosx\osx.h ..\unix\unix.h ..\puttymem.h ..\tree234.h \
        ..\windows\winhelp.h ..\charset\charset.h
    cl $(COMPAT) $(CFLAGS) $(XFLAGS) /c ..\proxy.c

而msbuild使用的是xml檔案:
    <Compile Include="Form1.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Form1.Designer.cs">
      <DependentUpon>Form1.cs</DependentUpon>
    </Compile>

對比二者,雖然msbuild是後起之秀,但感覺他相比前者更難於用手工編輯,如果純粹是用ide維護這個檔案當然沒問題,但是卻給需要手動設定的開發人員製造了麻煩。需要閱讀/輸入冗長的xml tag。msbuild可能有帶來很多創新,但是不得不遺憾得說他更加遠離人類了。
而且網上也有人開始抱怨:

http://blog.manno.org/2006/05/18/why-msbuild/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.