Search code examples
asp.netpublishpsake

How to publish web site using PSAKE


Is there a way to publish asp.net web application using PSAKE, just like visual studio do?


Solution

  • In Psake you have the function exec to run programs. With this task/function you can build, compile and publish your web app

    You can execute asp_compiler to build you project/solution

    Exec { aspnet_compiler.exe }
    

    Refer to the msdn site for the exact syntax and parameters for the aspnet_compiler.exe

    I have found an example that show how to do it :

    http://blog.developwithpassion.com/2008/10/30/interested-in-trading-in-your-nant-builds-a-teaser/