home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
HowTo: Building MediaPortal with NAnt
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mr.Mitchell" data-source="post: 518" data-attributes="member: 10300"><p>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.</p><p></p><p>My current setup is using <a href="http://www.fixedsys.com/context/" target="_blank">ConTEXT </a>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...</p><p></p><p>Lets get started on the HowTo.</p><p></p><p>First download NAnt (<a href="http://nant.sourceforge.net/" target="_blank">http://nant.sourceforge.net/</a>). 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 "<a href="http://www.xs4all.nl/~wetering/mp/nant-0.85-20040520.zip" target="_blank">nant-0.85-20040520.zip</a>" which works just fine. After downloading extract it somewhere, after that it is ready to use. No extra installation is neccesary.</p><p></p><p>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.</p><p>[code]</p><p><?xml version="1.0" ?></p><p><project name="MediaPortal" default="debug"></p><p></p><p> <target name="debug"></p><p> <solution configuration="debug" solutionfile="MediaPortal.sln"></p><p> <assemblyfolders></p><p> </p><p> <includes name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" /></p><p> </p><p> <includes name="E:\Team MediaPortal\MediaPortal" /></p><p> </assemblyfolders></p><p> </solution></p><p> </target></p><p></p><p></project></p><p>[/code]</p><p>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.</p><p></p><p>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. </p><p></p><p>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.</p><p></p><p>Now you can start your newly built copy of MediaPortal.exe from "mediaportal\xbmc\bin\Debug"</p><p></p><p>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.</p><p></p><p>NOTE: Currently there is only a debug target.</p><p></p><p>Questions, suggestions. Post them here.</p></blockquote><p></p>
[QUOTE="Mr.Mitchell, post: 518, member: 10300"] 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 [url=http://www.fixedsys.com/context/]ConTEXT [/url]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 ([url]http://nant.sourceforge.net/[/url]). 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 "[url=http://www.xs4all.nl/~wetering/mp/nant-0.85-20040520.zip]nant-0.85-20040520.zip[/url]" 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> [/code] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
HowTo: Building MediaPortal with NAnt
Contact us
RSS
Top
Bottom