It isn't a maven problem, but a problem in your c# code. I suppose that you have more than one Main method in your sources, isn't it?
Emmanuel ----- Original Message ----- From: "NATARAJAN Sasi Kumar" <[EMAIL PROTECTED]> To: <users@maven.apache.org> Sent: Monday, April 25, 2005 8:48 AM Subject: C# compile by use Maven1.x, i got build failed Hai all i am compiling C# using ant task in maven 1.x, if compile one file no problem if compile more than one file , i got Build failed do you know anyone the above question advise me thanks in advance I am using tag <goal name="csc:c#" description="Compile C#"> <ant:csc srcdir ="${basedir}" targettype="exe" incremental="false" destdir="${basedir}/target/net/" > <src dir="${basedir}/*.cs" includes="*.cs" /> </ant:csc> </goal> I am getting ERROR D:\Maven1\bin>maven csc:c# __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: csc:c#: [csc] compiling 2 files [csc] Executing 'csc' with arguments: '/nologo' '/debug+' '/incremental-' '/optimize-' '/target:exe' '/warn:3' '/nostdlib-' '/reference:Accessibility.dll;cscompmgd.dll;CustomMarshalers.dll;Mscorcf g.dll;System.Configuration.Install.dll;System.Da .dll;System.Design.dll;System.DirectoryServices.dll;System.EnterpriseSer vices.dll;System.dll;System.Drawing.Design.dll;S tem.Drawing.dll;System.Management.dll;System.Messaging.dll;System.Runtim e.Remoting.dll;System.Runtime.Serialization.Form ters.Soap.dll;System.Security.dll;System.ServiceProcess.dll;System.Web.d ll;System.Web.RegularExpressions.dll;System.Web. rvices.dll;System.Windows.Forms.dll;System.XML.dll;' '/fullpaths' 'D:\Maven1\bin\Class1.cs' 'D:\Maven1\bin\Class2.cs' The ' characters around the executable and arguments are not part of the command. [csc] d:\Maven1\bin\Class1.cs(16,15): error CS0017: Program 'd:\Maven1\bin\Class1.exe' has more than one entry point efined: 'EnvironmentVariables.Class1.Main()' [csc] d:\Maven1\bin\Class2.cs(16,15): error CS0017: Program 'd:\Maven1\bin\Class1.exe' has more than one entry point efined: 'EnvironmentVariables.Class2.Main()' BUILD FAILED File...... C:\Documents and Settings\snatarajan2\.maven\cache\maven-webtest-plugin-0.1.0\plugin.jell y Element... ant:csc Line...... 75 Column.... 104 CSC returned: 1 Total time: 2 seconds Finished at: Mon Apr 25 12:16:06 GMT+05:30 2005 Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]