Is it worth learning to use MSBuild?

前端 未结 10 2265
清酒与你
清酒与你 2021-02-18 15:20

I simply wondered whether people thought it was worth learning to use the MSBuild syntax in order to customise the build process for a .net project, or whether it is really not

10条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-18 15:50

    MSBuild is absolutely worth the time to learn. After the initial learning curve (which might be very steep actually) it becomes fairly easy to do the most common build automation steps.

    • building assemblies in RELEASE mode
    • signing assemblies with strong name
    • running unit tests
    • modifying xml files / Web.config-s on the fly
    • modifying the version number of the assemblies
    • validating FxCop / StyleCop etc...
    • automated deployment - create SQL databases, IIS websites, windows services etc...

提交回复
热议问题