- install lastest nant from http://nant.sourceforge.net/. Install help: http://nant.sourceforge.net/release/latest/help/introduction/installation.html or search nant.bat.
- Copy schema file from nant/schema/nant.xsd to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\schemas\xml\nant.xsd
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Editors\{412B8852-4F21-413B-9B47-0C9751D3EBFB}\Extensions
- Add a DWORD name of build and value of 29 hex.
- Create the build file by convention it’s named as project_name.build.
- Use Visual Studio to open the file and add the following:
<?xml version=”1.0″?>
<project name=”your_project_name” default=”build” basedir=”.” xmlns=”http://nant.sf.net/release/0.85/nant.xsd”>
</project> Make sure the xmlns attribute matches your namespace in the nand.xsd file. - Save and close it then open it again. Now you should have intellisense
Filed under: Uncategorized | Tagged: NAnt, Visual Studio