From: JAW <gwa...@wo...> - 2003-10-02 17:37:25
|
Ok this is what I did: 1. Added the following to the Nant.exe.config file <frameworkinfo name="mono-1.1" description="gnome projects port of the .Net Framework" version="0.26" runtimeengine="mono.exe" csharpcompilername="mcs" basiccompilername="mbas" jsharpcompilername="" jscriptcompilername="" resgenname="monoresgen"> <sdkdirectory dir="C:\Program Files\Mono-0.26\bin" /> <frameworkdirectory dir="C:\Program Files\Mono-0.26\bin" /> <frameworkassemblydirectory dir="C:\Program Files\Mono-0.26\lib" /> </frameworkinfo> 2. Added this to the SharpCvsLib.build file. <target name="set-env-mono-1.1"> <property name="nant.settings.currentframework" value = "mono-1.1"/> </target> 3. Copied the "<target name="build-mono-1.0-linux">" Tag set in each of the Console.build, SharpCvsLib.build and Tests.build file to "<target name="build-mono-1.1">" Ran nant with the following parameters: D:\sharpcvslib>c:\nant\bin\nant /k:mono-1.1 Starting to get errors about not being able to find the corlib.dll file. I remember in the past that when using the mono compiler, if an assembly was not found I had to specify it using the -lib:<path> option. Now the question is how do I define this in the nant build file ? Oh it just goes on and on .................... But I am close. Jerry Clayton Harbour wrote: >Hi Jerry, > >Try a nant -help and there are a number of switches, one of them being >the default framework. I believe the -defaultframework can be used to >specify which framework is being used. > >I say "I believe" because there is some distinction between which >framework the nant binary is running on and which framework you are >building with. I may be getting the two confused and this may be for >the binary...but I don't think so. > >So specifying the following: > NAnt -defaultframework:net-1-1 run-tests >Should build your binaries and run the "run-test" target in the nant >build file (which depends on a total build, "build.all" target I >believe). > >As far as setting up the mono framework on Windows what you are going to >need to do is modify the NAnt.exe.config file. There is a section in >there on frameworks. The frameworks specified point to the dll's for >the given framework (do a search framework in this file), you just need >to specify the location on your machine of the mono framework >components. > >You will have to clean the build/bin directory in the project before you >switch frameworks. If you do not nant sees the binaries there and >thinks there is nothing to compile. > >Also the test servers that I set up may be down today. I had to reboot >and have been having problems bringing the one back up. I am going to >try one more time but I have to get going quick. Hopefully it is not a >big impact, sorry. > > >Clayton > > > >-----Original Message----- >From: JAW [mailto:gwa...@wo...] >Sent: October 2, 2003 7:34 AM >To: SharpCVSLib Developer List >Subject: [Sharpcvslib-developers] Building the code. > > I have got the build working for the 1.1 version of the Microsoft >Framework. It builds the dll's in the bin folder. Now I want to build >using Mono. What nant parameter do I need to issue to get it to start up > >the mono compiler, instead of the Microsoft compiler ? > > I also think that we need a way to tell the nant compile what target > >we are using, form the command line, so we can be a bit more >accomidating. >i.e. >nant -D:target=net-1.1 >or >nant -D:target=mono-0.35 > >Thanks ! >Jerry > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Sharpcvslib-developers mailing list >Sha...@li... >https://lists.sourceforge.net/lists/listinfo/sharpcvslib-developers > > > |