none
Run Project.Json PostCompile script for Debug builds only.

    Question

  • I have a postcompile script that pushes a package to my local nuget server.

    This works, however I only want to do this while I am performing a Debug build.

    What is the correct syntax to add to the start of my script line, so that I can make it only do it when \"%compile:Configuration%\" = \"Debug\" ?

    I tried adding the following to the start but it could not recognise if.

    \"if \"%compile:Configuration%\" = \"Debug\"(

    I then changed it to

    "cmd if \"%compile:Configuration%\" = \"Debug\" (

    But now my build just hangs Visual studio and I have to kill it.

    Tuesday, September 06, 2016 2:54 AM

Answers