Yes i did. Here is my code:

<?xml version="1.0"?>
<!--
    This build file is intended for Smart Skin Creator
-->
<project name="SmartSkinCreator" default="build">
    <property name="basename" value="SmartSkin" />
    <property name="debug" value="true" />
    <property name="build.dir" value="build" />
    <property name="source.dir" value="source" />
    <property name="build.tempdir" value="Temp" />
    <property name="build.success" value="false" />
    <target name="clean" description="cleans build directory">
        <if propertytrue="build.success">
            <delete dir="${build.dir}" verbose="true" failonerror="false" />
        </if>
    </target>
    <target name="rename.script">
        <script language="C#">
            <code><![CDATA[
                        public static void ScriptMain(Project project) {
                                Directory.Move( project.Properties[ "build.tempdir" ], 
                                project.Properties[ "build.dir" ] );
            }
                        ]]></code>
        </script>
    </target>
    <target name="debug">
        <property name="debug" value="true" />
    </target>
    <target name="release">
        <property name="debug" value="false" />
    </target>
    <target name="build">
        <delete dir="${build.tempdir}" failonerror="false" />
        <mkdir dir="${build.tempdir}" />
        <csc output="${build.tempdir}/Utilities.dll" target="library" debug="${debug}">
            <sources>
                <includes 
name="${source.dir}/Smart-Skin-Creator-Tool/Common/Utilities/**/*.cs" />
                <excludes 
name="${source.dir}/Smart-Skin-Creator-Tool/Common/Utilities/**/_*.cs" />
            </sources>
            <references>
                <includes 
name="${source.dir}/Smart-Skin-Creator-Tool/Common/Utilities/Obj/Interop.Shell32.dll" 
/>
                <includes asis="true" name="System.Dll" />
                <includes asis="true" name="System.Data.Dll" />
                <includes asis="true" name="System.Drawing.Dll" />
                <includes asis="true" name="System.Management.Dll" />
                <includes asis="true" name="System.Windows.Forms.Dll" />
                <includes asis="true" name="System.XML.Dll" />
            </references>
        </csc>
        <copy 
file="${source.dir}/Smart-Skin-Creator-Tool/Common/Utilities/Obj/Interop.Shell32.dll" 
todir="${build.tempdir}" />
        <csc output="${build.tempdir}/${basename}.exe" target="winexe" 
debug="${debug}" win32icon="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/App.Ico" main="Wildseed.Tools.SmartSkin.Creator.SmartSkinCreator" 
verbose="false">
            <sources>
                <includes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/*.cs" />
                <excludes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/SmartSkin.cs" />
                <excludes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/Images.cs" />
                <excludes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/Videos.cs" />
                <excludes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/CompileSkin.cs" />
                <excludes name="${source.dir}/Smart-Skin-Creator-Tool/Smart Skin 
Creator/**/NewSkin.cs" />
            </sources>
            <references>
                <includes name="${build.tempdir}/Utilities.dll" />
                <includes 
name="${source.dir}/Smart-Skin-Creator-Tool/SharpZipLib/src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.dll"
 />
                <includes 
name="${source.dir}/Smart-Skin-Creator-Tool/MagicLibrary/MagicLibrary.dll" />
                <includes asis="true" name="System.Dll" />
                <includes asis="true" name="System.Data.Dll" />
                <includes asis="true" name="System.Drawing.Dll" />
                <includes asis="true" name="System.Windows.Forms.Dll" />
                <includes asis="true" name="System.XML.Dll" />
            </references>
        </csc>
        <delete dir="${build.dir}" failonerror="false" />
        <call target="rename.script" />
    </target>
</project>

--

--------- Original Message ---------

DATE: Tue, 6 Jan 2004 16:10:09 
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>

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



____________________________________________________________
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: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to