NAnt is a commandline make utility. The main advantage above C# Builder or #Develop is that it uses the Visual Studio .NET files that are in CVS, so no importing/conversion is neccesary. The obvious disadvantage is that it is not an IDE.
My current setup is using ConTEXT as the editor, with a shortcutkey that starts NAnt and a compile-output-parsing-rule so I can jump to errors that occured during the compile. Next to that I use the DbgCLR debugger that comes with the .NET SDK for setting breakpoints, stepping etc...
Lets get started on the HowTo.
First download NAnt (http://nant.sourceforge.net/). Do NOT download 0.84 since the solution task does not work correctly in that build. Use a nightly build instead. I am currently using "nant-0.85-20040520.zip" which works just fine. After downloading extract it somewhere, after that it is ready to use. No extra installation is neccesary.
Now we have to make a build file for NAnt to use. The file looks like this, the current CVS of Media Portal has a mediaportal.build file that is similar to the one below.
The paths between the <assemblyfolders> tags are ONLY needed if Nant is not able to find some assemblies. I had this problem in the past, but after installing the new .NET and DirectX SDKs everything was fine. If you do not need them you can remove the <assemblyfolders> tags and everything between it.
Now you can open a command window and go the the place where you created the MediaPortal.build file. Now just run Nant and it will detect the build file and start compiling everyting.
After it finished compiling you should copy all files and folders (EXCEPT for PostBuild.bat !!!) from the "mediaportal\xbmc\bin\Release" folder to the "mediaportal\xbmc\bin\Debug" folder. You have to do this only once.
Now you can start your newly built copy of MediaPortal.exe from "mediaportal\xbmc\bin\Debug"
The next time you want to compile just start NAnt again and it will only recompile the changed stuff. After this you can start the MediaPortal.exe again to check your new stuff.
NOTE: Currently there is only a debug target.
Questions, suggestions. Post them here.
My current setup is using ConTEXT as the editor, with a shortcutkey that starts NAnt and a compile-output-parsing-rule so I can jump to errors that occured during the compile. Next to that I use the DbgCLR debugger that comes with the .NET SDK for setting breakpoints, stepping etc...
Lets get started on the HowTo.
First download NAnt (http://nant.sourceforge.net/). Do NOT download 0.84 since the solution task does not work correctly in that build. Use a nightly build instead. I am currently using "nant-0.85-20040520.zip" which works just fine. After downloading extract it somewhere, after that it is ready to use. No extra installation is neccesary.
Now we have to make a build file for NAnt to use. The file looks like this, the current CVS of Media Portal has a mediaportal.build file that is similar to the one below.
Code:
<?xml version="1.0" ?>
<project name="MediaPortal" default="debug">
<target name="debug">
<solution configuration="debug" solutionfile="MediaPortal.sln">
<assemblyfolders>
<includes name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" />
<includes name="E:\Team MediaPortal\MediaPortal" />
</assemblyfolders>
</solution>
</target>
</project>
Now you can open a command window and go the the place where you created the MediaPortal.build file. Now just run Nant and it will detect the build file and start compiling everyting.
After it finished compiling you should copy all files and folders (EXCEPT for PostBuild.bat !!!) from the "mediaportal\xbmc\bin\Release" folder to the "mediaportal\xbmc\bin\Debug" folder. You have to do this only once.
Now you can start your newly built copy of MediaPortal.exe from "mediaportal\xbmc\bin\Debug"
The next time you want to compile just start NAnt again and it will only recompile the changed stuff. After this you can start the MediaPortal.exe again to check your new stuff.
NOTE: Currently there is only a debug target.
Questions, suggestions. Post them here.