Skip to content

Commit

Permalink
Fix NpmRunBuild condition
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Feb 2, 2025
1 parent 2e14e75 commit e095620
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Elastic.Markdown/Elastic.Markdown.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@
2. Run npm run build before building the .NET project.
MSBuild runs NpmInstall before this task because of the DependsOnTargets attribute.
-->
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
<Exec Condition="DotNetWatchBuild == false" Command="npm run build" WorkingDirectory="$(MSBuildThisFileDirectory)" ConsoleToMsBuild="true">
<Target
Name="NpmRunBuild"
Condition="'$(DotNetWatchBuild)'=='false'"
DependsOnTargets="NpmInstall"
BeforeTargets="BeforeBuild"
>
<Exec Command="npm run build" WorkingDirectory="$(MSBuildThisFileDirectory)" ConsoleToMsBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
</Target>
Expand Down

0 comments on commit e095620

Please sign in to comment.