File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments