Hi I'm currently struggling to get a WinForms app compiled with Nant running. It works fine when compiled with the VS IDE. I get a MissingManifestResourceException when executing the application. Here is the nant scipt:
<?xml version="1.0"?> <project name="SCF" default="build" basedir="."> <property name="basename" value="SCF"/> <property name="debug" value="true"/> <property name="optimize" value="false"/> <property name="build.dir" value=".\bin"/> <target name="clean" description="cleans build directory"> <delete failonerror="false" verbose="true"> <fileset basedir="${build.dir}\"> <includes name="*.*" /> <excludes name="${basename}.DataSource.Config" /> </fileset> </delete> </target> <target name="debug" depends="clean"> <property name="debug" value="true"/> <property name="optimize" value="false"/> </target> <target name="release" depends="clean"> <property name="debug" value="false"/> <property name="optimize" value="true"/> </target> <target name="build"> <copy todir="${build.dir}"> <fileset basedir="c:\program files\sanlam\sanquote\assemblies"> <includes name="SanQuote.DataAccessLayer.*"/> <includes name="SanQuote.DataStructure.*"/> <includes name="SanQuote.DataStructure.Viewer.*"/> <includes name="SanQuote.Diagnostics.*"/> <includes name="SanQuote.Exceptions.*"/> <includes name="SanQuote.Shared.*"/> <includes name="SanQuote.Structures.Engine.*"/> <includes name="SanQuote.Structures.Exporter.*"/> <includes name="SanQuote.Utilities.*"/> </fileset> </copy> <vbc target="winexe" output="${build.dir}\${basename}.exe" debug=" ${debug}" imports ="Microsoft.VisualBasic,System,System.Collections,System.Diagnostics,System.Drawing,System.Windows.Forms" removeintchecks="${optimize}" optionoptimize="${optimize}" win32icon="COnfigureXP.ICO" rootnamespace="" failonerror="true" verbose="false"> <sources> <includes name="AssemblyInfo.vb"/> <includes name="frmChooseEngine.vb"/> <includes name="frmMain.vb"/> </sources> <lib> <includes name="c:\program files\sanlam\sanquote\assemblies" /> </lib> <references> <includes asis="true" name="System.dll"/> <includes asis="true" name="System.Drawing.dll"/> <includes asis="true" name="System.Windows.Forms.dll"/> <includes name="SanQuote.DataAccessLayer.dll"/> <includes name="SanQuote.DataStructure.dll"/> <includes name="SanQuote.DataStructure.Viewer.dll"/> <includes name="SanQuote.Diagnostics.dll"/> <includes name="SanQuote.Exceptions.dll"/> <includes name="SanQuote.Shared.dll"/> <includes name="SanQuote.Structures.Engine.dll"/> <includes name="SanQuote.Structures.Exporter.dll"/> <includes name="SanQuote.Utilities.dll"/> </references> </vbc> <copy file="App.config" tofile="${build.dir}\${basename}.exe.config" /> </target> <target name="run" depends="build"> <exec program="${basename}.exe" basedir="${build.dir}"/> </target> </project> I browsed through the Nant C# source code and from what I could gather the any compile task (vbc, csc etc.) seems to generate the .resource files for all .resx files it can find automatically without me having to specify the <resources> tag within the <vbc> task. I however also tried adding the <resources> tag but it did not make a difference. What am I doing wrong? Carel The contents of this e-mail, which may include one or more attachments, is strictly confidential, and is intended solely for the use of the named recipient(s). If you have received this e-mail in error, you are not permitted to and must not disclose, distribute, or retain it, and are requested to please notify the sender immediately by return e-mail and delete it thereafter. E-mail is not necessarily secure or error free as information could arrive late or contain viruses or could be incomplete, intercepted, corrupted, lost or destroyed. It is the responsibility of the named recipient(s) to ensure that e-mails are virus free. No employee or intermediary is authorised to conclude a binding agreement on behalf of Sanlam by e-mail without express written confirmation by a duly authorised representative of Sanlam. The use or contents of this e-mail is intended for Sanlam's business. If it is used for any other purpose, the views expressed are those of the sender and no liability will attach to Sanlam. Sanlam Life Insurance Limited Reg no 1998/021121/06 Directors: G.E. Rudman (Chairman), L. Lambrechts (Chief Executive Officer), J.P.L. Alberts, P. de V. Rademeyer, V.P. Khanyile, D. Lessing, C.E. Maynard, D.N.M. Mokhobo, C.G. Swanepoel, J. van Zyl, J.J.M. van Zyl, H.C. Werth, A.P. Zeeman. Alternate Director: J.P. Möller. Company Secretary: J.P. Bester ------------------------------------------------------- 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_id78&alloc_id371&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users