1. Have you added <references> to the other project?

Here's the sample taken from my build:

    <target name="Sooda" depends="settings, log4net" description="Sooda">
        <csc target="library" output="${sooda.outdir}/Sooda.dll"
debug="${sooda.debug}" define="${sooda.define}">
            <references>
                <includes name="System.Data.dll" asis="true" />
                <includes name="${sooda.outdir}/log4net.dll" />
            </references>
            <sources basedir="Library">
                <includes name="**/*.cs" />
            </sources>
            <resources basedir="Library" prefix="Sooda"
dynamicprefix="true">
                <includes name="Schema/DBSchema.xsd" />
            </resources>
            <arg value="${sooda.csc.args}"/>
        </csc>
    </target>

    <target name="DBTool" depends="settings, Sooda">
        <csc target="exe" output="${sooda.outdir}/DBTool.exe"
debug="${sooda.debug}" define="${sooda.define}">
            <references>
                <includes name="System.Data.dll" asis="true" />
                <includes name="${sooda.outdir}/Sooda.dll" />
            </references>
            <sources basedir="Tools/DBTool">
                <includes name="*.cs" />
                <includes name="ExtractSchema/*.cs" />
            </sources>
        </csc>
        <copy file="Tools/DBTool/App.config"
tofile="${sooda.outdir}/DBTool.exe.config" />
    </target>

2. Try running NAnt with  "-verbose" flag to be sure that you're passing the
correct reference.

Hope it helps. If you need any more advice, let me know.

Jarek

----- Original Message ----- 
From: "Phalgun S Erra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 06, 2004 3:22 PM
Subject: [Nant-users] Problem accessing static members of class


>
> In my project I have a class that has many public static members. I have
built this project into a library Utilities.dll and this is used in another
project.
>
> The problem that I am facing with this is that the project does not
compile as it says "The type or namespace Combine in the class or namespace
Utilities"
>
> It throws such errors for all the static members that I have in Utilities.
>
> How do I take care of this error?
>
> Thanks in advance!
> Phalgun S Erra
>
>
>
> ____________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to