Files created during the INSTALL step are not deployed

Pure Krome's Avatar

Pure Krome

09 Feb, 2015 05:58 AM

Hi,

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 ...

    back!

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

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

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

    yay!

  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

Generic

? 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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM