pre,publish,pre,deploy,run,bat,file

Kubilay 10/12/2018 0

if you want to run a .bat file before publishing your website you need to do this updates to your publish profile. In property group element you need to add PipelineDependsOn tag, and then in project tag you need to add target tag.

C#
  <PipelineDependsOn>   BuildWebPack;   $(PipelineDependsOn); </PipelineDependsOn>
  </PropertyGroup> 

<Target Name="BuildWebPack" BeforeTargets="BeforePublish"> <Message Text="Building webpack" Importance="high"/> <Exec Command="cmd /K $(ProjectDir)\BuildEvents\webpackBuild.bat" /> <!--<Exec Command="powershell.exe $(ProjectDir)\BuildEvents\webpackBuild.bat" />--> </Target>

Report Bug

Please Login to Report Bug

Reported Bugs

Comments

Please Login to Comment

Comments