Concatenate script files and line-ending problems

Last post 10-24-2007 3:21 AM by acl123. 1 replies.

Sort Posts:

  • Concatenate script files and line-ending problems

    10-24-2007, 12:47 AM
    • Member
      55 point Member
    • acl123
    • Member since 01-30-2007, 6:24 PM
    • Posts 64

    Hi,

    I have set up a post-build event to concatenate various javascript files into one file. It executes a batch file that contains the following command -

     

    copy myscriptA.js + myscriptB.js fullscript.js

     
    However after this executes the line endings are messed up and I get javascript syntax errors.

    Does anyone know a good solution to this? 

  • Re: Concatenate script files and line-ending problems

    10-24-2007, 3:21 AM
    Answer
    • Member
      55 point Member
    • acl123
    • Member since 01-30-2007, 6:24 PM
    • Posts 64

    Fixed this myself - I need to add the /B option to the copy command.

    Visual Studio still complains about the line endings but I don't get funny characters causing javascript syntax errors. 

Page 1 of 1 (2 items)
Microsoft Communities