Skip to content

Commit e095620

Browse files
committed
Fix NpmRunBuild condition
1 parent 2e14e75 commit e095620

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Elastic.Markdown/Elastic.Markdown.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232
2. Run npm run build before building the .NET project.
3333
MSBuild runs NpmInstall before this task because of the DependsOnTargets attribute.
3434
-->
35-
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
36-
<Exec Condition="DotNetWatchBuild == false" Command="npm run build" WorkingDirectory="$(MSBuildThisFileDirectory)" ConsoleToMsBuild="true">
35+
<Target
36+
Name="NpmRunBuild"
37+
Condition="'$(DotNetWatchBuild)'=='false'"
38+
DependsOnTargets="NpmInstall"
39+
BeforeTargets="BeforeBuild"
40+
>
41+
<Exec Command="npm run build" WorkingDirectory="$(MSBuildThisFileDirectory)" ConsoleToMsBuild="true">
3742
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
3843
</Exec>
3944
</Target>

0 commit comments

Comments
 (0)