I'm just trying to get into NAnt for my build processes, and successfully have a script that sets up a build dir, and compiles a sln file into it. My question now is, on a day to day basis how would you execute the NAnt script from Visual Studio. I'm used to just hitting Ctrl + Shift + B and then just refreshing my browser (I have a local site setup pointing to the project folder), but whats the best way to intergrate the NAnt script with VS?
Many thanks
Matt
NAnt is a free and open source software tool for automating software build processes. It is similar to Apache Ant, but targeted at the . NET environment rather than Java.
nant. Runs NAnt and builds the project in debug mode (the default). nant clean. Runs NAnt and removes the compiled files if they exist. nant -D:debug=false.
Depends what you want to do with it.
You can add it as a post/pre build event, if that's your thing (I do that for some things), but mostly I use NAnt to build on the buildserver, so it doesn't serve much purpose on the local machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With