How to use the visual studio build event to merge two files?

Jawab How to use the visual studio build event to merge two files?

  • Thursday, February 02, 2012 9:01 AM
     
      Has Code

    Dear all,

    Recently I have made a website, it use the visual studio 'build event' to call a executable file to compress the JavaScript file.

    The command is almost like this,

     

    $(SolutionDir)\Bin\JsCrunch.exe -hc $(ProjectDir)\scripts\src\utl.js -o $(ProjectDir)\scripts\utl.js

     

    It means that there is a Js original code file, under the root of the website '/script/src' and make the new js compressed file at '/script;

    so my question is now I have another JS file called 'test.js' and it is at the   '/script/src' , I want to compress it and merge this file with the utl.js file  and locate them under '/script'.

    how the write the command to do the things I expected?

     

     


    One day a small demo!

All Replies