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]&gt; 
>
>
>
>
>
>
>
>-------------------------------------------------------
>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
>




-------------------------------------------------------
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