Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

lprada
Contributor
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
Contributor
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
Product Admin
TAGS
atlassian, state of devex 2025, developer experience, devex report, developer productivity, ai in software development, engineering challenges, team collaboration, internal developer platform, time management, developer survey, space framework

Atlassian State of Developer Experience Report 2025

AI is reshaping the dev experience, with faster builds but adding more friction. See what 3,500 developers and managers say about productivity, tools, and team alignment in Atlassian’s State of Developer Experience report 2025.

Explore the report
AUG Leaders

Atlassian Community Events