How do I call the & call command powershell in windows runners

lprada October 19, 2022

Hi I need to execute this in a windows runner, how do I put this in my yaml file?

& 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe'

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2022

Hi @lprada

As far as I know, you can directly use MSBuild.exe without specifying the path.

May I kindly ask what error/issue you're currently facing?

Regards,
Mark C

lprada October 25, 2022

I was able to call the executable, what I need right now is to put the path to the MSBuild.exe variable per enviroment. Something like this

- $Env:MSBUILD_PATH\MSBuild.exe 

but this does not work.

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 26, 2022

Hi @lprada,

I see. I believe you'll have to programmatically add the path to Windows ENV.
Here's what I found that may be relevant to your use case. - https://gist.github.com/nicolasdao/b1623cb3220be3b6dc8fe04b2b2bfe32?permalink_comment_id=3997314#gistcomment-3997314

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events