How to invoke MSBuild from PowerShell using & operator?

后端 未结 4 642
陌清茗
陌清茗 2020-12-15 16:42

I\'ve just tested this on PowerShell v1.0. Setup is as follows:

 Id CommandLine
 -- -----------
  1 $msbuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v3.5\         


        
4条回答
  •  猫巷女王i
    2020-12-15 17:09

    You can also try using the free Invoke-MsBuild powershell script/module. This essentially gives you an Invoke-MsBuild PowerShell cmdlet that you can call instead of trying to invoke the msbuild.exe manually yourself.

提交回复
热议问题