1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
    fitzee81 is on a distinguished road

      0  

    Default Unanswered: Visual Studio Post-Build event command line does not work with Sencha

    Unanswered: Visual Studio Post-Build event command line does not work with Sencha


    I installed Sencha and everything seems to work when I work directly with the command line. For example, in my command line, when I go to the path with my senchasdk and type - "sencha app build production" - the site begins to minify the correct files.

    If I put this call in a .bat file and call the batch file from the command line, it also works correctly.

    However, I run into problems when I try to call sencha from my Visual Studio Post-build event command line. If I have "sencha app build production" in the post-build event command line, I get the error: sencha app build production" exited with code 9009.

    I tried going to the path such as:
    cd $(SolutionDir)
    sencha app build production
    but this throws the same error.

    I tried calling the batch file by having this in the post-build event command line:
    $(SolutionDir)minify.bat
    This calls the batch file, but when it hits the line: sencha app build production, I get an error message of:
    'sencha' is not recognized as an internal or external command,
    operable program or batch file.

    My batch file simply contains this:
    sencha app build productionecho "test"
    echo "END"


    Anyone else run into this problem?
    Thanks!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,118
    Vote Rating
    453
    Answers
    3160
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    What user is the file being executed as? I'm thinking it's a different user where the path for Cmd is not there.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread