Files created during the INSTALL step are not deployed

Pure Krome's Avatar

Pure Krome

09 Feb, 2015 05:58 AM


during our Install build step, we use node to do some requirejs and gulp stuff. Part of this process, is that it creates 2 files

-application-<someHash>.js - application-<someHas>.css

so it creates those two files, with some random hash in the middle. Works great ... until deployment time :(

Is there a way to get MSDeploy to know that those two new, dynamically created files, need to be included in the deploy process?

eg. copy those two files to ~\Content\public\.

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Feb, 2015 06:14 AM

    Feodor Fitsner's Avatar
  2. 2 Posted by Pure Krome on 09 Feb, 2015 07:06 AM

    Pure Krome's Avatar

    Ack! Delving into the worst part of Visual Studio :: the xml proj or sln files :(

    /me hobbles off, dejected ...


    Oh wow. it worked! So this is what I did for all those reading this from their google searching..

    <Target Name="BeforeBuild">
          <Content Include="Content\public\*.css" />
          <Content Include="Content\public\*.js" />

    and that picks up the application.<hash>.css and js file that was made during the node install funky pew pew step.


  3. Pure Krome closed this discussion on 09 Feb, 2015 07:07 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac