Look at the <resources> element in the CSC task reference.  http://nant.sourceforge.net/help/tasks/csctask.html.  In NANT v. 0.7.9, this should work unless, as I recall, you have read-only .resx files.  
 
Does anyone know if that's been fixed in more recent builds?
 
thanks,
 
Bruce

 -----Original Message-----
From: Gill, Bobby [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 10:42 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Compiling WinExe's

Another question is essentially how to get Nant to compile a WinExe? So far whenever I try to run a build script on win exe it outputs a console application which of course doesn't run. I know that auxiliary .resx files need to included as resources whilst the Form is compiled, but what is the exact syntax for this? Any help would be much appreciated, thanks.

 

What I have right now in my .build file is:

 

<target name="SampleGUI">

                       

                        <csc target="winexe" output="bin\SampleGUI.exe">

                                    <sources basedir="SampleGUI">

                                                <includes name="AssemblyInfo.cs" />

                                                <includes name="MainFrm.cs" />

                                    </sources>

                        </csc>

</target>

 

 

Bobby Gill

[EMAIL PROTECTED]

Office: (416) 983-1818

Home:  (416) 599-7794

Mobile: (519) 807-4449

 

Reply via email to