How to invoke MSBuild from PowerShell using & operator?

后端 未结 4 640
陌清茗
陌清茗 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条回答
  •  清酒与你
    2020-12-15 17:10

    That works well for me:

    PS> cmd.exe /c 'C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe' /target:Clean /target:Build 'C:\some\project\or\other\src\Solution.sln'
    

提交回复
热议问题