How to run MSBuild from Powershell without spawning msbuild.exe process?

后端 未结 5 1198
旧时难觅i
旧时难觅i 2020-12-28 21:15

I am considering running MSBuild from a Powershell script by tapping directly to the MSBuild assemblies (as opposed to looking up MSBuild install path and starting msbuild.e

5条回答
  •  北海茫月
    2020-12-28 21:27

    A different and potentially more usable approach would be to make an msbuild cmdlet. MsBuild has a nice API and there are many samples out there on how to use it from a compiled language such as C#/VB. It would be very easy to build a cmdlet that would provide a much nicer syntax to your powershell scripts.

提交回复
热议问题