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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM