Title: winexe build reports errors when Folder

Guys,
Any help on this would be much appreciated :

DESCRIPTION OF PROBLEM
        The following NANT buildfile does not successfully compile a windows exe if there is a folderBrowserDialog variable in code.

        The compiler error message states that "FolderBrowserDialog" does not exist in the namespace 'System.Windows.Forms'

        However, just using csc.exe works fine ... csc /target:winexe /out:winapp.exe *.cs
       
        Buildfile
        _________________________________________
<?xml version="1.0"?>
    <project name="TEST" default="winapp">
        <description>Test</description>
        <property name="debug" value="true" />
        <target name="winapp" description="compiles source code">           
                <csc target="winexe" output="winapp.exe" debug="${debug}" >
                <sources>
                    <includes name="*.cs" />
                </sources>
            </csc>
        </target>
     </project>
        _________________________________________

STEPS 2 REPRODUCE
        (1) create a regular windows form app in vs.net (2003)
        (2) add a FolderBorwserDialog control on the form
        (3) f5 to compile or run csc /target:winexe /out:winapp.exe *.cs in the app directory to see that it compilese
        (4) run the nant buildfile listed above - the compilation fails as stated

Thanks for any help you can give me

Doug Hale
ISG
(404) 575-7183

Reply via email to