Ray Tayek wrote:

hi, newbie getting this with the build file below (it works fine if i omit the: <property name="nant.settings.currentframework" value="net-2.0" />).

i have stuff in: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and C:\Program Files\Microsoft.NET\SDK\v2.0. also, csc -version says: 8.00.50727.42.

do i have things installed correctly?

any pointers will be appreciated.

Check your nant.exe.config file to make sure that a net-2.0 configuration is enabled and that the version numbers match what's actually installed. I know that on one machine of mine that has a several month old NAnt and just .Net 2.0 beta, the config file doesn't have the latest 2.0.50727.

If that doesn't work, see what happens if you specify -t:net-2.0 on the command line.

Gary

thanks

<?xml version="1.0"?>
        <project name="Observer" default="run" basedir=".">
                <description>Observer</description>
                <property name="debug" value="true" overwrite="false" />
<echo message="before ${framework::get-target-framework()}" /> <property name="nant.settings.currentframework" value="net-2.0" /> <echo message="after ${framework::get-target-framework()}" />
        <target name="clean" description="remove all generated files">
                <delete file="Observer.exe" failonerror="false" />
                <delete file="Observer.pdb" failonerror="false" />
        </target>
        <target name="build" description="compiles the source code">
                <csc target="exe" output="Observer.exe" debug="${debug}">
                        <sources>
                                <include name="Observer.cs" />
                        </sources>
                </csc>
        </target>
        <target name="run" depends="build">
                <exec program="Observer.exe"/>
        </target>
</project>


---
vice-chair http://ocjug.org/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to