Simon,

You should use the "main" attribute on the <vbc> task for this purpose.

Gert

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, December 16, 2005 1:29 PM
Subject: [NAnt-users] Setting startup object for an exe


Hi

I need to build an exe with a form as the startup object, when I build
currently it is trying to find sub main which doesn't exist and so the build
fails. I cant find any examples or information on this so any pointers would
be appreciated.

Here is my build task:
<target name="compile.debug" depends="assemblyinfo"> <call
target="generic.buildpath" />
<vbc target="winexe" output="${debug.build.dir}/${exe.name}" debug="true"
imports="${import.lib}"
optioncompare="${vbc.compare}"
optionexplicit="${vbc.explicit}"
optionstrict="${vbc.strict}"
removeintchecks="${vbc.removeintchecks}"
rootnamespace="${namespace.root}" >
<sources>
<include name="*.vb"/>
</sources>
<resources>
<include name="*.resx"/>
</resources>
<references>
<includesfile name="tempref.ref" />
</references>
</vbc>
<copy file="${debug.build.dir}/${exe.name}" todir="${bin.dir}" />
<copy file="${debug.build.dir}/${exe.debug}" todir="${bin.dir}" />
<copy file="App.config" tofile="${bin.dir}/${component.name}.config"
if="${file::exists('App.config')}" /> </target>


Simon Burgess




The information contained in this email is intended only for the individual
to whom it is addressed. It may contain legally privileged or confidential
information or otherwise be exempt from disclosure. If you have received
this message in error or there are any problems, please notify the sender
immediately and delete the message from your computer. You must not use,
disclose, copy or alter this message for any unauthorised purpose. Neither
Vertex Data Science Limited nor any of its subsidiaries
will be liable for any direct, special, indirect or consequential damages as
a result of any virus being passed on, or arising from the alteration of the
contents of this message by a third party. The following Vertex companies
are authorised and regulated by the Financial Services Authority (FSA):  -
Exchange FS Ltd trading as The Exchange
 - Marlborough Stirling Mortgage Services Ltd trading as Marlborough
Stirling Mortgage Services
 - Vertex Administration Ltd

Vertex Administration (IOM) Limited is supervised by the Isle of Man
Insurance and Pensions Authority.

Vertex Data Science Limited (England and Wales No. 3153391) registered
office Vertex House, Greencourts Business Park, 333 Styal Road, Manchester,
M22 5TX

www.vertex.co.uk


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to