Visual-studio – How to integrate NAnt with Visual Studio

nantvisual studio

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

Best Answer

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.