Title: R: [Nant-users] how-to specify the framework version to use in order to build ?
Alberto,
 
this means that NAnt was not able to determine the location of the .NET Compact Framework, and therefor it does not consider it to be a valid framework, hence the error message.

Are you sure it's installed on your system ? Check the NAnt.exe.config file to see where NAnt looks for ...
 
You can also start NAnt in verbose mode (NAnt.exe -verbose -buildfile:.....) to see more information.
 
Note : in the 0.8.4 nightly builds, the process for locating frameworks has been improved.  You can download a recent nighlty build from http://nant.sourceforge.net/builds.
 
Let me know if you got it running.
 
Gert
 
----- Original Message -----
Sent: Friday, September 05, 2003 1:11 PM
Subject: R: [Nant-users] how-to specify the framework version to use in order to build ?

Dear Gert,

I've tried your suggestion with SharpZipLib. Please have a look to the following log:

----------------------------------------------------------------

C:\scambio\dotnet\zip\050SharpZipLib_SourceSamples\src>nant

NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw

http://nant.sourceforge.net

Buildfile: file:///C:/scambio/dotnet/zip/050SharpZipLib_SourceSamples/src/SharpZlib.build

Total time: 0 seconds.

BUILD FAILED

C:\scambio\dotnet\zip\050SharpZipLib_SourceSamples\src\SharpZlib..build(6,3):

 Error setting current Framework. netcf-1.0 is not a valid framework identifier. Valid values are: net-1.1, net-1.0.

----------------------------------------------------------------

Have you seen something like ? Any idea ?

Many Thanks.

Alberto Cusinato
Research & Development
Aton Srl

tel. 0422 6184 fax 0422 618585
<www.aton.it> - <mailto:[EMAIL PROTECTED]>

    -----Messaggio originale-----

    Da:     [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]

    Inviato:        venerd� 5 settembre 2003 11.33

    A:      Alberto Cusinato; [EMAIL PROTECTED]

    Oggetto:        Re:  [Nant-users] how-to specify the framework version to use in order to build ?

    Hi Alberto,

    You can use the following to set the current framework to .NET Compact Framework 1.0 :

    <property name="nant.settings.currentframework" value="netcf-1.0" />

    to compile an assembly using that framework do the following :

    <csc nostdlib="true" noconfig="true" ....>

        <sources>

            <includes name="**/*.cs" />

        </sources>

        <references defaultexcludes="true">

            <includes name="${nant.settings.currentframework.frameworkassemblydirectory}/mscorlib.dll"

                            fromPath="false" />

            <includes name="${nant.settings.currentframework.frameworkassemblydirectory}/System.dll" fromPath="false" />

        </references>

    </csc>


    Hope this helps,

    Gert

    ------------------------

     "Alberto Cusinato" <[EMAIL PROTECTED]> wrote:

    ------------------------

           

    >

    >

    >

    >how-to specify the framework version to use in order to build

    >?

    >

    >

    >

    >

    >Dear NAnt

    >Support,

    >

    >how is it

    >possible to specify the Framework version of .NET, I mean 1.1 instead of

    >1.0 or even compact framework, inside the .build file

    >?

    >

    >Best

    >Regards.

    >

    >

    >Alberto

    >Cusinato

    >Research &amp; Development

    >Aton

    >Srl

    >

    >

    >tel. 0422 6184 fax

    >0422 618585

    >&lt;www.aton.it&gt; - &lt;mailto:[EMAIL PROTECTED]>

    >

    >

    >

    >

    >

    >

    >

    >-------------------------------------------------------

    >This sf.net email is sponsored by:ThinkGeek

    >Welcome to geek heaven.

    >http://thinkgeek.com/sf

    >_______________________________________________

    >Nant-users mailing list

    >[EMAIL PROTECTED]

    >https://lists.sourceforge.net/lists/listinfo/nant-users

    >

Reply via email to