Forums

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

MSBuild Exec not running in Pipelines

Phil Fitzgerald March 7, 2019

This is my first time trying to use Pipelines.  I am building a .Net Core application.  I am getting this error from the Pipelines build:

error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.

I see that this error is coming from my .csproj file.  The MSbuild Exec seems to not be working.

<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />

Is this a Pipeline issue, or a Docker issue?  Does anyone know how to get around this issue?

1 answer

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

Hi @Phil Fitzgerald

I'd make sure that the image you're using has node installed, if that doesn't help I would need some additional information to help debug your issue.

Could you share your YML and raw Pipeline Log?

Thanks,
Peter

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events